ffmpeg拉取rtsp
时间: 2023-08-19 21:06:51 浏览: 95
要使用FFmpeg拉取RTSP流,你可以使用以下命令:
ffmpeg -stimeout 30000000 -i rtsp://127.0.0.1:8554/stream -c copy output.mp4
这个命令会从指定的RTSP流中拉取视频,并将其保存为output.mp4文件。你需要确保RTSP流的地址正确,并且已经在运行中。这个命令中的"-c copy"参数表示直接复制视频流而不进行编码,可以提高处理速度。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [基于FFmpeg进行rtsp推流及拉流(详细教程)](https://blog.csdn.net/chan1987818/article/details/128219230)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [基于FFmpeg的视频播放器之三:拉取rtsp流](https://blog.csdn.net/caoshangpa/article/details/124493412)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文