VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    I am trying to convert my avi to mp4 and I have tried everything and nothing is working.

    ffmpeg -version

    Code:
    FFmpeg version SVN-r23439, Copyright (c) 2000-2010 the FFmpeg developers
      built on Jun  3 2010 04:14:14 with gcc 4.4.2
      configuration: --target-os=mingw32 --enable-runtime-cpudetect --enable-avisynth --enable-gpl --enable-version3 --enabl
    e-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --ena
    ble-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libx264 --extra-libs='-lx264 -lpt
    hread' --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-librtmp --extra-libs='-lrtmp -lssl -lcrypto -lws2_
    32 -lgdi32 -lwinmm -lcrypt32 -lz' --arch=x86 --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memali
    gn-hack
      libavutil     50.16. 0 / 50.16. 0
      libavcodec    52.73. 0 / 52.73. 0
      libavformat   52.67. 0 / 52.67. 0
      libavdevice   52. 2. 0 / 52. 2. 0
      libavfilter    1.20. 0 /  1.20. 0
      libswscale     0.11. 0 /  0.11. 0
    FFmpeg SVN-r23439
    libavutil     50.16. 0 / 50.16. 0
    libavcodec    52.73. 0 / 52.73. 0
    libavformat   52.67. 0 / 52.67. 0
    libavdevice   52. 2. 0 / 52. 2. 0
    libavfilter    1.20. 0 /  1.20. 0
    libswscale     0.11. 0 /  0.11. 0
    I want to do transcode to libx264 like this.

    ffmpeg -i MVI_3781.AVI -vcodec libx264 -b 1320k -acodec aac -ab 128k -ac 2 -ar 48000 -f mp4 -threads 2 main.mp4

    But nothing I do works this is the error I get.

    Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

    even when I try something simply like.
    ffmpeg -i MVI_3781.AVI main.mp4


    Platform Windows XP 32

    Thanks
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Can it read the source fine? Post the entire ffmpeg log.


    And try a frontend like winff to see if you get same error.
    Quote Quote  
  3. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Baldrick, where is the ffmpeg log?
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Everything you see in the command line and not just the error.
    Quote Quote  
  5. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Code:
    ffmpeg -i MVI_3781.AVI -loglevel debug main.mp4
    FFmpeg version SVN-r23439, Copyright (c) 2000-2010 the FFmpeg developers
      built on Jun  3 2010 04:14:14 with gcc 4.4.2
      configuration: --target-os=mingw32 --enable-runtime-cpudetect --enable-avisynth --enable-gpl --enable-version3 --enabl
    e-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --ena
    ble-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libx264 --extra-libs='-lx264 -lpt
    hread' --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-librtmp --extra-libs='-lrtmp -lssl -lcrypto -lws2_
    32 -lgdi32 -lwinmm -lcrypt32 -lz' --arch=x86 --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memali
    gn-hack
      libavutil     50.16. 0 / 50.16. 0
      libavcodec    52.73. 0 / 52.73. 0
      libavformat   52.67. 0 / 52.67. 0
      libavdevice   52. 2. 0 / 52. 2. 0
      libavfilter    1.20. 0 /  1.20. 0
      libswscale     0.11. 0 /  0.11. 0
    Input #0, avi, from 'MVI_3781.AVI':
      Metadata:
        ISFT            : CanonMVI06
      Duration: 00:02:54.69, start: 0.000000, bitrate: 16725 kb/s
        Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
        Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
    [ffmpeg_output @ 01cecd00]auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
    [scale @ 01cecfa0]w:640 h:480 fmt:yuvj422p -> w:640 h:480 fmt:yuv420p flags:0x4
    [mpeg4 @ 01d22920]timebase not supported by mpeg 4 standard
    Output #0, mp4, to 'main.mp4':
        Stream #0.0, 0, 1/90000: Video: mpeg4, yuv420p, 640x480, 33333/1000000, q=2-31, 200 kb/s, 90k tbn, 30 tbc
        Stream #0.1, 0, 1/90000: Audio: aac, 44100 Hz, 2 channels, s16, 64 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
    Quote Quote  
  6. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    [mpeg4 @ 01d22920]timebase not supported by mpeg 4 standard
    Try set the framerate like -r 30 or whatever your source framerate is.
    Quote Quote  
  7. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    I just tried this "ffmpeg -i MVI_3781.AVI -loglevel debug -r 29 main.mp4" and it is doing something. I got this solution from http://jaredforsyth.com/blog/2009/jan/6/convert-videos-ffmpeg/

    Thanks for pointing me in the right direction as to what to look for.
    Quote Quote  
  8. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Baldrick thanks.
    Quote Quote  



Similar Threads

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