Page 1 of 1

Random audio PID order

Posted: 08 Oct 2010 22:32
by Antarius
Every time vlc is started for streaming, order of audio tracks is random. I need to make it static.

For example pids video 328, audio 428,429

Only way I found is "#duplicate{dst=http{mux=ts,dst=ADDRESS:PORT},select="es=338,es=428,es=429"}"

But it doesn't work, only video is streamed, no audio. Looks like second and third es are ignored. Is there any way to do this right?

Re: Random audio PID order

Posted: 11 Oct 2010 10:00
by Antarius
I found several same questions about this, but with no answer. Is it really impossible to do such a simple thing?

Re: Random audio PID order

Posted: 15 Jul 2011 17:00
by tristandwane
Hi Antarius,

I have the exact same requirement.

viewtopic.php?f=4&t=92031&p=305084&hili ... 3D#p305084

Do you get a resolution to your problem?

Tristan

Re: Random audio PID order

Posted: 30 Aug 2013 20:34
by mundu
I've this problem twice. I don't know if anyone has ever dealt with this afterwords, or if eventually found a fix for it.

I had to deal with /src/input/decoder.c and synchronize the audio threads (refer to function DecoderThread()).

A quick and dirty hack using static variables will do the trick. All audios enter DecoderThread sequencially, but they are decodec asynchronously due to the multithreading. Just make sure they are decoded synchronously and that's it.