【发布时间】:2018-04-28 08:12:50
【问题描述】:
我像这样通过 ffmpeg 开始视频传输:
ffmpeg -f video4linux2 -i /dev/video0 -vcodec libx264 -preset ultrafast -crf 20 -tune zerolatency -s 800x600 -r 25 -b:v 0.9M -sdp_file video.sdp -f rtp rtp://192.168.10.24:5010
我是这样复制的:
ffplay -protocol_whitelist file,udp,rtp video.sdp
一切正常。然后我中断传输,几秒钟后我恢复。 ffplay 不会立即开始重现但会出现错误:
....
[sdp @ 0x6ebf80] RTP: dropping old packet received too lateB f=1/1
Last message repeated 14 times
[sdp @ 0x6ebf80] RTP: dropping old packet received too lateB f=1/1
Last message repeated 33 times
[sdp @ 0x6ebf80] RTP: dropping old packet received too lateB f=1/1
Last message repeated 41 times
[sdp @ 0x6ebf80] RTP: dropping old packet received too lateB f=1/1
Last message repeated 49 times
[sdp @ 0x6ebf80] RTP: dropping old packet received too lateB f=1/1
Last message repeated 33 times
[sdp @ 0x6ebf80] RTP: dropping old packet received too lateB f=1/1
Last message repeated 27 times
[sdp @ 0x6ebf80] RTP: dropping old packet received too lateB f=1/1
Last message repeated 14 times
[sdp @ 0x6ebf80] RTP: dropping old packet received too lateB f=1/1
Last message repeated 48 times
[sdp @ 0x6ebf80] RTP: dropping old packet received too lateB f=1/1
Last message repeated 34 times
......
一段时间后,播放恢复,但时间过长。当传入流被暂停时,有没有办法消除或最小化这种性质的错误的发生,可以选择或其他什么?阅读手册 ffmpeg 没有任何有价值的东西没有 naryl .... ((((
【问题讨论】:
-
没有人对这个问题有任何想法?
-
还是和当前的 git head 一样
标签: ffmpeg video-streaming rtp