2016-09-14 52 views
0

我需要使用一些documented pulseaudio options for ffmpeg如設備。從文檔的示例工作,但只有將流名稱:ffmpeg pulseaudio輸出選項(設備)

ffmpeg -i INPUT -f pulse "stream name" 

我有一個名爲回放設備,我想用匯。基於文檔和谷歌搜索,我嘗試了各種選項來指定設備。他們的所有錯誤(或不工作):

ffmpeg -i INPUT -f pulse -device playback-device 
# At least one output file must be specified 

ffmpeg -i INPUT -f pulse -device=playback-device 
# Unrecognized option 'device=playback-device'. Error splitting the argument list: Option not found 

ffmpeg -i INPUT -f pulse device=playback-device 
# Plays to default device not the specified one 

ffmpeg -i INPUT -device playback-device -f pulse 
# At least one output file must be specified 

該設備有:

$ pactl list short sinks | grep playback 
3  playback-device module-null-sink.c  s16le 2ch 48000Hz  IDLE 

回答

1
ffmpeg -i INPUT -f pulse -device playback-device 
# At least one output file must be specified 

這告訴你,你缺少你有說法在你的工作示例中(ffmpeg -i INPUT -f pulse "stream name")。所以,正確的命令是:

ffmpeg -i INPUT -f pulse -device playback-device "stream name" 

當然你也可以更換"stream name"與任何看起來並不像一個選項。

+1

因此,流名稱參數是必需的,當不存在時,錯誤消息將其稱爲「輸出文件」。它也可以使用-stream_name來指定。如果ffmpeg文檔清楚地說明了這一點,這將非常有幫助! –