您的输入可能不包含两个音频流

您的输入可能不包含两个音频流

我在运行此命令时遇到问题。我尝试拆分、连接并创建 .mp4 输出,但一直收到此错误:

Stream specifier ':a:0' in filtergraph description [0:v]trim=1:130.5421184320267,setpts=PTS-STARTPTS[v0.1]; [0:a:0]atrim=1:130.5421184320267,asetpts=PTS-STARTPTS[a0.1]; [0:a:1]atrim=1:130.5421184320267,asetpts=PTS-STARTPTS[a0.2]; [v0.1][a0.1] [a0.2]concat=n=1:v=1:a=2[out_1] matches no streams.

该命令本身是:

ffmpeg -y -f mxf -i 158907_019_1790823_1.mxf -filter_complex "[0:v]yadif,split=2[out1][out2]" -filter_complex "[0:v]yadif,split=2[out1][out2]" -map "[out1]" -filter_complex "[0:v]trim=1:130.5421184320267,setpts=PTS-STARTPTS[v0.1]; [0:a:0]atrim=1:130.5421184320267,asetpts=PTS-STARTPTS[a0.1]; \
[0:a:1]atrim=1:130.5421184320267,asetpts=PTS-STARTPTS[a0.2]; [v0.1][a0.1] [a0.2]concat=n=1:v=1:a=2[out_1]" -map "[out_1]" -r 29.97 output_1.mp4 -map "[out2]" -filter_complex "[0:v]trim=1:190.5421184320267,setpts=PTS-STARTPTS[v0.1]; \
[0:a:0]atrim=130:190.5421184320267,asetpts=PTS-STARTPTS[a0.1]; \
[0:a:1]atrim=130:190.5421184320267,asetpts=PTS-STARTPTS[a0.2]; [v0.1][a0.1]\
[a0.2]concat=n=1:v=1:a=2[out_2]" -map "[out_2]" -c:v prores_ks -profile:v 3 output_2.mp4

答案1

您的输入可能不包含两个音频流

如果没有您命令的完整日志,我只能进行推测,但我认为这就是“ ”的原因Stream specifier ':a:0' in filtergraph description...matches no streams

在一个 filtergraph 中完成所有过滤

否则,输入/输出标签会变得混乱,更容易出现错误,并且整个过滤图可能会被忽略。

MP4 不支持 ProRes

输出到.mov而不是.mp4


例子

ffmpeg -y -i 158907_019_1790823_1.mxf -filter_complex \
"[0:v]yadif,fps=ntsc,split=2[y1][y2]; \
 [y1]trim=1:130.5421184320267,setpts=PTS-STARTPTS[v1]; \
 [y2]trim=1:190.5421184320267,setpts=PTS-STARTPTS[v2]; \
 [0:a:0]atrim=1:130.5421184320267,asetpts=PTS-STARTPTS[a1]; \
 [0:a:1]atrim=1:130.5421184320267,asetpts=PTS-STARTPTS[a2]; \
 [0:a:0]atrim=130:190.5421184320267,asetpts=PTS-STARTPTS[b1]; \
 [0:a:1]atrim=130:190.5421184320267,asetpts=PTS-STARTPTS[b2]; \
 [v1][a1][a2]concat=n=1:v=1:a=2[out_v1][out_a1][out_a2]; \
 [v2][b1][b2]concat=n=1:v=1:a=2[out_v2][out_b1][out_b2]" \
-map "[out_v1]" -map "[out_a1]" -map "[out_a2]" output_1.mp4 \
-map "[out_v2]" -map "[out_b1]" -map "[out_b2]" -c:v prores_ks -profile:v 3 output_2.mov

相关内容