VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    Jun 2005
    Location
    Portugal
    Search Comp PM
    Hi,

    I have some huge mpeg-2 files, ripped from DVDs, that I want to convert to AVI.

    I use FFMPEG and give this command :

    ffmpeg.exe -i movie.mpg -f avi -vcodec mpeg4 -b 600 -bf 2 -sameq -acodec mp3 -ab 128 my_movie2.avi

    it works but I have 2 problems :

    If I omit "-sameq" parameter the resulting AVI is bad, the image flicks, there is some pixels around

    Otherwise, if I include "-sameq", the programm ignores the bitrate value and the resulting is a Huge size AVI.

    please, can someone help me ?

    thanks
    Quote Quote  
  2. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    Well -sameq means same quality as the source so of course it ignores bitrate. Fact is that 600 is probably too low a bitrate for DVD res MPEG-4. Try -vcodec h264, a higher bitrate or resizing down.
    Quote Quote  
  3. Member
    Join Date
    Jun 2005
    Location
    Portugal
    Search Comp PM
    it says that h264 is unsupported for output format

    How configure FFMPEG to make a 700 MB with some quality ?

    what I'm missing ?
    Quote Quote  
  4. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    Just tried it and it works fine here. Did you enable x264 when compiling?

    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    configuration: --enable-theora --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad --enable-faac --enable-xvid --enable-x264 --enable-mingw32 --enable-a52 --enable-dts --enable-pp --enable-gpl --enable-memalign-hack --enable-amr_nb --enable-amr_wb
    libavutil version: 49.0.0
    libavcodec version: 51.5.0
    libavformat version: 50.2.1
    built on Feb 15 2006 02:18:12, gcc: 4.0.2
    Quote Quote  
  5. Member
    Join Date
    Jun 2005
    Location
    Portugal
    Search Comp PM
    thanks for your help, and sorry my ignorance

    My system is Windows XP, I have FFMPEG executable for windows

    None of that configuration switches works with me

    what the correct command to enable that ?

    is like this :

    ffmpeg.exe -i movie.mpg -f avi -vcodec h264 -b 600 -bf 2 -acodec mp3 -ab 128 my_movie2.avi --enable-x264

    I don't have : libavutil libavcodec libavformat, either

    just have FFMPEG.EXE (built on Feb 22 2005 04:58:29, gcc: 3.4.2 (mingw-special) and a DLL named pthreadGC2.dll
    Quote Quote  
  6. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    Those are the switches that were used with ./configure. For yours --enable-pthreads was obviously used. I don't bother with that normally since I only have one core and it creates an extra dependancy.

    libavutil, avcodec and avformat are part of ffmpeg.

    Doesn't sound like you compiled it though. Where did it come from? ffmpeg -formats will list what is supported, but you can also tell if x264 was enabled as above in bold. --enable-gpl is also required since x264 is gpl. Could be that whoever compiled it want to keep it lgpl. So no x264, xvid, etc.

    err, hang on feb 2005. I was thinking feb 22 2006, although only an hour or so in.

    ffmpeg version 0.4.9-pre1, build 4743, Copyright (c) 2000-2004 Fabrice Bellard
    configuration: --enable-mp3lame --enable-vorbis --enable-faad --enable-faac --enable-xvid --enable-mingw32 --enable-a52 --enable-dts --enable-pp --enable-gpl --enable-memalign-hack
    built on Feb 22 2005 04:58:29, gcc: 3.4.2 (mingw-special)
    ffmpeg 0.4.9-pre1
    libavcodec 4743
    libavformat 4621

    That is actually one of my old builds. pthread wasn't enabled though so I don't know why that dll is present. Should just be ffmpeg.exe and ffplay.exe

    As you can see x264 is not enabled. I don't think ffmpeg even supported it back then.

    Also remember x264 was just one suggestion. Lowering the res would help since the bitrate would be more suitable. Upping the bitrate wouldn't be possible though if that was what you calculated for a 700MB encode.
    Quote Quote  
  7. Member
    Join Date
    Jun 2005
    Location
    Portugal
    Search Comp PM
    ==
    Doesn't sound like you compiled it though. Where did it come from?
    ==

    I downloaded my version of FFMPEG from videohelp

    ffmpeggui03c.zip

    I am totally null to C or C++ code, I am experienced with DOT.NET only.

    I would like to have a full version of FFMPEG with all that configurations enabled, mainly MP3+WAV+DTS+DIVX+RMVB+WMV+WMA

    but, anyway, I managed to solve my problem thanks to your help...

    The only problem is : How to resize the image in order to avoid squeezed and thin images, or fat ones ?

    don't know what calculations must I do to correctly resize the image, either :

    from MPG to AVI using FFMPEG (and -s switch)
    or from AVI to DVD using AVISYNTH frameserver (Lanczos4Resize + AddBorders)
    Quote Quote  
  8. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    Yeah, the ffmpeggui package got updated with my ffmpeg build of the time. I have compiled numerous other builds since then though, including one yesterday.

    Thin is fine. The original DVD would be thin too. You just need to set the PAR approriatly so that it resizes correctly on playback. Otherwise just calculate and crop/resize to 1:1.
    Quote Quote  



Similar Threads

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