[英]Streaming audio from PC to Android using GStreamer
Here's the pipelines 这是管道
//Linux PC // Linux PC
gst-launch-0.10 audiotestsrc ! audio/x-raw-int, rate="(int)44100", channels="(int)1", endianness="(int)1234", width="(int)16" ! audioconvert ! vorbisenc ! oggmux max-delay=50 max-page-delay=50 ! tcpserversink host=192.168.0.101 port=36631
//Android // Android
gst-launch-0.10 tcpclientsrc host=192.168.0.101 port=36631 ! oggdemux ! vorbisdec ! audioconvert ! audio/x-raw-int, rate="(int)44100", channels="(int)1", endianness="(int)1234", width="(int)16" ! autoaudiosink
And I get the following error message. 而且我收到以下错误消息。 Could not link audioconvert0 to autoaudiosink0.
无法将audioconvert0链接到autoaudiosink0。 This pipelines works on PC, and I tried different caps but no success, also test autoaudiosrc with autoaudiosink on Android and it also works.
该管道可以在PC上运行,我尝试了不同的上限,但没有成功,还可以在Android上使用autoaudiosink测试autoaudiosrc,它也可以运行。 Where is the problem?
问题出在哪儿?
Solved, remove quotation symbols 解决,删除引号
gst-launch-0.10 tcpclientsrc host=192.168.0.101 port=36631 ! gst-launch-0.10 tcpclientsrc host = 192.168.0.101 port = 36631! oggdemux !
oggdemux! vorbisdec !
vorbisdec! audioconvert !
音频转换! audio/x-raw-int, rate=44100, channels=1, endianness=1234, width=16 !
音频/ x-raw-int,速率= 44100,通道= 1,字节序= 1234,宽度= 16! autoaudiosink
自动音频接收器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.