2012-10-23 28 views
0

我創建了一個Web服務器和託管的HLS流式傳輸AAC流,我能夠發揮使用hlsdemux管道

gst-launch-0.10 souphttpsrc location=http://xx.xx.xx.xx/prog_index.m3u8 ! hlsdemux ! decodebin2 ! alsasink 

另一臺機器上的文件,但是當我這樣做

souphttpsrc location=http://xx.xx.xx.xx/prog_index.m3u8 ! hlsdemux ! aacparse ! faad ! alsasink 

我得到這個錯誤在hlsdemux日誌和沒有音頻輸出作爲aacparse不會收到任何數據

0:00:00.066165787 8139 0xb07098f0 INFO    hlsdemux gsthlsdemux.c:734:gst_hls_demux_loop:<hlsdemux0> First fragments cached successfully 
0:00:00.066190861 8139 0xb07098f0 DEBUG    hlsdemux gsthlsdemux.c:680:switch_pads: Switching pads (oldpad:(nil)) 
0:00:00.066450610 8139 0xb07098f0 DEBUG    hlsdemux gsthlsdemux.c:757:gst_hls_demux_loop:<hlsdemux0> Sending new-segment. segment start:0:00:00.000000000 
0:00:00.066510536 8139 0xb07098f0 DEBUG    hlsdemux gsthlsdemux.c:796:gst_hls_demux_loop:<hlsdemux0> error, stopping task 
Pipeline is PREROLLED ... 
0:00:00.066541057 8139 0xb07098f0 DEBUG    hlsdemux gsthlsdemux.c:989:gst_hls_demux_stop_update:<hlsdemux0> Stopping updates thread 

我能夠玩in使用

gst-launch-0.10 filesrc location=fileSequence0.aac ! aacparse ! faad ! alsasink 

回答

0

嘗試添加其中個別瓶蓋段文件:... ! hlsdemux ! audio/mpeg ! aacparse ! ...

+0

沒有它並沒有解決問題 – user919082

0

嘗試增加mpegtsdemux hlsdemux和aacparse之間... 因爲hlsdemux獲取URI,直到它得到的.ts流N個U需要mpegtsdemux到解複用器它。

0

這是HLS音頻流的解決方案:

... m3u8 ! hlsdemux ! decodebin ! audioconvert ! autoaudiosink 

,或者如果您需要再次流它作爲一個UDP:

... m3u8 ! hlsdemux ! decodebin ! audioconvert ! faac ! audio/mpeg, stream-format=raw ! aacparse ! mpegtsmux ! udpsink host=230.0.0.1 port=5000