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