1、ffmpeg4.1扩展参考:
-
打补丁及使用说明:https://github.com/ksvc/FFmpeg/wiki/instructions
-
推流说明: https://github.com/ksvc/FFmpeg/wiki/hevcpush
-
https://blog.youkuaiyun.com/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

本文详细介绍了如何使用FFmpeg 4.1版本进行视频推流,并提供了具体的命令示例。同时,分享了在Ubuntu 14环境下,通过打补丁的方式对FFmpeg进行扩展的方法,以及如何利用Nginx的rtmp-module模块实现流媒体服务器的搭建。文中还附带了推流成功的实例。
604

被折叠的 条评论
为什么被折叠?



