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: 
greubel
Visitor

AudioPIDPref

Does anyone know the correct usage of the tag - AudioPIDPref ?
What should the value be ? How do you set the video's audio track ?
If I just put in a value of 999, would it always select the last track ?
0 Kudos
4 REPLIES 4
RokuKevin
Visitor

Re: AudioPIDPref

By default, we choose the last audio stream.

If you know the PIDs of the different audio streams, you can select a particular audio streamin with the AudioPIDPref content meta data parameter.

You would have to know what the PIDs are beforehand (you could specify them when encoding your content).

--Kevin
0 Kudos
greubel
Visitor

Re: AudioPIDPref

My channel just serves "whatever" to the Roku. I don't know what the user is trying to play.
Is there an easy way to detect what audio tracks exist and what they are ?
I found this info.
Audio PID (1st pair) - 0x01E2 (482)
Audio PID (2nd pair) optional - 0x01E3 (483)
Audio PID (3rd pair) optional - 0x01E4 (484)
The problem is getting 5.1 to be selected. I can detect if the Roku is set for 5.1 but how do I select the correct track ?
0 Kudos
RokuKevin
Visitor

Re: AudioPIDPref

We do not provide the ability to query the stream for available PIDs. You would have to know the PIDs before setting the values. Other content providers have provided the available PIDs as part of the xml feeds.

--Kevin
0 Kudos
RokuMarkn
Visitor

Re: AudioPIDPref

ffmpeg will list the PIDs in a TS file.

--Mark
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.