[FFmpeg-user] ffmpeg + rtsp results in log output not displaying frame size nor bitrate

Michael Smithng msmith at bitgravity.com
Sun Feb 12 21:40:43 CET 2012


So after figuring out how to force ffmpeg to push rtsp over tcp (which wasn't clearly documented...), but now I'm noticing that the output log isn't showing frame size or bitrate deltas.

frame=1221110 fps= 29 q=36.0 size=       0kB time=11:18:22.36 bitrate=   0.0kbits/s dup=1220 drop=0
frame=1221125 fps= 29 q=36.0 size=       0kB time=11:18:22.86 bitrate=   0.0kbits/s dup=1220 drop=0
frame=1221140 fps= 29 q=36.0 size=       0kB time=11:18:23.36 bitrate=   0.0kbits/s dup=1220 drop=0
frame=1221156 fps= 29 q=36.0 size=       0kB time=11:18:23.90 bitrate=   0.0kbits/s dup=1220 drop=0
frame=1221171 fps= 29 q=36.0 size=       0kB time=11:18:24.40 bitrate=   0.0kbits/s dup=1220 drop=0

Using the following command:

./ffmpeg -i $SOURCE -threads 2 -b:v 500k -bt 500k -deinterlace -r 30 -vcodec libx264 -b:a 64k -acodec libfaac -ar 44100 -s 720x480 -x264opts keyint=30:min-keyint=15 -f rtsp -rtsp_transport tcp -muxdelay 0.1 "rtsp://$USER%40$DOMAIN:$PASS@wowza.server.com/stream/path.sdp" 2> ./ffmpeg-log.out

I get the following output:

ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  9 2012 16:42:51 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --logfile=./config_64.log --disable-ffplay --enable-gpl --enable-nonfree --enable-libx264 --enable-libfaac --enable-libmp3lame --arch=x86_64
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 4 / 53. 42. 4
  libavformat  53. 24. 2 / 53. 24. 2
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[dv @ 0x10180e800] Estimating duration from bitrate, this may be inaccurate
Input #0, dv, from '/var/run/raw.dv':
  Duration: N/A, start: 0.000000, bitrate: 28771 kb/s
    Stream #0:0: Video: dvvideo, yuv411p, 720x480, 28771 kb/s, SAR 32:27 DAR 16:9, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0:1: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s
    Stream #0:2: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s
Incompatible pixel format 'yuv411p' for codec 'libx264', auto-selecting format 'yuv422p'
[buffer @ 0x101111d40] w:720 h:480 pixfmt:yuv411p tb:1/1000000 sar:32/27 sws_param:
[buffersink @ 0x101112aa0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x101112d80] w:720 h:480 fmt:yuv411p -> w:720 h:480 fmt:yuv422p flags:0x4
[libx264 @ 0x10185e400] using SAR=32/27
[libx264 @ 0x10185e400] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 0x10185e400] profile High 4:2:2, level 3.0, 4:2:2 8-bit
[libx264 @ 0x10185e400] 264 - core 119 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=30 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=250 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, rtsp, to 'rtsp://user%40name.com:password@wowza.server.com:1935/path/to/stream.sdp':
  Metadata:
    encoder         : Lavf53.24.2
    Stream #0:0: Video: h264, yuv422p, 720x480 [SAR 32:27 DAR 16:9], q=-1--1, 250 kb/s, 90k tbn, 30 tbc  
    Stream #0:1: Audio: aac, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo -> libx264)
  Stream #0:1 -> #0:1 (pcm_s16le -> libfaac)
Press [q] to stop, [?] for help
frame=360449 fps= 30 q=34.0 size=       0kB time=03:20:13.66 bitrate=   0.0kbits/s dup=360 drop=0
[...]
frame=1221110 fps= 29 q=36.0 size=       0kB time=11:18:22.36 bitrate=   0.0kbits/s dup=1220 drop=0
frame=1221125 fps= 29 q=36.0 size=       0kB time=11:18:22.86 bitrate=   0.0kbits/s dup=1220 drop=0
frame=1221140 fps= 29 q=36.0 size=       0kB time=11:18:23.36 bitrate=   0.0kbits/s dup=1220 drop=0
frame=1221156 fps= 29 q=36.0 size=       0kB time=11:18:23.90 bitrate=   0.0kbits/s dup=1220 drop=0
frame=1221171 fps= 29 q=36.0 size=       0kB time=11:18:24.40 bitrate=   0.0kbits/s dup=1220 drop=0

I'm pushing the output stream to wowza and this is working, but I'm concerned about this bitrate issue.

I'm not entirely sure where else to look at the moment, but it would be nice to be able to see 'what' bitrate ffmpeg thinks it's encoding at while streaming.

Thoughts?



More information about the ffmpeg-user mailing list