Page 1 of 1

setting audio-channel by mrl

Posted: 20 Jun 2004 09:40
by emil
Hello

Thanks for this wonderful application!
There is a just one thing that is missing to complete my streaming solution.
So far I'm not able to set the audio-channel dynamically.

The global option works fine:
> vlc dvd:///home/dvd4/Antz/VIDEO_TS@1:1 --audio-channel=4

But the playlist option shows no effect at all:
> vlc dvd:///home/dvd4/Antz/VIDEO_TS@1:1 :audio-channel=4

Because I stream my DVD collection via VLC with a .m3u playlist I need to set the audio-channel (language) on playlist item base.

I tried this with VLC 0.7.1/Redhat Fedora1 and VLC 0.7.2/OSX 10.3.4.

Any hints?

[/code]

setting audio-channel by mrl with 0.8.0-test2 Janus

Posted: 05 Oct 2004 09:56
by emil
Hello

To sad there is no reply at all :cry:

However I tried this again with the OSX version 0.8.0-test2 Janus.

The situation is even more strange.

./vlc -vvv dvdread:///home/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3

Results in having to items in the playlist. One for the standard part of the mrl, one for the option!
Playing the first item shows that the correct audio-channel has been choosen.

Doing this by GUI dosn't work at all:

macosx debug: input has changed, refreshing interface
dvdread error: DVDRead cannot open source: /private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3
main warning: no access_demux module matching "dvdread" could be loaded
main debug: access2_New: access='dvdread' path='/private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3'
main debug: looking for access2 module
main debug: probing 4 candidates
vcd debug: trying .cue file: /private/var/automount/dvd4/antz/VIDEO_TS.cue
vcd warning: could not open /private/var/automount/dvd4/antz/VIDEO_TS
access_file warning: cannot stat() file `/private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3' (No such file or directory)
cdda warning: could not open /private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3
main warning: no access2 module matching "dvdread" could be loaded
main error: no suitable access module for `dvdread:///private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3'
main debug: thread 43099136 joined (src/input/input.c:290)macosx debug: input has changed, refreshing interface
dvdread error: DVDRead cannot open source: /private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3
main warning: no access_demux module matching "dvdread" could be loaded
main debug: access2_New: access='dvdread' path='/private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3'
main debug: looking for access2 module
main debug: probing 4 candidates
vcd debug: trying .cue file: /private/var/automount/dvd4/antz/VIDEO_TS.cue
vcd warning: could not open /private/var/automount/dvd4/antz/VIDEO_TS
access_file warning: cannot stat() file `/private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3' (No such file or directory)
cdda warning: could not open /private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3
main warning: no access2 module matching "dvdread" could be loaded
main error: no suitable access module for `dvdread:///private/var/automount/dvd4/antz/VIDEO_TS@2:2-99:99 :audio-channel=3'
main debug: thread 43099136 joined (src/input/input.c:290)


By removing the option this mrl plays again.
Opening this mrl via a playlist shows at least the same behavior.

Is this a bug or has the syntax for [:option] changed?

Thanks
Emil

Posted: 05 Oct 2004 15:31
by The DJ
This is a problem with how OSX works.
The only way to have OSX open files trough drag and drop is to have it open files. And unfortunatly this is implemented in a way that reads the commandline. Therefore both VLC and OSX read the commandline.

Resulting in duplicates. Not really anything that can be done about it, without breaking other support.

BTW. i'll see about audio-channel.
You have to realise that a lot of the -- options aren't capable of : yet. Even more, some of these options cannot be set at all as playlist item specific. I'll see if i can convert this particular one for you.

Posted: 05 Oct 2004 19:13
by Gibalou
It should be working if you use an m3u file.
Something like:

#EXTM3U
#EXTVLCOPT:audio-channel=4
dvdread:///home/dvd4/antz/VIDEO_TS@2:2-99:99
#EXTVLCOPT:audio-channel=2
dvdread:///home/dvd4/antz/VIDEO_TS@2:2-99:99

Posted: 05 Oct 2004 22:10
by emil
DJ, Gibalou

Wow, thanks for your fast replies :D

#EXTVLCOPT works fine with the OSX version 0.8.0-test2 Janus.
:audio-channel and as well spu-channel can be set, great work guys!

I tried this with V0.7.2 Fedora and OSX too. But with these versions #EXTVLCOPT shows no effect.

I will verify this with V0.8.0-test2 on Fedora as soon as I find the time to build a binary. Rain has been annouced for next weekend anyway... :wink:

Again thanks for your help and for this great software
Emil

Posted: 14 Oct 2004 20:21
by emil
Hello

It was raining last weekend therefore I got my vlc-vnc fedora binary.
Yes, EXTVLCOPT works fine on fedora too!

But it took me some time to figure out, that I had to disable the following option:
# Enable streaming of all ES (boolean)
sout-all=1

Is there a reason behind this?
For me it makes sense to have all audio and spu channels streamed to a client and have also pre-selected the preferred ones via EXTVLCOPT.

However the existing functionality was good enough to complete my DVD-Streamer :D :D :D

Thanks a lot
Emil