Page 1 of 1

iterate pid video input?!

Posted: 23 Nov 2015 09:49
by cartelet
Hi to all, as to title.

I read in the documentation which is possible to change the audio with pid audio (vlc.audio.track = pid;), my question is:

It's possible to have with a function all PID AUDIO (int) of a certain channel?

thanks to all

Re: iterate pid video input?!

Posted: 26 Nov 2015 08:37
by da2424
These are not *real* audio pids:
  • 0 = Audio disabled
  • 1 = First available audio channel
  • 2 = Second available audio channel
  • ...

But you can get the description of a channel on this way:

Code: Select all

var desc = vlc.audio.description(index);

You can count all available channels on this way:

Code: Select all

var cnt = vlc.audio.count;
I hope this will help you.

Re: iterate pid video input?!

Posted: 26 Nov 2015 13:51
by cartelet
I try with vlc.audio.track = 0 or 1 or 2 but nothing this propeties work with the Pid audio(example 695 is language english on certain channels), but I can't find a method to extract: all PID audio of certain channels,

P.S. you have write:
These are not *real* audio pids:

0 = Audio disabled
1 = First available audio channel
2 = Second available audio channel

I thinks you confuse with the audio channel(example audio from left or right).


could you help me?

Re: iterate pid video input?!

Posted: 26 Nov 2015 14:52
by cartelet
I Have make some test, and I have see a strange behavior:

_______________________________
On vlc 2.04 on Arm

the properties vlc.audio.track

work with ID (as index of array)
_______________________________

On vlc 2.0.5 on X86
the properties vlc.audio.track

work with PID AUDIO
_______________________________

on vlc 2.1.6
the properties vlc.audio.track

work with PID AUDIO


Are there the modify from 2.0.4 and 2.0.5 of this properties???

Re: iterate pid video input?!

Posted: 26 Nov 2015 16:39
by da2424
I Have make some test, and I have see a strange behavior:

_______________________________
On vlc 2.04 on Arm

the properties vlc.audio.track

work with ID (as index of array)
_______________________________

On vlc 2.0.5 on X86
the properties vlc.audio.track

work with PID AUDIO
_______________________________

on vlc 2.1.6
the properties vlc.audio.track

work with PID AUDIO


Are there the modify from 2.0.4 and 2.0.5 of this properties???
Yes.
In earlier versions (like v2.0.x and v2.1.x), vlc.audio.track returns the real audio PID. But since v2.2.0, it will return an array index.

Re: iterate pid video input?!

Posted: 26 Nov 2015 17:00
by cartelet
why in 2.0.4 work with ID?

another: exist v 2.2.0 for ubuntu, I see the last stable is 2.1.6 or not?

Re: iterate pid video input?!

Posted: 26 Nov 2015 17:02
by cartelet
p.s. anybody update the documentation about vlc plugin?

Re: iterate pid video input?!

Posted: 26 Nov 2015 17:42
by da2424
why in 2.0.4 work with ID?

another: exist v 2.2.0 for ubuntu, I see the last stable is 2.1.6 or not?
Because the PID support was a regression, I think.
(See https://trac.videolan.org/vlc/ticket/7928 for more info)

p.s. anybody update the documentation about vlc plugin?
The documentation should be up to date. I have updated it a few months ago ;)