VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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?
    Last edited by lindylex; 4th Jan 2011 at 21:32.
    Quote Quote  
  2. Member
    Join Date
    Jun 2004
    Location
    Victoria, Australia
    Search Comp PM
    Originally Posted by lindylex View Post
    ...This generates video and audio playing slowly because the encoded video is twice the play length of the original.
    Well, the video's ok (on the MP4 anyway) ... the audio is playing back at the wrong rate, stretching the entire playback time. Maybe you need to specify the framerate (30) rather than let it guess??
    Last edited by TJohns; 3rd Jan 2011 at 03:44.
    Quote Quote  
  3. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    "specify the framerate (30) rather than let it guess??" I did this already. When you try this what happens?
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    [ 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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!