ffmpeg推流rtmp命令
时间: 2023-09-01 08:12:38 浏览: 153
ffmpeg支持rtmps推流
ffmpeg推流rtmp命令可以使用以下几种方式进行:
1. 使用命令行推流本地视频文件到rtmp服务器:
ffmpeg -re -i test1.mp4 -f flv rtmp://127.0.0.1:1935/live/123
2. 使用命令行推流桌面内容到rtmp服务器:
ffmpeg -f avfoundation -i "1" -vcodec libx264 -preset ultrafast -acodec libfaac -f flv rtmp://localhost:1935/rtmplive/home
3. 使用命令行推流音频设备到rtmp服务器:
ffmpeg -f dshow -i audio="麦克风" -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -f flv rtmp://127.0.0.1:1935/live/123 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [利用ffmpeg实现rtmp推流直播](https://blog.csdn.net/gqg_guan/article/details/129144426)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [FFmpeg常用推流命令](https://blog.csdn.net/yinshipin007/article/details/128473456)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文