ffmpeg直播系统

1.HLS协议 http live streaming

将本地文件或者摄像头视频转成hls流文件
https://www.ffmpeg.org/ffmpeg-all.html#hls-2

2.rtmp流协议

需要nginx-rtmp-module

编译过程有很多依赖

参考
https://www.jianshu.com/p/06c2025edcd3
https://www.ffmpeg.org/ffmpeg.html

一些常用命令

提取音频 ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac -vn是exclude video
去除音频 ffmpeg -i $input_file -c copy -an $output_file -an就是exclude audio
音频放大 ffmpeg -i out.mp3 -af "volume=20dB" xxx.mp3 注意20dB不能写成20db,20DB
视频水印 https://www.jianshu.com/p/e4ad7e1e7ed5

posted @ 2019-06-29 23:39  funny_coding  阅读(1084)  评论(0编辑  收藏  举报
build beautiful things, share happiness