ffmpeg - 如何使用 tee 输出 rtmp 和 ffmpeg 命令的一个标准输出?

标签 ffmpeg tee

我想将 ffmpeg 输出到一个 rtmp 流。 同时,我想通过我的程序处理H264流。 我已经尝试过 "ffmpeg -f dshow -i video="Webcam C110"-vcodec libx264 -f tee -map 0:v "xx.mkv|-"

但不工作。

最佳答案

基本语法是

ffmpeg -f dshow -i video="Webcam C110" -vcodec libx264 -f tee -map 0:v "[f=flv]rtmp://url|[f=h264]pipe:1"

关于ffmpeg - 如何使用 tee 输出 rtmp 和 ffmpeg 命令的一个标准输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46500170/

相关文章:

android - 在 Android 上将 jpeg 编码为 H264 流 (ffmpeg)

c - 如何获取空音频包?

如果后跟管道,Linux tee 命令有时会失败

linux -/频繁的unix tee命令如何将stdout终端输出写入文件?如果输出太大

linux - 我如何在 Linux 中撤消这些步骤

python-3.x - 我可以从 Python 代码运行 ffmpeg 并在压缩完成后返回信号吗?

FFmpeg 从视频中间删除 2 秒并连接部分。单线解决方案

audio - FFMPEG : Change Video during encoding (using mapping)

intel - Enclave、线程、进程之间有什么关系?