Random audio PID order

About encoding, codec settings, muxers and filter usage
Antarius
New Cone
New Cone
Posts: 5
Joined: 14 Sep 2010 13:53

Random audio PID order

Postby Antarius » 08 Oct 2010 22:32

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?

Antarius
New Cone
New Cone
Posts: 5
Joined: 14 Sep 2010 13:53

Re: Random audio PID order

Postby Antarius » 11 Oct 2010 10:00

I found several same questions about this, but with no answer. Is it really impossible to do such a simple thing?

tristandwane
New Cone
New Cone
Posts: 4
Joined: 15 Jul 2011 15:23

Re: Random audio PID order

Postby tristandwane » 15 Jul 2011 17:00

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

mundu
Blank Cone
Blank Cone
Posts: 53
Joined: 25 May 2011 19:56
VLC version: 2.1.5
Operating System: Linux

Re: Random audio PID order

Postby mundu » 30 Aug 2013 20:34

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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests