I’m trying to encode video for 5th generation video ipod using the following commands.
This is a 15 second portion of the original.
http://mo-de.net/ffmpeg/help_me_please.mp4
Broken mp4
http://mo-de.net/ffmpeg/bad_help_me_please.mp4
Broken mov
http://mo-de.net/ffmpeg/bad_help_me_please.mov
These are the ffmpeg commands that I used.
This generates video and audio playing slowly because the encoded video is twice the play length of the original.
ffmpeg -i help_me_please.mp4 -vcodec libxvid -b 300 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec libfaac -ab 128 -s 320x180 -aspect 16:9 bad_help_me_please.mp4
This also generates video and audio playing slowly because the encoded video is twice the play length of the original.
ffmpeg -i help_me_please.mp4 -f mov -b 1800 -maxrate 2500 -vcodec libxvid -qmin 3 -qmax 5 -s 320x180 -acodec libfaac -ab 96 -aspect 16:9 bad_help_me_please.mov
ffmpeg –version
lex@trabajar:/home/share/del/free_tutorials/a$ ffmpeg -version
FFmpeg version SVN-r13582, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --bindir=${prefix}/bin --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libgsm --enable-libx264 --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscale --enable-libdc1394 --enable-nonfree --disable-mmx --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil version: 49.7.0
libavcodec version: 51.58.0
libavformat version: 52.16.0
libavdevice version: 52.0.0
libavfilter version: 0.0.0
built on Oct 4 2010 18:36:29, gcc: 4.3.2
FFmpeg SVN-r13582
libavutil 3213056
libavcodec 3357184
libavformat 3411968
libavdevice 3407872
uname –a
Linux trabajar 2.6.27.8 #1 SMP Thu Dec 18 02:01:11 EST 2008 x86_64 GNU/Linux
What is the best ffmpeg command to encode videos for the 5th generation video Ipod?
+ Reply to Thread
Results 1 to 4 of 4
-
Last edited by lindylex; 4th Jan 2011 at 21:32.
-
Last edited by TJohns; 3rd Jan 2011 at 03:44.
-
"specify the framerate (30) rather than let it guess??" I did this already. When you try this what happens?
-
[ SOLVED SOLUTION ]
My solution required me to add "-ar 44100" to the ffmpeg command. I noticed ffmpeg has a problems with all my original videos with the following audio encoded "Audio: aac, 22050 Hz, stereo, s16, 135 kb/s"
ffmpeg -i help_me_please.mp4 -f mp4 -vcodec mpeg4 -vtag xvid -maxrate 1000 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec libfaac -mbd 2 -s 320x180 -padtop 30 -padbottom 30 -ab 128 -ar 44100 -b 400 some_movie.mp4
Similar Threads
-
Video length Automatically increase after encoding
By darkstonecold in forum Video ConversionReplies: 1Last Post: 22nd Nov 2011, 21:53 -
Change length of an AVI. Reduce/Increase Frame Length
By Buzwinkle in forum Authoring (DVD)Replies: 4Last Post: 10th Aug 2011, 08:08 -
Converted MKV Doubles in Duration PS3
By diesel.1 in forum Newbie / General discussionsReplies: 0Last Post: 7th Dec 2010, 04:14 -
AVI->MPEG2 (CCE Basic) encoding results in incorrect video length in pla
By binister in forum Video ConversionReplies: 8Last Post: 26th Feb 2008, 17:29 -
Encoding MP3 causes the sample length to CHANGE?
By Colmino in forum AudioReplies: 1Last Post: 26th Nov 2007, 20:00