ffmpeg -h demuxer=decklink
//udp->deck
ffmpeg -i udp://127.0.0.1:6017 -max_delay 0 -preset ultrafast -tune zerolatency -threads 8 -fflags nobuffer -pix_fmt uyvy422 -ar 48000 -f decklink 88:25a7cda0:00000000
//video0->udp
ffmpeg -framerate 25 -video_size 640x480 -max_delay 0 -threads 16 -fflags nobuffer -i /dev/video0 -max_delay 0 -s 1920x1080 -preset ultrafast -tune zerolatency -threads 16 -fflags nobuffer -acodec libfdk_aac -vcodec h264 -r 25 -f mpegts udp://192.168.100.77:6017
ffplay -max_delay 1000 -fflags nobuffer -preset ultrafast -tune zerolatency -threads 16 -i udp://127.0.0.1:6016
//mp4->udp
ffmpeg -stream_loop -1 -re -i westLife_25.mp4 -s 1920x1080 -vcodec h264 -acodec libfdk_aac -preset ultrafast -threads 8 -f mpegts udp://127.0.0.1:6017
方案一:
摄像机1080i50
./Capture -d 1 -m -1 -v video.raw -a audio.raw
./TestPattern -d 0 -m 17
ffmpeg -i udp://127.0.0.1:6017 -max_delay 0 -preset ultrafast -tune zerolatency -threads 8 -fflags nobuffer -pix_fmt uyvy422 -ar 48000 -f decklink 88:25a7cda0:00000000
udp->udp 127
1.3s:TestPattern
6.12s:命令
方案二:
摄像机1080 level A
./Capture -d 1 -m -1 -v video.raw -a audio.raw
./TestPattern -d 0 -m 17
ffmpeg -i udp://127.0.0.1:6017 -max_delay 0 -preset ultrafast -tune zerolatency -threads 8 -fflags nobuffer -pix_fmt uyvy422 -ar 48000 -f decklink 88:25a7cda0:00000000
10s:TestPattern
18s命令
方案三:
摄像机1080 level B
14s:TestPattern
18s:命令
方案四:端午跑三天待测结果 音频用的frame_48000->pts 视频用的num*40ms
摄像机->过汇聚->TestPattern 1080i50 6M
2.68s:TestPattern 一天两夜不崩,延时不累积,17帧。
2.48s:ffplay但抖动很大,也比较频繁
查看所有已支持的滤镜
ffmpeg -filters
查看doubleweave这个滤镜的参数选项
ffmpeg -h filter=doubleweave
ffplay -vf “weave=first_field=top” -i ‘/home/yqw/Demo/westLife.mp4’
一路3840x2168 p50
i9 8核16线程 id 88
ffplay -fflags nobuffer udp://127.0.0.1:6017