I've done quite a bit of searching (if I missed it please point me), but I'd really like to know a definitive command line to convert a file to h.264 for use on an ipod (classic). I've found some info on various forums, like a command line that someone was using, but then messages further down that it didn't work for them.
I'm trying to encode at 640x480, and looking to do it in a batch file. I plan on messing with the bitrates until I find a good quality, but even after reading the ffmpeg docs, I'm not sure how most of the other options apply.
I downloaded videora and looked at the console, so I was thinking of using the command line that they use, which is:
Pass 1:
Pass 2:Code:ffmpeg.exe -y -i "infile.mpg" -an -pass 1 -f mp4 -title "title" -timestamp "2008-01-03 09:58:26" -vcodec libx264 -level 30 -s 640x480 -b 768k -bt 768k -bufsize 10000k -maxrate 10000k -g 300 -coder 0 -threads auto "outfile.mp4"
Does anyone have any additions or other options they use when doing this encoding? Why?Code:ffmpeg.exe -y -i "infile.mpg" -pass 2 -f mp4 -title "title" -timestamp "2008-01-03 10:01:30" -vcodec libx264 -level 30 -s 640x480 -b 768k -bt 768k -bufsize 10000k -maxrate 10000k -g 300 -coder 0 -threads auto -acodec libfaac -ac 2 -ab 128k "outfile.mp4"
The situation is I would like to encode video from my TiVo by downloading via tivotogo, then using tivodecode to get the mpg file. I'll be running comskip from there, then converting to mp4 video.
Bonus questions: tivo files are recorded at 480x480. Is it better to scale directly to 640x480, or set the aspect ratio and use anamorphic pixel size? (not sure how I would even do that). How about autocropping letterboxed shows?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
You might have to remux the output MP4 with NicMp4Box in order to make it work well with the iPod
http://nic.dnsalias.com/NicMP4Box.zip
You might be able to keep the dimensions at 480x480. I believe the iPod only cares about TOTAL number of pixels, in which case 640x480 is the max.
Similar Threads
-
Anyone Can Help to Convert This Preset to FFmpeg Command Line?
By raymng in forum Video ConversionReplies: 2Last Post: 26th Feb 2012, 12:11 -
ffmpeg / H264 (need help to build an optimized command line)
By iwiiiiiiiiii in forum Video ConversionReplies: 13Last Post: 22nd Oct 2011, 10:41 -
ffmpeg generate audio/add to video help please, command line
By surfmonkee in forum LinuxReplies: 3Last Post: 11th Sep 2011, 16:17 -
ffmpeg tga to x264 command line ?
By krohm in forum Video ConversionReplies: 71Last Post: 6th Jul 2010, 02:01 -
Using ffmpeg command line to convert a .vob(DVD) to avi/mpeg
By alfo666 in forum Newbie / General discussionsReplies: 1Last Post: 13th Sep 2009, 03:14