[FFmpeg-user] FFMPEG / RTMP/FLV not in Real Time

Karim Sadan karim.sadan at gmail.com
Tue Sep 2 16:57:45 CEST 2014

Hello team,

I need some help to stream a live feed to Youtube.
I use ffmpeg to stream a Decklink input (I use an Avisynth script to do
that, no buffer problem with that). When I use it to record into a file
everything is OK, I can record in Real Time (25 fps) (in every format).

I try to stream a 1920/1080 at 25fps to Youtube at 3000Kbps.

See my command line:

*ffmpeg.exe -y -loglevel verbose -i mux_for_pgm1.avs -s 1920x1080 -c:v
libx264 -pix_fmt yuv420p -preset ultrafast -b:v 3000k -c:a aac -strict -2
-b:a 128k -r:a 44100 -f flv rtmp://a.rtmp.youtube.com/live2/ID

And the report:

*ffmpeg version N-66012-g97b8809 Copyright (c) 2000-2014 the FFmpeg
developers  built on Sep  1 2014 00:07:41 with gcc 4.8.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-decklink --enable-zlib  libavutil      54.  7.100 / 54.  7.100
libavcodec     56.  1.100 / 56.  1.100  libavformat    56.  3.100 / 56.
3.100  libavdevice    56.  0.100 / 56.  0.100  libavfilter     5.  0.103 /
5.  0.103  libswscale      3.  0.100 /  3.  0.100  libswresample   1.
1.100 /  1.  1.100  libpostproc    53.  0.100 / 53.  0.100Routing option
strict to both codec and muxer layerGuessed Channel Layout for  Input
Stream #0.1 : stereoInput #0, avisynth, from
'C:\ReckOrder\Sources\AVS\mux_for_pgm1.avs':  Duration: 111:06:40.00,
start: 0.000000, bitrate: N/A    Stream #0:0: Video: rawvideo (YUY2 /
0x32595559), yuyv422, 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc    Stream
#0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536
kb/sParsing...Parsed protocol: 0Parsed host    : a.rtmp.youtube.com
<http://a.rtmp.youtube.com>Parsed app     : live2RTMP_Connect1, ...
connected, handshakingHandShake: Type Answer   : 03HandShake: Server Uptime
: 0HandShake: FMS Version   : Handshaking
finished....RTMP_Connect1, handshakedInvoking connectHandleServerBW: server
BW = 2500000HandleClientBW: client BW = 10000000 2HandleChangeChunkSize,
received: chunk size change to 256RTMP_ClientPacket, received: invoke 240
bytes(object begin)Property: <Name:           no-name., STRING:
_result>Property: <Name:           no-name., NUMBER:    1.00>Property:
<Name:           no-name., OBJECT>(object begin)Property:
<Name:             fmsVer, STRING:    FMS/3,5,3,824>Property: <Name:
capabilities, NUMBER:    127.00>Property: <Name:               mode,
NUMBER:    1.00>(object end)Property: <Name:           no-name.,
OBJECT>(object begin)Property: <Name:              level, STRING:
status>Property: <Name:               code, STRING:
NetConnection.Connect.Success>Property: <Name:        description,
STRING:    Connection succeeded.>Property: <Name:     objectEncoding,
NUMBER:    0.00>Property: <Name:               data, ECMA_ARRAY>(object
begin)Property: <Name:            version, STRING:    3,5,3,824>(object
end)(object end)(object end)HandleInvoke, server invoking
<_result>HandleInvoke, received result for method call <connect>Invoking
releaseStreamInvoking FCPublishInvoking createStreamRTMP_ClientPacket,
received: invoke 21 bytes(object begin)Property: <Name:           no-name.,
STRING:    onBWDone>Property: <Name:           no-name., NUMBER:
0.00>Property: NULL(object end)HandleInvoke, server invoking
<onBWDone>Invoking _checkbwRTMP_ClientPacket, received: invoke 29
bytes(object begin)Property: <Name:           no-name., STRING:
_result>Property: <Name:           no-name., NUMBER:    4.00>Property:
NULLProperty: <Name:           no-name., NUMBER:    1.00>(object
end)HandleInvoke, server invoking <_result>HandleInvoke, received result
for method call <createStream>Invoking publishRTMP_ClientPacket, received:
invoke 73 bytes(object begin)Property: <Name:           no-name.,
STRING:    onStatus>Property: <Name:           no-name., NUMBER:
0.00>Property: NULLProperty: <Name:           no-name., OBJECT>(object
begin)Property: <Name:              level, STRING:    status>Property:
<Name:               code, STRING:    NetStream.Publish.Start>(object
end)(object end)HandleInvoke, server invoking <onStatus>HandleInvoke,
onStatus: NetStream.Publish.Start[graph 0 input from stream 0:0 @ 04189de0]
w:1920 h:1080 pixfmt:yuyv422 tb:1/25 fr:25/1 sar:0/1
sws_param:flags=2[scaler for output stream 0:0 @ 02a0f4e0] w:1920 h:1080
flags:'0x4' interl:0[scaler for output stream 0:0 @ 02a0f4e0] w:1920 h:1080
fmt:yuyv422 sar:0/1 -> w:1920 h:1080 fmt:yuv420p sar:0/1 flags:0x4[graph 1
input from stream 0:1 @ 041b1940] tb:1/48000 samplefmt:s16 samplerate:48000
chlayout:0x3[audio format for output stream 0:1 @ 041b1a40] auto-inserting
filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and
the filter 'audio format for output stream 0:1'[auto-inserted resampler 0 @
041b1ac0] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:fltp
r:48000Hz[libx264 @ 0417eaa0] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX[libx264 @ 0417eaa0] profile Constrained Baseline, level
4.0[libx264 @ 0417eaa0] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=0 ref=1 deblock=0:0:0
analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16
chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1
chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0
decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0
weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=abr
mbtree=0 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
ip_ratio=1.40 aq=0Output #0, flv, to
Metadata:    encoder         : Lavf56.3.100    Stream #0:0: Video: h264
(libx264) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080, q=-1--1, 3000 kb/s,
25 fps, 1k tbn, 25 tbc    Metadata:      encoder         : Lavc56.1.100
libx264    Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 48000 Hz,
stereo, fltp, 128 kb/s    Metadata:      encoder         : Lavc56.1.100
aacStream mapping:  Stream #0:0 -> #0:0 (rawvideo (native) -> h264
(libx264))  Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))Press
[q] to stop, [?] for helpframe=   11 fps=2.5 q=21.0 size=     437kB
time=00:00:00.38 bitrate=9325.0kbits/s    frame=   12 fps=1.8 q=29.0
size=     668kB time=00:00:00.42 bitrate=12847.8kbits/s    frame=   13
fps=1.7 q=37.0 size=     792kB time=00:00:00.47 bitrate=13803.5kbits/s
frame=   14 fps=1.6 q=45.0 size=     914kB time=00:00:00.51
bitrate=14619.7kbits/s    frame=   15 fps=1.3 q=48.0 size=    1194kB
time=00:00:00.55 bitrate=17655.5kbits/s    frame=   16 fps=1.1 q=49.0
size=    1534kB time=00:00:00.59 bitrate=21015.8kbits/s    frame=   17
fps=1.1 q=49.0 size=    1671kB time=00:00:00.61 bitrate=22151.3kbits/s
frame=   28 fps=1.7 q=45.0 size=    1716kB time=00:00:01.06
bitrate=13186.0kbits/s    frame=   38 fps=2.2 q=45.0 size=    1759kB
time=00:00:01.47 bitrate=9788.9kbits/s    frame=   46 fps=2.6 q=46.0
size=    1815kB time=00:00:01.79 bitrate=8295.7kbits/s    frame=   50
fps=2.7 q=46.0 size=    1863kB time=00:00:01.94 bitrate=7859.0kbits/s
frame=   58 fps=3.1 q=43.0 size=    1904kB time=00:00:02.26
bitrate=6896.5kbits/s    frame=   67 fps=3.5 q=43.0 size=    1951kB
time=00:00:02.62 bitrate=6092.2kbits/s    frame=   75 fps=3.8 q=44.0
size=    2003kB time=00:00:02.94 bitrate=5573.2kbits/s    frame=   82
fps=4.0 q=43.0 size=    2056kB time=00:00:03.22 bitrate=5228.1kbits/s
frame=   88 fps=4.2 q=41.0 size=    2104kB time=00:00:03.47
bitrate=4955.3kbits/s    frame=   95 fps=4.4 q=41.0 size=    2155kB
time=00:00:03.75 bitrate=4701.8kbits/s    frame=  101 fps=4.6 q=40.0
size=    2207kB time=00:00:03.99 bitrate=4532.0kbits/s    frame=  106
fps=4.7 q=40.0 size=    2255kB time=00:00:04.18 bitrate=4417.7kbits/s
frame=  111 fps=4.8 q=40.0 size=    2305kB time=00:00:04.39
bitrate=4297.2kbits/s    frame=  116 fps=4.9 q=40.0 size=    2351kB
time=00:00:04.58 bitrate=4199.5kbits/s    frame=  119 fps=4.9 q=40.0
size=    2402kB time=00:00:04.71 bitrate=4173.7kbits/s    frame=  123
fps=4.9 q=40.0 size=    2455kB time=00:00:04.86 bitrate=4134.3kbits/s
frame=  127 fps=5.0 q=40.0 size=    2510kB time=00:00:05.03
bitrate=4084.8kbits/s    frame=  130 fps=5.0 q=40.0 size=    2561kB
time=00:00:05.14 bitrate=4080.5kbits/s    frame=  133 fps=5.0 q=41.0
size=    2614kB time=00:00:05.27 bitrate=4062.6kbits/s    frame=  137
fps=5.0 q=42.0 size=    2676kB time=00:00:05.41 bitrate=4046.4kbits/s
frame=  140 fps=5.0 q=42.0 size=    2732kB time=00:00:05.54
bitrate=4036.1kbits/s    frame=  143 fps=5.1 q=41.0 size=    2785kB
time=00:00:05.67 bitrate=4020.4kbits/s    frame=  147 fps=5.1 q=41.0
size=    2842kB time=00:00:05.82 bitrate=3997.3kbits/s    frame=  151
fps=5.1 q=42.0 size=    2897kB time=00:00:05.99 bitrate=3959.6kbits/s
frame=  155 fps=5.1 q=41.0 size=    2953kB time=00:00:06.14
bitrate=3937.6kbits/s    frame=  160 fps=5.2 q=41.0 size=    3014kB
time=00:00:06.35 bitrate=3884.0kbits/s    frame=  164 fps=5.2 q=41.0
size=    3064kB time=00:00:06.50 bitrate=3857.4kbits/s    frame=  169
fps=5.3 q=41.0 size=    3115kB time=00:00:06.69 bitrate=3810.0kbits/s
frame=  173 fps=5.3 q=38.0 size=    3165kB time=00:00:06.87
bitrate=3773.7kbits/s    frame=  179 fps=5.4 q=38.0 size=    3218kB
time=00:00:07.10 bitrate=3710.6kbits/s    frame=  185 fps=5.5 q=39.0
size=    3270kB time=00:00:07.33 bitrate=3650.8kbits/s    frame=  189
fps=5.5 q=39.0 size=    3322kB time=00:00:07.51 bitrate=3623.9kbits/s
frame=  194 fps=5.6 q=39.0 size=    3375kB time=00:00:07.70
bitrate=3590.0kbits/s    frame=  198 fps=5.6 q=38.0 size=    3427kB
time=00:00:07.87 bitrate=3566.1kbits/s    frame=  202 fps=5.6 q=39.0
size=    3483kB time=00:00:08.02 bitrate=3557.0kbits/s    frame=  206
fps=5.6 q=38.0 size=    3544kB time=00:00:08.19 bitrate=3544.5kbits/s
frame=  210 fps=5.7 q=36.0 size=    3599kB time=00:00:08.34
bitrate=3534.5kbits/s    frame=  217 fps=5.8 q=38.0 size=    3653kB
time=00:00:08.61 bitrate=3472.4kbits/s    frame=  223 fps=5.8 q=38.0
size=    3703kB time=00:00:08.83 bitrate=3434.7kbits/s    frame=  227
fps=5.9 q=39.0 size=    3742kB time=00:00:09.02 bitrate=3397.1kbits/s
frame=  231 fps=5.9 q=39.0 size=    3794kB time=00:00:09.19
bitrate=3380.2kbits/s    frame=  235 fps=5.9 q=39.0 size=    3844kB
time=00:00:09.34 bitrate=3369.8kbits/s    frame=  239 fps=5.9 q=39.0
size=    3886kB time=00:00:09.51 bitrate=3345.8kbits/s    frame=  243
fps=5.9 q=38.0 size=    3935kB time=00:00:09.66 bitrate=3335.8kbits/s
frame=  248 fps=6.0 q=37.0 size=    3989kB time=00:00:09.87
bitrate=3308.0kbits/s    frame=  254 fps=6.0 q=37.0 size=    4037kB
time=00:00:10.11 bitrate=3270.3kbits/s    frame=  258 fps=6.0 q=37.0
size=    4096kB time=00:00:10.26 bitrate=3270.0kbits/s    frame=  264
fps=6.1 q=37.0 size=    4151kB time=00:00:10.51 bitrate=3233.4kbits/s
frame=  268 fps=6.1 q=37.0 size=    4201kB time=00:00:10.66
bitrate=3226.6kbits/s    frame=  272 fps=6.1 q=38.0 size=    4268kB
time=00:00:10.83 bitrate=3225.7kbits/s    frame=  275 fps=6.1 q=38.0
size=    4328kB time=00:00:10.94 bitrate=3239.6kbits/s    frame=  278
fps=6.1 q=38.0 size=    4378kB time=00:00:11.07 bitrate=3239.2kbits/s
frame=  282 fps=6.1 q=40.0 size=    4439kB time=00:00:11.22
bitrate=3240.3kbits/s    frame=  286 fps=6.1 q=41.0 size=    4498kB
time=00:00:11.39 bitrate=3234.6kbits/s    frame=  288 fps=6.1 q=40.0
size=    4559kB time=00:00:11.47 bitrate=3254.1kbits/s    frame=  290
fps=6.0 q=42.0 size=    4617kB time=00:00:11.54 bitrate=3276.9kbits/s
frame=  293 fps=6.0 q=43.0 size=    4666kB time=00:00:11.67
bitrate=3275.5kbits/s    frame=  295 fps=6.0 q=42.0 size=    4731kB
time=00:00:11.75 bitrate=3297.1kbits/s    frame=  297 fps=5.9 q=41.0
size=    4798kB time=00:00:11.81 bitrate=3325.8kbits/s    frame=  300
fps=5.9 q=36.0 size=    4872kB time=00:00:11.90 bitrate=3352.7kbits/s
frame=  302 fps=5.9 q=34.0 size=    4904kB time=00:00:12.03
bitrate=3338.7kbits/s    frame=  308 fps=6.0 q=39.0 size=    4953kB
time=00:00:12.26 bitrate=3307.7kbits/s    frame=  311 fps=5.9 q=38.0
size=    5008kB time=00:00:12.39 bitrate=3310.3kbits/s    frame=  316
fps=6.0 q=39.0 size=    5053kB time=00:00:12.58 bitrate=3288.6kbits/s
frame=  321 fps=6.0 q=38.0 size=    5098kB time=00:00:12.77
bitrate=3268.4kbits/s    frame=  325 fps=6.0 q=39.0 size=    5146kB
time=00:00:12.95 bitrate=3255.1kbits/s    frame=  329 fps=6.0 q=38.0
size=    5194kB time=00:00:13.09 bitrate=3248.7kbits/s    frame=  332
fps=6.0 q=37.0 size=    5246kB time=00:00:13.22 bitrate=3249.1kbits/s
frame=  336 fps=6.0 q=36.0 size=    5305kB time=00:00:13.39
bitrate=3243.4kbits/s    frame=  340 fps=6.1 q=37.0 size=    5352kB
time=00:00:13.54 bitrate=3236.6kbits/s    frame=  344 fps=6.1 q=36.0
size=    5404kB time=00:00:13.71 bitrate=3227.4kbits/s    frame=  348
fps=6.1 q=37.0 size=    5450kB time=00:00:13.86 bitrate=3219.9kbits/s
frame=  352 fps=6.1 q=36.0 size=    5501kB time=00:00:14.03
bitrate=3210.0kbits/s    frame=  357 fps=6.1 q=39.0 size=    5556kB
time=00:00:14.23 bitrate=3198.6kbits/s    frame=  361 fps=6.1 q=37.0
size=    5606kB time=00:00:14.37 bitrate=3193.8kbits/s    frame=  365
fps=6.1 q=37.0 size=    5658kB time=00:00:14.55 bitrate=3185.6kbits/s
frame=  369 fps=6.1 q=36.0 size=    5717kB time=00:00:14.69
bitrate=3186.3kbits/s    frame=  375 fps=6.2 q=39.0 size=    5768kB
time=00:00:14.95 bitrate=3159.7kbits/s    frame=  378 fps=6.2 q=39.0
size=    5819kB time=00:00:15.06 bitrate=3165.1kbits/s    frame=  382
fps=6.2 q=37.0 size=    5872kB time=00:00:15.23 bitrate=3158.2kbits/s
frame=  385 fps=6.2 q=37.0 size=    5920kB time=00:00:15.33
bitrate=3162.0kbits/s    frame=  389 fps=6.2 q=38.0 size=    5964kB
time=00:00:15.51 bitrate=3150.0kbits/s    frame=  394 fps=6.2 q=37.0
size=    6015kB time=00:00:15.70 bitrate=3137.9kbits/s    frame=  398
fps=6.2 q=37.0 size=    6061kB time=00:00:15.87 bitrate=3128.2kbits/s
frame=  403 fps=6.2 q=37.0 size=    6110kB time=00:00:16.06
bitrate=3115.8kbits/s    frame=  409 fps=6.3 q=37.0 size=    6158kB
time=00:00:16.27 bitrate=3099.0kbits/s    frame=  414 fps=6.3 q=36.0
size=    6204kB time=00:00:16.51 bitrate=3078.2kbits/s    frame=  418
fps=6.3 q=38.0 size=    6270kB time=00:00:16.66 bitrate=3082.7kbits/s
frame=  421 fps=6.3 q=37.0 size=    6323kB time=00:00:16.79
bitrate=3085.2kbits/s    frame=  425 fps=6.3 q=39.0 size=    6372kB
time=00:00:16.93 bitrate=3081.7kbits/s    frame=  428 fps=6.3 q=38.0
size=    6424kB time=00:00:17.06 bitrate=3083.8kbits/s    frame=  431
fps=6.3 q=38.0 size=    6470kB time=00:00:17.19 bitrate=3082.5kbits/s
frame=  435 fps=6.3 q=37.0 size=    6540kB time=00:00:17.34
bitrate=3089.0kbits/s    frame=  439 fps=6.3 q=37.0 size=    6603kB
time=00:00:17.51 bitrate=3088.6kbits/s    frame=  442 fps=6.3 q=37.0
size=    6653kB time=00:00:17.62 bitrate=3092.9kbits/s    frame=  445
fps=6.3 q=39.0 size=    6708kB time=00:00:17.75 bitrate=3095.7kbits/s
frame=  448 fps=6.3 q=39.0 size=    6756kB time=00:00:17.87
bitrate=3095.9kbits/s    frame=  450 fps=6.3 q=39.0 size=    6809kB
time=00:00:17.94 bitrate=3109.0kbits/s    frame=  453 fps=6.2 q=39.0
size=    6864kB time=00:00:18.07 bitrate=3111.9kbits/s    frame=  455
fps=6.2 q=39.0 size=    6922kB time=00:00:18.15 bitrate=3123.4kbits/s
frame=  459 fps=6.2 q=37.0 size=    7017kB time=00:00:18.30
bitrate=3140.7kbits/s    frame=  462 fps=6.2 q=35.0 size=    7082kB
time=00:00:18.43 bitrate=3147.4kbits/s    frame=  465 fps=6.2 q=36.0
size=    7142kB time=00:00:18.53 bitrate=3156.2kbits/s    frame=  469
fps=6.2 q=39.0 size=    7214kB time=00:00:18.71 bitrate=3158.5kbits/s
frame=  471 fps=6.1 q=38.0 size=    7270kB time=00:00:18.79
bitrate=3169.0kbits/s    frame=  473 fps=6.1 q=39.0 size=    7320kB
time=00:00:18.85 bitrate=3180.0kbits/s    frame=  475 fps=6.1 q=38.0
size=    7369kB time=00:00:18.94 bitrate=3186.6kbits/s    frame=  477
fps=6.1 q=38.0 size=    7434kB time=00:00:19.03 bitrate=3200.2kbits/s
frame=  480 fps=6.1 q=39.0 size=    7505kB time=00:00:19.15
bitrate=3209.2kbits/s    frame=  483 fps=6.1 q=39.0 size=    7573kB
time=00:00:19.22 bitrate=3227.6kbits/s    frame=  485 fps=6.0 q=39.0
size=    7621kB time=00:00:19.35 bitrate=3226.5kbits/s    frame=  488
fps=6.0 q=39.0 size=    7709kB time=00:00:19.47 bitrate=3242.4kbits/s
frame=  491 fps=6.0 q=39.0 size=    7768kB time=00:00:19.58
bitrate=3249.2kbits/s    frame=  494 fps=6.0 q=39.0 size=    7835kB
time=00:00:19.71 bitrate=3256.1kbits/s    frame=  497 fps=6.0 q=40.0
size=    7888kB time=00:00:19.81 bitrate=3260.6kbits/s    frame=  500
fps=6.0 q=39.0 size=    7955kB time=00:00:19.94 bitrate=3267.4kbits/s
frame=  503 fps=6.0 q=36.0 size=    8018kB time=00:00:20.07
bitrate=3272.0kbits/s    frame=  507 fps=6.0 q=40.0 size=    8075kB
time=00:00:20.22 bitrate=3270.9kbits/s    frame=  509 fps=6.0 q=40.0
size=    8122kB time=00:00:20.31 bitrate=3276.0kbits/s    frame=  512
fps=6.0 q=39.0 size=    8167kB time=00:00:20.43 bitrate=3273.7kbits/s
frame=  515 fps=6.0 q=40.0 size=    8225kB time=00:00:20.54
bitrate=3279.7kbits/s    frame=  518 fps=6.0 q=41.0 size=    8276kB
time=00:00:20.67 bitrate=3279.7kbits/s    frame=  521 fps=5.9 q=39.0
size=    8331kB time=00:00:20.77 bitrate=3284.6kbits/s    frame=  523
fps=5.9 q=39.0 size=    8387kB time=00:00:20.86 bitrate=3293.0kbits/s
frame=  527 fps=5.9 q=39.0 size=    8450kB time=00:00:21.03
bitrate=3290.9kbits/s    frame=  530 fps=5.9 q=38.0 size=    8499kB
time=00:00:21.14 bitrate=3293.3kbits/s    frame=  534 fps=5.9 q=38.0
size=    8553kB time=00:00:21.31 bitrate=3287.8kbits/s    frame=  539
fps=6.0 q=39.0 size=    8595kB time=00:00:21.50 bitrate=3274.3kbits/s
frame=  542 fps=6.0 q=37.0 size=    8649kB time=00:00:21.63
bitrate=3275.2kbits/s    frame=  546 fps=6.0 q=37.0 size=    8695kB
time=00:00:21.78 bitrate=3270.2kbits/s    frame=  551 fps=6.0 q=37.0
size=    8742kB time=00:00:21.99 bitrate=3255.9kbits/s    [flv @ 0417dc20]
Failed to update header with correct duration.[flv @ 0417dc20] Failed to
update header with correct filesize.frame=  556 fps=6.0 q=-1.0 Lsize=
8834kB time=00:00:22.24 bitrate=3253.9kbits/s    video:8455kB audio:351kB
subtitle:0kB other streams:0kB global headers:0kB muxing overhead:
0.324278%Input file #0 (C:\ReckOrder\Sources\AVS\mux_for_pgm1.avs):  Input
stream #0:0 (video): 557 packets read (2305843200 bytes); 556 frames
decoded;   Input stream #0:1 (audio): 555 packets read (4262400 bytes); 555
frames decoded (1065600 samples);   Total: 1112 packets (2310105600 bytes)
demuxedOutput file #0
<http://a.rtmp.youtube.com/live2/karim.sadan.9g7u-sxwc-frfd-5fbw>):  Output
stream #0:0 (video): 556 frames encoded; 556 packets muxed (8657661 bytes);
  Output stream #0:1 (audio): 1040 frames encoded (1064960 samples); 1041
packets muxed (358992 bytes);   Total: 1597 packets (9016653 bytes)
muxedInvoking FCUnpublishInvoking deleteStream[libx264 @ 0417eaa0] frame
I:3     Avg QP:30.33  size: 25254[libx264 @ 0417eaa0] frame P:553   Avg
QP:39.15  size: 15518[libx264 @ 0417eaa0] mb I  I16..4: 100.0%  0.0%
0.0%[libx264 @ 0417eaa0] mb P  I16..4: 25.4%  0.0%  0.0%  P16..4: 14.5%
0.0%  0.0%  0.0%  0.0%    skip:60.1%[libx264 @ 0417eaa0] final ratefactor:
35.67[libx264 @ 0417eaa0] coded y,uvDC,uvAC intra: 9.8% 9.6% 0.9% inter:
5.0% 2.6% 0.0%[libx264 @ 0417eaa0] i16 v,h,dc,p: 42% 27% 21% 11%[libx264 @
0417eaa0] i8c dc,h,v,p: 81% 10%  8%  1%[libx264 @ 0417eaa0] kb/s:3114.05*
It's impossible to stay at 25 fps, the framerate constantly decrease. And
the cpu is not use, so I assume that my computer is fine. I have a i5-2500k
at 3.30Ghz / 8 GB RAM.
I have a pretty good hardware to do that, and it works perfectly with Adobe
Flash Media Encoder but I don't want to use it.
I tried every profile, with buffer/no buffer, -r 25, -re... A lot of
parameters without success. It's only ok at 800Kbs with a low quality. But
like I said, it's ok with Flash Media Encoder.
The issue is the same if I take a file in input or If I pipe the process to
an other ffmpeg.

Maybe something is wrong in the rtmp demux. Does anyone have an idea ?

Thanks for your help.


More information about the ffmpeg-user mailing list