Forum Discussion

peterjtracey's avatar
9 years ago

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]

4 Replies

  • RokuJoel's avatar
    RokuJoel
    Binge Watcher
    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
  • 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()
  • 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...)?
  • 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.