Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: ffmpeg to .flv quality issues

  1. #1
    Join Date
    Jun 2011
    Location
    europe
    Beans
    21

    ffmpeg to .flv quality issues

    I am using this simple command to convert to .flv

    Code:
    ffmpeg -i test.mp4  -sameq  -acodec libfacc  -s 480x320 test.flv
    the sound is o.k. but not great how can I improve it,

    I have seen somewhere that libfaac is not the best audio codec.

  2. #2
    Join Date
    Dec 2006
    Beans
    7,316

    Re: ffmpeg to .flv quality issues

    Can you post the complete terminal output from your command?
    You think that's air you're breathing now?

  3. #3
    Join Date
    Jun 2011
    Location
    europe
    Beans
    21

    Re: ffmpeg to .flv quality issues

    link to playing test files

    Code:
    Code:
    ffmpeg -i test.mp4  -sameq  -acodec libfaac  -s 480x320 test.flv
    Output:
    Code:
    $ ffmpeg -i test.mp4  -sameq  -acodec libfacc  -s 480x320 test.flv
    FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
      built on Dec  4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
      configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
      libavutil     50.15. 1 / 50.15. 1
      libavcodec    52.72. 2 / 52.72. 2
      libavformat   52.64. 2 / 52.64. 2
      libavdevice   52. 2. 0 / 52. 2. 0
      libavfilter    1.19. 0 /  1.19. 0
      libswscale     0.11. 0 /  0.11. 0
      libpostproc   51. 2. 0 / 51. 2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 1
        compatible_brands: isomavc1
      Duration: 00:01:57.36, start: 0.000000, bitrate: 2672 kb/s
        Stream #0.0(und): Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 2513 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc
        Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 157 kb/s
    Unknown encoder 'libfacc'
    [richie@web1 testing]$ ffmpeg -i test.mp4  -sameq  -acodec libfaac  -s 480x320 test.flv
    FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
      built on Dec  4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
      configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
      libavutil     50.15. 1 / 50.15. 1
      libavcodec    52.72. 2 / 52.72. 2
      libavformat   52.64. 2 / 52.64. 2
      libavdevice   52. 2. 0 / 52. 2. 0
      libavfilter    1.19. 0 /  1.19. 0
      libswscale     0.11. 0 /  0.11. 0
      libpostproc   51. 2. 0 / 51. 2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 1
        compatible_brands: isomavc1
      Duration: 00:01:57.36, start: 0.000000, bitrate: 2672 kb/s
        Stream #0.0(und): Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 2513 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc
        Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 157 kb/s
    Output #0, flv, to 'test.flv':
      Metadata:
        encoder         : Lavf52.64.2
        Stream #0.0(und): Video: flv, yuv420p, 480x320 [PAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 1k tbn, 30 tbc
        Stream #0.1(und): Audio: libfaac, 44100 Hz, stereo, s16, 64 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Press [q] to stop encoding
    frame= 3518 fps= 97 q=0.0 Lsize=   56871kB time=117.28 bitrate=3972.3kbits/s dup=0 drop=1
    video:55815kB audio:917kB global headers:0kB muxing overhead 0.245238%
    thanks for looking (listening)

  4. #4
    Join Date
    Dec 2006
    Beans
    7,316

    Re: ffmpeg to .flv quality issues

    Thanks for posting the details. Your existing mp4 contains h.264 video and aac sound, both of which live quite happily an an flv container. So perhaps in this case all that is required is:

    Code:
    ffmpeg -i test.mp4 -acodec copy -vcodec copy test.flv
    Perhaps this will be enough?
    You think that's air you're breathing now?

  5. #5
    Join Date
    Jun 2011
    Location
    europe
    Beans
    21

    Re: ffmpeg to .flv quality issues

    thanks for the response

    I should explain I am trying to perfect this to convert most file types with good quality,

    I had tried -acopy and works fine for .mp4 but for a test.mpg didn't work...

  6. #6
    Join Date
    Sep 2006
    Beans
    3,713

    Re: ffmpeg to .flv quality issues

    Quote Originally Posted by richie bee View Post
    I should explain I am trying to perfect this to convert most file types with good quality
    More information would be useful to give example commands more suited for what you want. Why flv? What are using these output files for? I'm assuming you're going to be using them on a web site with a Flash player such as JW Player of Flowplayer, but I can only guess.

  7. #7
    Join Date
    Jun 2011
    Location
    europe
    Beans
    21

    Re: ffmpeg to .flv quality issues

    Hi,

    good question - the .flv format is for a videosite using latest jwplayer - the idea being that the files have low file sizes equal or lower than the original but still retaining good quality for good streaming speeds, (served by a cnd)

    we are also encoding 2 versions in .mp4 for ipod and a higher res for ipad that is not a problem.

    but surely tweeking the flash is possible

    I have seen some of your other posts and even if it takes a more complex command code I am prepared to go down that path.

  8. #8
    Join Date
    Sep 2006
    Beans
    3,713

    Re: ffmpeg to .flv quality issues

    Quote Originally Posted by richie bee View Post
    we are also encoding 2 versions in .mp4 for ipod and a higher res for ipad that is not a problem.
    How are you encoding the iPod and iPad videos? Can you show your commands? JW Player can handle H.264 in .mp4, so perhaps you can use the iPod or iPad video as the web video too.

    I once encoded videos for a client that wanted their videos online using JW Player and a downloadable version that worked on iPod. I just made one output per video that satisfied both requirements instead of making several versions, but your requirements may be different.

  9. #9
    Join Date
    Jun 2011
    Location
    europe
    Beans
    21

    Re: ffmpeg to .flv quality issues

    You are right my requirements are different,

    I notice also that vimeo.com have chosen the .mp4 route and html5 video also requires multiple format - but then why do the majority youtube.com still use .flv?

  10. #10
    Join Date
    Sep 2006
    Beans
    3,713

    Re: ffmpeg to .flv quality issues

    Most YouTube videos I encounter these days are in the MP4 container, and the Wikipedia entry on Youtube seems to support that assumption.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •