FFmpeg 需要帮助形成一个 tee muxer 以同时发送到 2 个社交网络

问题描述

我想在 1 个 ffmpeg 过程中流式传输到 youtube 和 twitter

我红色这个https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs

我执行这个命令

/usr/bin/ffmpeg -re -i input.mp4 -deinterlace -c:v libx264 -pix_fmt yuv420p 
-preset veryfast -tune zerolatency -profile:v main -c:a aac -b:a 128k -ac 2 
-crf 19 -r 30 -g 60 -b:v 1369k -minrate 1369k -maxrate 1369k -bufsize 2738k 
-ar 44100 
-filter_complex "[0:v]split=2[s0]; [s0]scale=-2:1080[v0]" 
-map "[v0]" -map 0:a 
-f tee " [select='v:0,a':f=flv]rtmp://a.rtmp.youtube.com/live2/key | [select='v:0,a':f=flv]rtmps://va.pscp.tv:443/x/key "

然后我进入命令行

[libx264 @ 0x55f7b71aae40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x55f7b71aae40] profile Main,level 4.0,4:2:0,8-bit
[libx264 @ 0x55f7b71a8f40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x55f7b71a8f40] profile Main,8-bit
[tee @ 0x55f7b71a6480] No option found near "0,a:f=flv]rtmp://a.rtmp.youtube.com/live2/r9yy-wtdf-rmkp-22qa-c9sb"
[tee @ 0x55f7b71a6480] Slave muxer #0 Failed: Invalid argument,continuing with 1/2 slaves.
[tee @ 0x55f7b71a6480] No option found near "0,a:f=flv]rtmps://va.pscp.tv:443/x/v52px1yfiwuh"
[tee @ 0x55f7b71a6480] All tee outputs Failed.
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:1 -- 
[aac @ 0x55f7b722fd80] Qavg: 298.166
[aac @ 0x55f7b722fd80] 2 frames left in the queue on closing
Conversion Failed!

我的命令有什么问题?

解决方法

您需要对引号进行转义:list(set(outcomes))select=\'v:0,a\'

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...