Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
peterjtracey
Visitor

No Audio on our streams

We are encoding many streams using 48000 or 44100 sampling with 64k or 128k bitrates to no avail.[/font][/size][/color]

Can anybody help? Thanks![/font][/size][/color]
0 Kudos
4 REPLIES 4
RokuJoel
Binge Watcher

Re: No Audio on our streams

What is the audio format of the stream? AAC? MP3? If AAC, what kind of AAC? (HE, LC etc). Is this HLS, live streamed or is it MP4 VOD or HLS VOD? If HLS, what does the playlist file look like?

If possible, send me a stream URL via private message.

- Joel
0 Kudos
peterjtracey
Visitor

Re: No Audio on our streams

Hi Joel,

We're using AAC, LC, HLS delivery, live streamed. I don't know what you mean by playlist file. The code I'm using to set up the stream is:

	port = CreateObject("roMessagePort")
    screen = CreateObject("roVideoScreen")

    streamUrl = ""
    for each e in showElem.GetChildElements()
    if e.GetName() = "source" then
    streamUrl = e.GetText()
    exit for
    else if e.GetName() = "title" then 
    title = e.GetText()
    endif
    next

    bitrates  = [0]    
    qualities = ["SD"]
    urls = [streamUrl]
streamformat = "hls"

    videoclip = CreateObject("roAssociativeArray")
    videoclip.StreamBitrates = bitrates
    videoclip.StreamUrls = urls
    videoclip.StreamQualities = qualities
    videoclip.StreamFormat = streamformat
    videoclip.Title = title
    videoclip.Live = true

    screen.SetContent(videoclip)
    screen.SetMessagePort(port)
    screen.Show()
0 Kudos
peterjtracey
Visitor

Re: No Audio on our streams

I did notice in VLC media player "Stream 0" is type: Audio and "Stream 1" is type: Video. Whereas with the ones that work it's the other way around. Wondering whether that could be the reason audio doesn't play (but it does detect that video isn't the first stream...)?
0 Kudos
peterjtracey
Visitor

Re: No Audio on our streams

Got it working. We had to change channels to Stereo and swap the video and audio streams and changed the bitrate from 44.1k to 48k. Not sure whether all of these were necessary, last one made it work finally but we had tried doing that without the other two changes in place and it didn't work.
0 Kudos