iterate pid video input?!

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
cartelet
Blank Cone
Blank Cone
Posts: 22
Joined: 04 Nov 2015 09:32

iterate pid video input?!

Postby cartelet » 23 Nov 2015 09:49

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

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: iterate pid video input?!

Postby da2424 » 26 Nov 2015 08:37

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.

cartelet
Blank Cone
Blank Cone
Posts: 22
Joined: 04 Nov 2015 09:32

Re: iterate pid video input?!

Postby cartelet » 26 Nov 2015 13:51

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?

cartelet
Blank Cone
Blank Cone
Posts: 22
Joined: 04 Nov 2015 09:32

Re: iterate pid video input?!

Postby cartelet » 26 Nov 2015 14:52

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???

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: iterate pid video input?!

Postby da2424 » 26 Nov 2015 16:39

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.

cartelet
Blank Cone
Blank Cone
Posts: 22
Joined: 04 Nov 2015 09:32

Re: iterate pid video input?!

Postby cartelet » 26 Nov 2015 17:00

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?

cartelet
Blank Cone
Blank Cone
Posts: 22
Joined: 04 Nov 2015 09:32

Re: iterate pid video input?!

Postby cartelet » 26 Nov 2015 17:02

p.s. anybody update the documentation about vlc plugin?

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: iterate pid video input?!

Postby da2424 » 26 Nov 2015 17:42

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 ;)


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests