Hi,

I have been busy for hours trying to get the settings correct ..
I want to upload a MP4 and change it to FLV.
Settings are:

video out ext.
FLV

Video Codec:
Flash Video (FLV) Sorenson h.263

Video quality : 3
Video speed : 3

audio : AAC

I get this error :

[flv @ 0x84e4100] requested bitrate is too low

How do I correct this? I have tried changing it to almost every possibly bit rate setting but no success.

I am using flowplayer to play the video.

Thanks in advance,

B

Comments

Setting the option , single pass encoding did the trick.

Status:Active» Postponed (maintainer needs more info)

Could you post the entire log entry, so I can see the command line that was used?

Hi there, apologies for replying late.

It has been solved, see my previous message.

Status:Postponed (maintainer needs more info)» Fixed

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status:Closed (fixed)» Active

Not sure if "single pass encoding" is a fix for this issue. The first pass indeed works well, but the second fails.

Here is my log:

Reported errors
    PHPVideoToolkit error: Execute error. It was not possible to encode "/home/stage.dealfisch.dev/public_html/sites/default/files/user/1/video/video_test.flv" as FFmpeg returned an error. Note, however the error was encountered on the second pass of the encoding process and the first pass appear to go fine. The error is with the video codec of the input file. FFmpeg reports the error to be "Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height".
Executed commands and output
    /usr/bin/ffmpeg -i '/home/stage.dealfisch.dev/public_html/sites/default/files/user/1/video/video_test.flv' -strict experimental -vcodec 'flv' -qscale '12' -s '640x360' -acodec 'aac' -ac '2' -pass '1' -passlogfile '/tmp/1347827465-505637095e5f1-multipass'  -y /tmp/1347827465-505637095e47c.flv
    ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
      built on Jun 13 2012 14:14:09 with gcc 4.4.5
      configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
      libavutil    50. 43. 0 / 50. 43. 0
      libavcodec   52.123. 0 / 52.123. 0
      libavformat  52.111. 0 / 52.111. 0
      libavdevice  52.  5. 0 / 52.  5. 0
      libavfilter   1. 80. 0 /  1. 80. 0
      libswscale    0. 14. 1 /  0. 14. 1
      libpostproc  51.  2. 0 / 51.  2. 0
    [flv @ 0x21912e0] Estimating duration from bitrate, this may be inaccurate
    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
    Input #0, flv, from '/home/stage.dealfisch.dev/public_html/sites/default/files/user/1/video/video_test.flv':
      Metadata:
        hasKeyframes    : true
        hasMetadata     : true
        duration        : 78
        audiosamplerate : 22000
        audiodatarate   : 64
        datasize        : 12266412
        framerate       : 25
        hasVideo        : true
        audiosamplesize : 16
        stereo          : true
        canSeekToEnd    : false
        videocodecid    : 2
        lasttimestamp   : 78
        lastkeyframetimestamp: 78
        audiosize       : 663159
        hasAudio        : true
        audiodelay      : 0
        videosize       : 11599593
        height          : 360
        filesize        : 12286261
        metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2
        audiocodecid    : 2
        videodatarate   : 1184
        hasCuePoints    : false
        width           : 640
      Duration: 00:01:18.24, start: 0.000000, bitrate: 1276 kb/s
        Stream #0.0: Video: flv, yuv420p, 640x360, 1212 kb/s, 25 tbr, 1k tbn, 1k tbc
        Stream #0.1: Audio: mp3, 22050 Hz, stereo, s16, 64 kb/s
    [buffer @ 0x2197ca0] w:640 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
    Output #0, flv, to '/tmp/1347827465-505637095e47c.flv':
      Metadata:
        hasKeyframes    : true
        hasMetadata     : true
        duration        : 78
        audiosamplerate : 22000
        audiodatarate   : 64
        datasize        : 12266412
        framerate       : 25
        hasVideo        : true
        audiosamplesize : 16
        stereo          : true
        canSeekToEnd    : false
        videocodecid    : 2
        lasttimestamp   : 78
        lastkeyframetimestamp: 78
        audiosize       : 663159
        hasAudio        : true
        audiodelay      : 0
        videosize       : 11599593
        height          : 360
        filesize        : 12286261
        metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2
        audiocodecid    : 2
        videodatarate   : 1184
        hasCuePoints    : false
        width           : 640
        encoder         : Lavf52.111.0
        Stream #0.0: Video: flv, yuv420p, 640x360, q=2-31, pass 1, 200 kb/s, 1k tbn, 25 tbc
        Stream #0.1: Audio: libfaac, 22050 Hz, stereo, s16, 64 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Press [q] to stop, [?] for help
    frame=  141 fps=  0 q=12.0 size=     226kB time=00:00:05.52 bitrate= 334.9kbits/s
    frame=  290 fps=288 q=12.0 size=     506kB time=00:00:11.56 bitrate= 358.8kbits/s
    frame=  425 fps=282 q=12.0 size=     787kB time=00:00:16.95 bitrate= 380.5kbits/s
    frame=  549 fps=273 q=12.0 size=    1026kB time=00:00:21.87 bitrate= 384.2kbits/s
    frame=  653 fps=260 q=12.0 size=    1361kB time=00:00:26.00 bitrate= 428.9kbits/s
    frame=  759 fps=252 q=12.0 size=    1752kB time=00:00:30.32 bitrate= 473.2kbits/s
    frame=  879 fps=250 q=12.0 size=    2069kB time=00:00:35.10 bitrate= 482.7kbits/s
    frame= 1010 fps=251 q=12.0 size=    2386kB time=00:00:40.35 bitrate= 484.4kbits/s
    frame= 1142 fps=253 q=12.0 size=    2640kB time=00:00:45.60 bitrate= 474.1kbits/s
    frame= 1268 fps=253 q=12.0 size=    2893kB time=00:00:50.62 bitrate= 468.1kbits/s
    frame= 1397 fps=253 q=12.0 size=    3156kB time=00:00:55.77 bitrate= 463.6kbits/s
    frame= 1537 fps=255 q=12.0 size=    3417kB time=00:01:01.39 bitrate= 455.9kbits/s
    frame= 1665 fps=255 q=12.0 size=    3641kB time=00:01:06.50 bitrate= 448.5kbits/s
    frame= 1796 fps=256 q=12.0 size=    3895kB time=00:01:11.75 bitrate= 444.7kbits/s
    frame= 1956 fps=264 q=12.0 Lsize=    4057kB time=00:01:18.24 bitrate= 424.8kbits/s
    video:3390kB audio:608kB global headers:0kB muxing overhead 1.487492%
    /usr/bin/ffmpeg -i '/home/stage.dealfisch.dev/public_html/sites/default/files/user/1/video/video_test.flv' -strict experimental -vcodec 'flv' -qscale '12' -s '640x360' -acodec 'aac' -ac '2' -pass '2' -passlogfile '/tmp/1347827465-505637095e5f1-multipass'  -y /tmp/1347827465-505637095e47c.flv
    ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
      built on Jun 13 2012 14:14:09 with gcc 4.4.5
      configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
      libavutil    50. 43. 0 / 50. 43. 0
      libavcodec   52.123. 0 / 52.123. 0
      libavformat  52.111. 0 / 52.111. 0
      libavdevice  52.  5. 0 / 52.  5. 0
      libavfilter   1. 80. 0 /  1. 80. 0
      libswscale    0. 14. 1 /  0. 14. 1
      libpostproc  51.  2. 0 / 51.  2. 0
    [flv @ 0x14382e0] Estimating duration from bitrate, this may be inaccurate
    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
    Input #0, flv, from '/home/stage.dealfisch.dev/public_html/sites/default/files/user/1/video/video_test.flv':
      Metadata:
        hasKeyframes    : true
        hasMetadata     : true
        duration        : 78
        audiosamplerate : 22000
        audiodatarate   : 64
        datasize        : 12266412
        framerate       : 25
        hasVideo        : true
        audiosamplesize : 16
        stereo          : true
        canSeekToEnd    : false
        videocodecid    : 2
        lasttimestamp   : 78
        lastkeyframetimestamp: 78
        audiosize       : 663159
        hasAudio        : true
        audiodelay      : 0
        videosize       : 11599593
        height          : 360
        filesize        : 12286261
        metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2
        audiocodecid    : 2
        videodatarate   : 1184
        hasCuePoints    : false
        width           : 640
      Duration: 00:01:18.24, start: 0.000000, bitrate: 1276 kb/s
        Stream #0.0: Video: flv, yuv420p, 640x360, 1212 kb/s, 25 tbr, 1k tbn, 1k tbc
        Stream #0.1: Audio: mp3, 22050 Hz, stereo, s16, 64 kb/s
    [buffer @ 0x143eca0] w:640 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
    [flv @ 0x143a700] [lavc rc] Error: bitrate too low for this video with these parameters.
    Output #0, flv, to '/tmp/1347827465-505637095e47c.flv':
        Stream #0.0: Video: flv, yuv420p, 640x360, q=2-31, pass 2, 200 kb/s, 90k tbn, 25 tbc
        Stream #0.1: Audio: libfaac, 22050 Hz, stereo, 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

Could you make the video_test.flv file available for download?

Never mind. I suggest that you set the video and audio bitrates. Two pass encoding is intended to target a specific bitrate. So it is only useful to use two-pass encoding when the audio and video bitrate fields are set. Maybe I should disable two pass encoding when these aren't given.

Status:Active» Closed (fixed)

Thanks, I understand. As mentioned in the readme.txt, I have to turn of 2pass or have to provide a specific bitrate ... same es in the other issue #1796108: Need help to transcode videos to flv and mp4.

I guess you do not need the video anymore ... its a boring one ;)