ファイルの再生後すぐに終了するコマンドラインオーディオプレーヤー?

ファイルの再生後すぐに終了するコマンドラインオーディオプレーヤー?

コマンドラインでオーディオプレーヤーを試していますが、何か奇妙なことがわかりました。サウンドが非常に短い場合、ほとんどのプレーヤーは最終的に終了し、コントロールを付与する前に再生を完了するのに1〜2秒かかります。ターミナルに戻ってください!

ffplayスペクトログラムは、オーディオファイルと一緒に実行すると実行されるようです。提案この問題の解決策は次のとおりです。

<hypnocat> how can i turn off the spectrogram display?
<sacarasc_> Why would you want to?
<hypnocat> i don't want an extra window to appear, or for ffplay to waste extra processing power displaying it
<hypnocat> it's distracting, annoying, and wasteful
<sacarasc_> Minimise it, and if it's wasteful, your computer is either really, really old or you're overly sensitive to waste...
<hypnocat> my computer is old

...したがって、実際にはこれをコマンドラインプレーヤーと見なしませんが、Ubuntu 11.04で次のコマンドを試しましたgnome-terminal

aplay --buffer-size=10 -q /usr/share/sounds/speech-dispatcher/test.wav
canberra-gtk-play -c never -f /usr/share/sounds/speech-dispatcher/test.wav
mplayer -really-quiet /usr/share/sounds/speech-dispatcher/test.wav
pacat -p --rate 16000 --channels 1 --latency-msec=1 --process-time-msec=2 /usr/share/sounds/speech-dispatcher/test.wav
play -q /usr/share/sounds/speech-dispatcher/test.wav  # with sox

speech-dispatcher/test.wav自体は0.542秒ですが、これらのプログラムはファイルの再生が終了してから約1〜2秒(またはそれ以上)の間端末を占有します。なぜこれが起こり、どのようにこれを防ぐことができますか?これらのアプリケーションでは、これが不可能な場合にオーディオファイルの再生が完了するとすぐに終了するコマンドラインオーディオプレーヤーはありますか?

編集:興味のある方のためにこれが私が必要だったのです。問題#208391:問題: 'xorg'パッケージ:Ubuntu:PulseAudioでX11 XBellイベントを再生する;プレイヤー(この場合canberra-gtk-play)をプロセスから始めて(を使用して)&待ち時間の問題を解決しました。ところで、なぜ短いファイルに対して終了遅延が発生するのか、まだ疑問に思っています。どのようにcvlc従うことができましたか?@安全今やめてもいいですか?

ベストアンサー1

この試みffplay

ffplay -autoexit -nodisp -loglevel panic /usr/share/sounds/speech-dispatcher/test.wav 

おすすめ記事