VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. hi,
    i've seen the stickies, but they don't exactly adress my issue.
    I've been trying youtube downloader and winavi to convert they beautiful .flv files to xvid or divx. winavi just gives me bunches of errors. youtube downloader on the other hand does work. the video isn't that great but i don't mind it. but the audio is total crap. i've tried messing around with the settings but i don't think i've come up with a good solution.
    ffmpeg -i %1 -vcodec xvid -s 320x240 -r 30 -b 320 -ar 22050 -ab 16 -ac 1 %1.avi these manual settings might be too much for youtube downloader.
    this is what youtube downloader uses by default
    ffmpeg -i %1 -vcodec xvid -s 320x240 -r 12 -b 192 -ar 22050 -ab 64 -ac 1 %1.avi

    any help would be appreciated, thanks
    Quote Quote  
  2. Member
    Join Date
    Jan 2007
    Location
    United States
    Search Comp PM
    for flv files from youtube, is DL using 'unplug' tool plug-in for firefox

    i use SUPER to convert the flv to avi, if there are audio sync problems, i correct them using avidemux
    Quote Quote  
  3. Renegade gll99's Avatar
    Join Date
    May 2002
    Location
    Canadian Tundra
    Search Comp PM
    This is after the fact when you already hae an flv on hdd:

    With ffmpeg this is what I use with some variations but I also use mencoder which is a bit slower.

    ffmpeg -i "c:\Input.flv" -vcodec mpeg4 -b 600000 -s 640x480 -vtag DX50 -ar 44100 -ab 128 -ac 2 -acodec mp3
    -vol 100 "C:\Output.avi"
    pause

    Very similar except I use mpeg4 instead of xvid but that shouldn't matter, a larger frame size and a specified larger video bitrate. I also convert the audio to 44100, mp3, stereo (-ac 2)

    Use a lower bitrate than 600000 to make smaller files if you want but I sometimes go higher also.

    If you just want to check the input file before converting to change some parameters then, in a bat file, just run ffmpeg with only the input file parameter and a pause. This will display the input video and audio specs in the dos window and you can adjust the batch file accordingly

    ffmpeg -i "c:\Input.flv"
    pause
    Quote Quote  
  4. Originally Posted by gll99

    If you just want to check the input file before converting to change some parameters then, in a bat file, just run ffmpeg with only the input file parameter and a pause. This will display the input video and audio specs in the dos window and you can adjust the batch file accordingly

    ffmpeg -i "c:\Input.flv"
    pause
    ahh cool, if i leave the audio format unchanged, then it should sound the same. but what if it still sounds worse?
    Quote Quote  
  5. Renegade gll99's Avatar
    Join Date
    May 2002
    Location
    Canadian Tundra
    Search Comp PM
    It shouldn't sound worse since all it will do is mux the mp3 back with the newly converted video.

    Did you ever check the audio after conversion using gspot maybe you were forcing it to pcm before which could have caused playback issues and also increased the filesize.
    Quote Quote  
  6. no i didn't but the audio is fine now. but i have a new problem. the video quality seems to be messed up big time. the file size has also dropped dramaitcly. setting -qscale to 31 doesn't change this either.
    here's what i put into ffmpeg:
    ffmpeg -i %1 -vcodec xvid -s 320x240 -r 30 -b 192 -ar 22050 -ab 80 -ac 2 -qscale 31 %1.avi

    and here's what i get in the console;
    Code:
    FFmpeg version SVN-r7760, Copyright (c) 2000-2006 Fabrice Bellard, et al.
      configuration:  --enable-memalign-hack --enable-gpl --cpu=i686 --enable-swscal
    er --enable-pthreads --enable-avisynth --enable-mp3lame --enable-xvid --enable-x
    264 --enable-libnut --enable-libogg --enable-vorbis --enable-libtheora --enable-
    faad --enable-faac --enable-libgsm --enable-dts --enable-a52 --enable-amr_nb --e
    nable-amr_wb
      libavutil version: 49.2.0
      libavcodec version: 51.29.0
      libavformat version: 51.8.0
      built on Jan 29 2007 19:58:47, gcc: 3.4.6
    
    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000
    /1) -> 29.97 (30000/1001)
    Input #0, flv, from 'I:\BLACKL~1\09BLAC~1.FLV':
      Duration: 00:23:27.4, start: 0.000000, bitrate: 80 kb/s
      Stream #0.0: Video: flv, yuv420p, 424x318, 29.97 fps(r)
      Stream #0.1: Audio: mp3, 22050 Hz, stereo, 80 kb/s
    Output #0, avi, to 'I:\BLACKL~1\09BLAC~1.FLV.avi':
      Stream #0.0: Video: xvid, yuv420p, 320x240, q=2-31, 0 kb/s, 30.00 fps(c)
      Stream #0.1: Audio: mp2, 22050 Hz, stereo, 80 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Press [q] to stop encoding
    frame=  198 q=31.0 size=     153kB time=6.6 bitrate= 189.6kbits/s
    on the output line, it says q=2-31 whats that mean? and it also says 0kb/s after. i've suspecting those are the problem?
    Quote Quote  
  7. Why used: very old FFmpeg build, very low A/V bitrates, audio conversion from MP3 to MP2 and other?

    Why not try example syntax with latest FFmpeg...?
    Code:
    -s 320x240 -aspect 4:3 -ar 44100 -ac 2 -vcodec libxvid -sameq -acodec libmp3lame -sameq
    What You need? Smaller filesize with worse quality or similar filesize and quality as source?
    Quote Quote  
  8. i had no idea i was using an older, worse version. i will try that. thank you
    Quote Quote  
  9. hmm having a hard time getting this to work.
    am trying this now:
    C:\Documents and Settings\esiadmin>"C:\Documents and Settings\esiadmin\Desktop\F
    Fmpeg-svn-14277\FFmpeg-svn-14277\ffmpeg.exe" -i "I:\black lagoon\01black lagoon.
    flv" -vcodec libxvid -s 320x240 -aspect 4:3 -r 30 -ar 22050 -ab 128k -ac 2 %1.a
    vi
    FFmpeg version Sherpya-r14277, Copyright (c) 2000-2008 Fabrice Bellard, et al.
    libavutil version: 49.7.0
    libavcodec version: 51.60.0
    libavformat version: 52.17.0
    libavdevice version: 52.0.0
    built on Jul 18 2008 11:12:48, gcc: 4.2.4 [Sherpya]

    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000
    /1) -> 12.00 (12/1)
    Input #0, flv, from 'I:\black lagoon\01black lagoon.flv':
    Duration: 00:23:25.74, start: 0.000000, bitrate: 64 kb/s
    Stream #0.0: Video: flv, yuv420p, 540x302, 12.00 tb(r)
    Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
    Output #0, avi, to '%1.avi':
    Stream #0.0: Video: libxvid, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200
    kb/s, 30.00 tb(c)
    Stream #0.1: Audio: mp2, 22050 Hz, stereo, 128 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Press [q] to stop encoding
    Quote Quote  
  10. ok did this:
    C:\Documents and Settings\esiadmin>"C:\Documents and Settings\esiadmin\Desktop\F
    Fmpeg-svn-14277\FFmpeg-svn-14277\ffmpeg.exe" -i "I:\black lagoon\01black lagoon.
    flv" -s 320x240 -aspect 4:3 -ar 44100 -ac 2 -vcodec libxvid -sameq -acodec libmp
    3lame -sameq "I:\black lagoon\01black lagoon.avi"
    FFmpeg version Sherpya-r14277, Copyright (c) 2000-2008 Fabrice Bellard, et al.
    libavutil version: 49.7.0
    libavcodec version: 51.60.0
    libavformat version: 52.17.0
    libavdevice version: 52.0.0
    built on Jul 18 2008 11:12:48, gcc: 4.2.4 [Sherpya]

    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000
    /1) -> 12.00 (12/1)
    Input #0, flv, from 'I:\black lagoon\01black lagoon.flv':
    Duration: 00:23:25.74, start: 0.000000, bitrate: 64 kb/s
    Stream #0.0: Video: flv, yuv420p, 540x302, 12.00 tb(r)
    Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
    Output #0, avi, to 'I:\black lagoon\01black lagoon.avi':
    Stream #0.0: Video: libxvid, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200
    kb/s, 12.00 tb(c)
    Stream #0.1: Audio: libmp3lame, 44100 Hz, stereo, 64 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Press [q] to stop encoding
    i still keep getting this though
    q=2-31
    is that doing something? i don't understand what that means
    Quote Quote  



Similar Threads

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