Failed to update header with correct duration
最编程
2024-04-07 15:33:03
...
nginx集成nginx-rtmp-module模块,使用ffmpeg推送视频到nginx时报错
Failed to update header with correct duration.6.7kbits/s speed=0.991x
Failed to update header with correct filesize
度娘了好久,最终还是在stack overflow找到了解决方法:
./ffmpeg -re -i some.mp4 -f flv -c copy -flvflags no_duration_filesize rtmp://ip:port/live/mo
-flvflags no_duration_filesize 这个参数是关键,这个参数告诉ffmpeg不要抛出duration_filesize警告