1 Star 0 Fork 0

小顾 / ffmpeg_4.1_hevc_rtmp_functioned

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Unlicense

ffmpeg_4.1_hevc_rtmp_functioned

介绍

总结网上各路大神对于ffmpeg推hevc的rtmp流的教程介绍,发现ffmpeg编译还有很多坑的,我在这里准备了一套文件把坑给填上。
实现效果:ffmpeg可以推送HEVC的rtmp流
运行环境centos7

软件架构

调试过的安装脚本+文件压缩包 形成自解压自运行的开箱脚本。

安装教程

  1. chmod +x ffmpeg.run
  2. ./ffmpeg.run

使用说明

后台推流命令
nohup ffmpeg -nostdin -i "in" -c:v copy -c:a libfdk_aac -f flv "rtmp://out"
其中输入in可用网络流或者文件,如使用文件,在ffmpeg后加入参数-re --fflags +genpts
输出rtmp://out请自行使用可用地址,如果没有,可以移步我搭建的有推拉流验证的srs项目srs-auth-with-python,搭建后用以下命令测试:

推流地址:rtmp://127.0.0.1/live?do=publish&key=2cccb9bbb7b0f20a916233e38899c0f9/test
拉流地址:rtmp://127.0.0.1/live?do=play&key=287d2df531c43e8abb4aab223a9aaa61/test

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <http://unlicense.org>

简介

总结网上各路大神对于ffmpeg推hevc的rtmp流的教程介绍,发现ffmpeg编译还有很多坑的,我在这里准备了一套文件把坑给填上。 展开 收起
Unlicense
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/gunaiqiu/ffmpeg_4.1_hevc_rtmp_functioned.git
git@gitee.com:gunaiqiu/ffmpeg_4.1_hevc_rtmp_functioned.git
gunaiqiu
ffmpeg_4.1_hevc_rtmp_functioned
ffmpeg_4.1_hevc_rtmp_functioned
master

搜索帮助