ffmpeg接收RTSP摄像头为什么Size=0kb

linzian888 发布于 2013/05/17 18:02
阅读 3K+
收藏 0

命令如下:

ffmpeg -i "rtsp://admin:admin@192.168.0.27/cam/realmonitor?channel=1&subtype=0" -c copy -f flv rtmp://192.168.0.51:1935/live/test

输出如下:

  libavutil      52. 31.100 / 52. 31.100
  libavcodec     55.  9.100 / 55.  9.100
  libavformat    55.  7.100 / 55.  7.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 65.100 /  3. 65.100
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 031c1a00] Missing reference picture, default is 0
[h264 @ 031c1a00] decode_slice_header error
[h264 @ 031c1a00] RTP: missed 5 packets
[h264 @ 031c1a00] RTP: missed 6 packets
[h264 @ 031c1a00] RTP: missed 36 packets
[h264 @ 031c1a00] RTP: missed 7 packets
[h264 @ 031c1a00] RTP: missed 5 packets
[h264 @ 031c1a00] RTP: missed 28 packets
[h264 @ 031c1a00] RTP: missed 4 packets
[h264 @ 031c1a00] RTP: missed 1 packets
[rtsp @ 023ab560] max_analyze_duration 5000000 reached at 5000000 microseconds
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://admin:admin@192.168.0.27/cam/realmonitor?channel=1&
subtype=0':
  Metadata:
    title           : RTSP Session of ZheJiang Dahua Technology CO.,LTD.
  Duration: 00:00:00.00, start: 0.280000, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuvj420p, 1280x720, 25 fps, 25 tbr, 90k tbn
, 50 tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
Output #0, flv, to 'rtmp://192.168.2.51:1935/live/test':
  Metadata:
    title           : RTSP Session of ZheJiang Dahua Technology CO.,LTD.
    encoder         : Lavf55.7.100
    Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuvj420p, 1280x720, q=2-31
, 25 fps, 1k tbn, 90k tbc
    Stream #0:1: Audio: pcm_alaw ([7][0][0][0] / 0x0007), 8000 Hz, mono, 64 kb/s


Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[NULL @ 031c1a00] RTP: missed 2 packets
[NULL @ 031c1a00] RTP: missed 205 packets
frame=  140 fps=0.0 q=-1.0 size=       0kB time=00:00:06.28 bitrate=   0.6kbits/
RTP: missed 3 packets
frame=  151 fps=145 q=-1.0 size=       0kB time=00:00:06.76 bitrate=   0.5kbits/
frame=  165 fps=105 q=-1.0 size=       0kB time=00:00:07.32 bitrate=   0.5kbits/
RTP: missed 3 packets
frame=  176 fps= 84 q=-1.0 size=       0kB time=00:00:07.80 bitrate=   0.5kbits/
RTP: missed 2 packets
frame=  189 fps= 72 q=-1.0 size=       0kB time=00:00:08.36 bitrate=   0.4kbits/
RTP: missed 6 packets
frame=  203 fps= 64 q=-1.0 size=       0kB time=00:00:08.92 bitrate=   0.4kbits/
frame=  216 fps= 58 q=-1.0 size=       0kB time=00:00:09.44 bitrate=   0.4kbits/
frame=  229 fps= 54 q=-1.0 size=       0kB time=00:00:09.96 bitrate=   0.4kbits/
frame=  242 fps= 51 q=-1.0 size=       0kB time=00:00:10.48 bitrate=   0.3kbits/
frame=  255 fps= 49 q=-1.0 size=       0kB time=00:00:11.00 bitrate=   0.3kbits/
RTP: missed 6 packets
frame=  267 fps= 46 q=-1.0 size=       0kB time=00:00:11.52 bitrate=   0.3kbits/
frame=  280 fps= 45 q=-1.0 size=       0kB time=00:00:12.04 bitrate=   0.3kbits/
frame=  293 fps= 43 q=-1.0 size=       0kB time=00:00:12.56 bitrate=   0.3kbits/
RTP: missed 5 packets
[NULL @ 031c1a00] RTP: missed 3 packets
frame=  306 fps= 42 q=-1.0 size=       0kB time=00:00:13.08 bitrate=   0.3kbits/
RTP: missed 8 packets
frame=  318 fps= 40 q=-1.0 size=       0kB time=00:00:13.60 bitrate=   0.3kbits/
RTP: missed 7 packets
frame=  331 fps= 40 q=-1.0 size=       0kB time=00:00:14.12 bitrate=   0.3kbits/
RTP: missed 2 packets
[NULL @ 031c1a00] RTP: missed 4 packets
frame=  344 fps= 39 q=-1.0 size=       0kB time=00:00:14.64 bitrate=   0.2kbits/
frame=  357 fps= 38 q=-1.0 size=       0kB time=00:00:15.16 bitrate=   0.2kbits/
s

用的大华的网络摄像机,想转码到rtmp服务器。大侠帮忙啊


加载中
0
阿亮
阿亮

ffmpeg -rtsp_transport tcp -i ****

让它使用TCP来传输

返回顶部
顶部