Bash 命令行上无限音频流中的64KB静默替换64KB二进制
我尝试对webradio流进行一些流操作。目标是在triggerfile中使用一种模式来替代一些秒的流内时间,以使流外时间保持沉默 我发现bbe可能适合这样做,如果我能带上类似的东西Bash 命令行上无限音频流中的64KB静默替换64KB二进制,bash,sed,stream,wget,mplayer,Bash,Sed,Stream,Wget,Mplayer,我尝试对webradio流进行一些流操作。目标是在triggerfile中使用一种模式来替代一些秒的流内时间,以使流外时间保持沉默 我发现bbe可能适合这样做,如果我能带上类似的东西 bbe -e "s/c:\\temp\\jingle.img/c:\\temp\\silence.txt/" file1 工作 (see >man bbe ...EXAMPLES bbe -e "s/c:\\temp\\data1.txt/c:\\temp\\data2.txt/" file1
bbe -e "s/c:\\temp\\jingle.img/c:\\temp\\silence.txt/" file1
工作
(see >man bbe
...EXAMPLES
bbe -e "s/c:\\temp\\data1.txt/c:\\temp\\data2.txt/" file1
all occurrences of "c:\temp\data1.txt" in file file1 are
changed to "c:\temp\data2.txt"
但是在我的linux机器Bash4.1.5上,我无法读取模式文件
像s/$cat-kingle.img/这样的测试。。。由于错误转义或大小过大而被拒绝
假设有64k个随机数据文件
/home/kingle.img和
/home/silence.img
我有什么,但只是扰码的声音一点,并限于128字节的模式是
wget -q -O - "$@" http://ds7.comcities.com:8033/stream | bbe -e "s/\x97/\x01/" | mplayer -cache 10000 -cache-min 4 -
那么,如何使储存在jingle.img中的叮当声静音呢