1、ffmpeg4.1扩展参考:
-
打补丁及使用说明:https://github.com/ksvc/FFmpeg/wiki/instructions
-
推流说明: https://github.com/ksvc/FFmpeg/wiki/hevcpush
-
https://blog.csdn.net/vn9PLgZvnPs1522s82g/article/details/79063377
修改后的ffmpeg代码在ubuntu14上测试推流没有问题。
2、nginx拓展参考:
- 使用了扩展的rtmp-module源码: https://github.com/adwpc/nginx-rtmp-module
3、推流
ffmpeg -re -i "../test.mp4" -threads 1 -vcodec libx265 -x265-params pools=2 -vprofile main -acodec copy -f flv rtmp://localhost:1936/live/test