Question

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?

Was it helpful?

Solution 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.

OTHER TIPS

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.

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top