Debian 从模式mplayer管道
我正在从模式下加载mplayer,如下所示:Debian 从模式mplayer管道,debian,fifo,mplayer,Debian,Fifo,Mplayer,我正在从模式下加载mplayer,如下所示: mplayer -slave -idle -input file=/tmp/pipe 管道文件包含: loadfile /mymusic/1.mp3 到目前为止,它正在按预期运行我的1.mp3。 但我想在管道中附加seek并暂停,但它不起作用。我做错了什么,甚至可能是这样吗 我在另一个终端尝试了以下操作,但没有成功: echo pause > /tmp/pipe echo pause >> /tmp/pipe printf "p
mplayer -slave -idle -input file=/tmp/pipe
管道文件包含:
loadfile /mymusic/1.mp3
到目前为止,它正在按预期运行我的1.mp3。
但我想在管道中附加seek并暂停,但它不起作用。我做错了什么,甚至可能是这样吗
我在另一个终端尝试了以下操作,但没有成功:
echo pause > /tmp/pipe
echo pause >> /tmp/pipe
printf "pause\n" > /tmp/pipe
printf "pause\n" >> /tmp/pipe
看起来它只是在mplayer-slave启动时打开STDIN。操作系统是Debian8.4.0 我必须使用命令创建FIFO文件管道
mkfifo /tmp/pipe
而不仅仅是写入文件