Icecast 流媒體無法播放 (Icecast streamming not playing)


問題描述

Icecast 流媒體無法播放 (Icecast streamming not playing)

I am creating app to send audio to icecast server. Here I connected to icecast server and sending the audio data to server. But Streaming seen on server, but it is not playing in browser Why?

Is there need to encode that data to any format?


參考解法

方法 1:

If you're having problems with a web‑based player you need to be a lot more specific about what you're trying to do and provide some code for us to look at.

You should also confirm the stream is playing correctly in a compatible desktop app first.

Go to http://example.com:8000/admin and verify the mount point you're sending to is listed (which indicates it has a connected source) ‑ if it is there will be an M3U (for streaming MP3) and XSPF (for Ogg) link on the right which you can use to test.

Playback of Icecast streams on Android requires installation of the Just Playlists app or an equivalent.

方法 2:

The problem was i am sending the audio PCM data to server.Now i encoded that PCM data to ogg format to send on server.Now it's working perfectly.

方法 3:

The problem is with the audio encoding. Set encoding data as follows

Capture device inputs

ffmpeg ‑list_devices true ‑f dshow ‑i dummy

Set input from device or other protocol. Example:

ffplay ‑f dshow ‑i audio="Microphone (FaceCam 1000X)"

Then stream

ffmpeg ‑stats ‑report ‑f dshow ‑i audio="Microphone (FaceCam 1000X)" ‑c:a flac ‑compression_level 10 ‑ar 192000 ‑legacy_icecast 1 ‑content_type application/ogg ‑ice_name "Optional Name" ‑f ogg icecast://source:password_for_streaming@127.0.0.1:8000/live.ogg

(by Avinash AherWilliam TurrellAvinash AherRonald Coarite)

參考文件

  1. Icecast streamming not playing (CC BY‑SA 3.0/4.0)

#audio-streaming #Android #icecast






相關問題

在 windows phone 7 應用程序中流式傳輸音頻 (Streaming audio in windows phone 7 app)

從 FFMPEG for android 的命令行版本訪問網絡攝像頭麥克風 (Accessing webcam mic from command line version of FFMPEG for android)

Siaran Langsung Node.js: Hindari buffering (Node.js Live Streaming: Avoid buffering)

Icecast 流媒體無法播放 (Icecast streamming not playing)

如何使用 NAudio 在 C# 中解碼 mp3 文件 (how to decode mp3 file in c# using NAudio)

在 Nodejs 中使用 Kurento 複合媒體元素進行音頻會議需要幫助 (Need help for audio conference using Kurento composite media element in Nodejs)

iPhone - 在顯示圖像時使用 UIWebView 流式傳輸音頻 (iPhone - streaming audio using UIWebView while displaying an image)

jQuery:跨瀏覽器問題——調試 Internet Explorer (jQuery: Cross-browser problem -- Debugging Internet Explorer)

在 xuggler 中轉發和倒帶音頻 (forwarding and rewinding audio in xuggler)

網站上的實時音頻流 (Live audio streaming on a website)

如何通過 NAT 流式傳輸 WebRTC 音頻? (How to stream WebRTC audio through a NAT?)

從 WebAPI 在瀏覽器中播放 WAV 文件 (Play WAV file in Browser from WebAPI)







留言討論