整理 -- ffmpeg及nginx-rtmp在rtmp中擴展hevc

原文鏈接:https://github.com/ksvc/FFmpeg/wiki/instructions

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

4、修改的代碼及包-ubuntu

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章