1317.75 表示从开始播放到现在的时间以秒为单位
A-V 表示既有音频流又有视频流
-256.654 音视频时间戳的差
fd= frame dropped 丢帧数量
aq= 当前音频帧大小
vq= 当前视频帧大小
sq= 当前字幕帧大小
f timestamp error correction rate(not 100% sure)
截图
ffmpeg -i "rtmp://192.168.1.115:1935/live/camera_152?authedkey=ABC23 timeout=1 "
-ss 0 -f image2 -vframes 5 imge_%d.jpg
# 关键帧截图
ffmpeg -i "rtmp://192.168.1.115:1935/live/camera_152?authedkey=ABC23 timeout=1 "
-vf "select='eq(pict_type,PICT_TYPE_I)'" -vframes 5 -f image2 imge_%d.jpg
ffmpeg -i "rtmp://192.168.1.115:1935/live/camera_152?authedkey=ABC23 timeout=1 "
-vf fps=1 -vframes 5 -f image2 imge_%d.jpg
录制视频 FLV
ffmpeg -i "rtmp://192.168.1.115:1935/live/camera_152?authedkey=ABC23 timeout=1 "
-t 00:00:10 -vcodec copy -acodec copy -f flv do.flv
# 关键帧录制
ffmpeg -i "rtmp://192.168.1.115:1935/live/camera_152?authedkey=ABC23 timeout=1 "
-vf "select='eq(pict_type,PICT_TYPE_I)'" -t 00:00:10 -vcodec copy -acodec copy
-f flv do.flv
录制 MP4
# 关键帧录制
ffmpeg -i "rtmp://192.168.1.115:1935/live/camera_152?authedkey=ABC23 timeout=1 "
-vf "select='eq(pict_type,PICT_TYPE_I)'" -t 00:00:10 -vcodec copy -acodec copy
-f mp4 do.mp4
正常情况下ffmpeg生成moov是在mdat写完成之后写入,可以通过参数faststart将moov容器移动至mdat前面
原因:用VLC播放 http服务下映射的 MP4文件; 会报错:
mp4 stream error: no moov before mdat and the stream is not seekable
ffmpeg -i "rtmp://192.168.1.115:1935/live/camera_152?authedkey=ABC23 timeout=1 "
-vf "select='eq(pict_type,PICT_TYPE_I)'" -t 00:00:10 -vcodec copy -acodec copy
-f mp4 -movflags faststart do.mp4