【发布时间】:2021-11-26 03:25:38
【问题描述】:
这个答案可以解决我的很多问题,但依赖 wc -l 来统计 ffprobe 输出的音频通道数。
How do I use ffmpeg to merge all audio streams (in a video file) into one audio channel?
我使用的是 Windows 批处理文件,所以我需要另一种方法在 CMD 中完成以下操作:
-filter_complex "[0:v]scale=w=1920:h=1080:force_original_aspect_ratio=1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[video];[0:a]amerge=inputs=$(ffprobe -loglevel error -select_streams a -show_entries stream=codec_type -of csv=p=0 input.mov | wc -l),atempo=24000/24024[audio]"
有什么帮助吗?我的编程经验很少。这个问题似乎在问同样的问题,但我似乎无法将其建议调整到 ffprobe 调用中,最终结果只是返回一个数字。
【问题讨论】:
标签: windows batch-file cmd ffmpeg