{"id":470,"date":"2025-12-21T15:47:01","date_gmt":"2025-12-21T20:47:01","guid":{"rendered":"https:\/\/jimandnoreen.com\/?p=470"},"modified":"2025-12-22T09:08:03","modified_gmt":"2025-12-22T14:08:03","slug":"bulk-converting-videos-for-tinytv-using-ffmpeg","status":"publish","type":"post","link":"https:\/\/jimandnoreen.com\/?p=470","title":{"rendered":"Bulk converting videos for TinyTV using FFMPEG"},"content":{"rendered":"\n<p>TinyTV 2 is a a cute device for playing video content. It comes preloaded with a handful of short clips.  You can also easily load your own videos, movies, and TV shows using the\u00a0<strong><a href=\"https:\/\/tinytv.us\/TinyTV-Converter-App\/\">TinyTV Converter<\/a>\u00a0<\/strong>&#8211; a free<strong>\u00a0<\/strong>tool\u00a0to convert any MP4 file.<\/p>\n\n\n\n<p>The Converter is limited to processing one file at a time.  I recently needed to convert a folder containing a couple hundred .MP4 videos to the .AVI format used by TinyTV.  To accomplish this task, I used the open source tool FFmpeg to do a batch conversion. <\/p>\n\n\n\n<p>The following example assumes you have already installed the <a href=\"https:\/\/www.ffmpeg.org\" data-type=\"URL\" data-id=\"https:\/\/www.ffmpeg.org\">FFmpeg<\/a> command line tools. Here are the steps:<\/p>\n\n\n\n<p>1. Open a terminal window and navigate to the folder where the images are located.   Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd source_images<\/code><\/pre>\n\n\n\n<p>2. Create a folder for the converted images:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir output_images<\/code><\/pre>\n\n\n\n<p>3. Run this command to process images and place the converted files into the output_images folder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for f in *.mp4; do ffmpeg -i \"$f\" -r 24 -vf \"scale=210:135,hqdn3d\" -b:v 1500k -maxrate 1500k -bufsize 64k -c:v mjpeg -acodec pcm_u8 -ar 10000 -ac 1 \"converted\/${f%.mp4}.avi\"; done<\/code><\/pre>\n\n\n\n<p>See this <a href=\"https:\/\/forum.tinycircuits.com\/index.php?topic=2589.0\" target=\"_blank\" rel=\"noreferrer noopener\">forum post<\/a> for alternate scale settings and further discussion. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>TinyTV 2 is a a cute device for playing video content. It comes preloaded with a handful of short clips. You can also easily load your own videos, movies, and TV shows using the\u00a0TinyTV Converter\u00a0&#8211; a free\u00a0tool\u00a0to convert any MP4 file. The Converter is limited to processing one file at a time. I recently needed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":475,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[88,89],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/jimandnoreen.com\/wp-content\/uploads\/2025\/12\/image-1.gif?fit=480%2C271&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8sNNV-7A","jetpack-related-posts":[{"id":115,"url":"https:\/\/jimandnoreen.com\/?p=115","url_meta":{"origin":470,"position":0},"title":"Importing RadioRA 2 devices into Indigo","date":"October 7, 2013","format":false,"excerpt":"In a recent post, I wrote about a plugin I made for Indigo to add support for Lutron RadioRA 2 devices.\u00a0 I can't say enough good things about this software.\u00a0 It's rock solid reliable and extremely flexible.\u00a0 Among other things, I have Indigo set up to email a picture to\u2026","rel":"","context":"In &quot;Electrical&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":259,"url":"https:\/\/jimandnoreen.com\/?p=259","url_meta":{"origin":470,"position":1},"title":"A USB adapter for the Apple Newton keyboard","date":"March 9, 2017","format":false,"excerpt":"Back in the pre-smartphone days, the Apple Newton was the first device in the PDA category.\u00a0 Newtons were only sold for five years between 1993 and 1998, when Steve Jobs pulled the plug on the program.\u00a0 Although Apple frequently took a ribbing for problems with the Newton's handwriting recognition feature,\u2026","rel":"","context":"In &quot;Apple&quot;","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/jimandnoreen.com\/wp-content\/uploads\/2017\/03\/IMG_3278.jpg?fit=640%2C480&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":136,"url":"https:\/\/jimandnoreen.com\/?p=136","url_meta":{"origin":470,"position":2},"title":"Vehicle detection using iAutomate RFID","date":"December 24, 2013","format":false,"excerpt":"One item on my to-do list for a long time was to enable our home automation system to detect the comings and goings of our vehicles. \u00a0Each has an EZ-Pass badge, so I figured slam-dunk, just find an appropriate active RFID reader and we're done. \u00a0But I was unable to\u2026","rel":"","context":"In &quot;Apple&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":347,"url":"https:\/\/jimandnoreen.com\/?p=347","url_meta":{"origin":470,"position":3},"title":"Why Backups Matter (even when they don't matter)","date":"May 30, 2020","format":false,"excerpt":"Apple continues its multi-year assault on my beloved \"late 2011\" 17 inch MacBook Pro. First by shipping it with a famously defective logic board, which I learned to repair by periodically baking and now by stymying my efforts to to restore backups to it. When the 17-incher's hard disk started\u2026","rel":"","context":"In &quot;Apple&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":142,"url":"https:\/\/jimandnoreen.com\/?p=142","url_meta":{"origin":470,"position":4},"title":"Switching between HDMI and analog audio on a Mac","date":"February 13, 2014","format":false,"excerpt":"Here's a proven fix if you need both analog and HDMI audio outputs and require a way of switching between them. \u00a0In my case, I had an application where a rack mounted Mac Mini serves as both a media server and an audio source for a whole house paging system.\u2026","rel":"","context":"In &quot;Apple&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":294,"url":"https:\/\/jimandnoreen.com\/?p=294","url_meta":{"origin":470,"position":5},"title":"30 Second Fix for iPhone not charging","date":"October 4, 2017","format":false,"excerpt":"This morning I fixed my sixth or seventh iPhone with this apparently common problem.\u00a0 Over time, the Lightning charging port at the bottom of the phone can fill up with lint or other debris, especially for people who carry their iPhones in their pocket.\u00a0 The gunk gets increasingly compacted every\u2026","rel":"","context":"In &quot;Apple&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=470"}],"version-history":[{"count":6,"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":478,"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=\/wp\/v2\/posts\/470\/revisions\/478"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=\/wp\/v2\/media\/475"}],"wp:attachment":[{"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jimandnoreen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}