I'm trying to pick up an audio-only transcoded stream from my Wowza server in JWPlayer.
At the moment, I know that the normal ( non-transcoded ) stream is making it through the server and back to my JWPlayer client - what I can't figure out is why I can't reach the audio-only stream.
JWPlayer code as follows:
var PlayerInstance = jwplayer('jwcontainer').setup({
image: '/resource/javascript/jwplayer/background.png',
height: '420',
width: '420',
skin: 'stormtrooper',
autostart: '1',
androidhls: true,
provider: 'rtmp',
playlist:
[{
sources:
[
{ file: 'http://SERVER:80/APPLICATION/flv:STREAM' },
{ file: 'http://SERVER:1935/APPLICATION/STREAM/playlist.m3u8' },
{ file: 'http://SERVER:1935/APPLICATION/STREAM/manifest.mpd' },
{ file: 'http://SERVER:1935/APPLICATION/STREAM/manifest.f4m' }
]
}],
rtmp:
{
bufferlength: 1,
securetoken: ''
}
});
I've tried providing JWPlayer 'STREAM_aac' ( as implied by the Wowza Transcoder configuration? ) as my stream name, and come back with an 'ID not found on server' error.
I've also tried giving it an AAC 'stream type' ( replacing the 'flv:' with 'aac:' ), as well as MP3 ( just for kicks ) to no avail.
Any suggestions? Am I missing something?
Does anyone have a Working example of JWPlayer receiving a Wowza transcoded stream?
I think you cannot extract a both audio and audio/video streams from one Wowza application. In order to do so, you can ingest two steams to your Wowza server one with audio only and one with audio/video.
I found this post useful from this Wowza community forum thread :
There are other ways to get both an A/V stream and an audio-only stream.
- Use ffmpeg. Input 1 stream, send 2 streams to Wowza, one of which is audio-only.
- Use Wowza 3.0.5+. You can turn off audio or video tracks in your Application.xml.
I have tested it and it works, like so:
- Publish FMLE stream named "myStream" to Wowza "live" application.
- Create a new live application called "livenovideo".
- Turn off video the Application.xml for the "livenovideo" application.
- Create a live.stream file containing "rtsp://localhost:1935/live/myStream
- Use StreamManager to start "live.stream" on application "livenovideo."
Playback audio+video: rtmp://[Wowza-IP]/live/myStream
Playback audio only: rtmp://[Wowza-IP]/livenovideo/live.stream
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With