ffmpeg 通信测试
最编程
2024-04-07 15:28:56
...
UDP协议下会抛出该异常从而中断推流
Failed to update header with correct duration
Failed to update header with correct filesize
在推流命令行中抛出该异常,跑六路协议同时推流测试2天各8小时后无异常抛出
原命令行
ffmpeg -rtsp_transport tcp -i rtsp://username:password@ip:port/h264/ch1/main/av_stream -vcodec copy -acodec aac -ar 44100 -strict -2 -ac 1 -s 1920x1080 -q 10 -f flv rtmp://127.0.0.1:1935/****/*****"
新命令行
ffmpeg -rtsp_transport tcp -i rtsp://username:password@ip:port/h264/ch1/main/av_stream -vcodec copy -acodec aac -ar 44100 -strict -2 -ac 1 -s 1920x1080 -q 10 -f flv -flvflags no_duration_filesize rtmp://127.0.0.1:1935/****/*****"