VLC2.0 and sout=". (%m)

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
pcd
Blank Cone
Blank Cone
Posts: 46
Joined: 03 Jun 2005 12:45

Re: VLC2.0 and sout=". (%m)

Postby pcd » 25 Mar 2012 20:00

It seems the ticket is closed ! I do not understand the reason. What is the solution ?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: VLC2.0 and sout=". (%m)

Postby VLC_help » 26 Mar 2012 19:58

Solution according to the trac is to &option= to paste the options (sout part). I haven't tested that.

hrotsvith
New Cone
New Cone
Posts: 2
Joined: 13 Mar 2012 21:27

Re: VLC2.0 and sout=". (%m)

Postby hrotsvith » 27 Mar 2012 10:48

no, that doesn't work unfortunately. I think courmisch didn't really understand what we were talking about.

pcd
Blank Cone
Blank Cone
Posts: 46
Joined: 03 Jun 2005 12:45

Re: VLC2.0 and sout=". (%m)

Postby pcd » 30 Mar 2012 01:53

Solution does not work - with me also.

Any other suggestion from experts - please ?

martin
Blank Cone
Blank Cone
Posts: 77
Joined: 12 Sep 2007 07:57

Re: VLC2.0 and sout=". (%m)

Postby martin » 04 Apr 2012 09:45

Solution does not work - with me also.

Any other suggestion from experts - please ?
for me does not work too ! Will be some solution ???

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: VLC2.0 and sout=". (%m)

Postby VLC_help » 04 Apr 2012 19:21

You can try old HTTP interface
e.g.

Code: Select all

vlc -I oldhttp
or

Code: Select all

vlc --extraintf oldhttp

pcd
Blank Cone
Blank Cone
Posts: 46
Joined: 03 Jun 2005 12:45

Re: VLC2.0 and sout=". (%m)

Postby pcd » 07 Apr 2012 23:42

After that command - what else needs to be done ?

I tried on the browser

http://127.0.0.1:8080

it did not work.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: VLC2.0 and sout=". (%m)

Postby VLC_help » 08 Apr 2012 23:25

My bad. It was removed before 2.0.x release, not after it.

pcd
Blank Cone
Blank Cone
Posts: 46
Joined: 03 Jun 2005 12:45

Re: VLC2.0 and sout=". (%m)

Postby pcd » 10 Apr 2012 02:43

So - it is not possible to do http remote control with vlc 2.x ?

It is very important for linux stb users who stream media via vlc to their box (and to tv).

Will you please do another ticket ?

Thanks in advance.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: VLC2.0 and sout=". (%m)

Postby VLC_help » 10 Apr 2012 18:51

I can open a feature request ticket if you have some kind of URL spec you want the http interface to follow.

pcd
Blank Cone
Blank Cone
Posts: 46
Joined: 03 Jun 2005 12:45

Re: VLC2.0 and sout=". (%m)

Postby pcd » 12 Apr 2012 22:32

Thanks.

Success finally ! Streaming on the http inteface worked with the following syntax :-

h**p://x.x.x.x:8080/requests/status.xml?command=in_play&input=C:\dream\Video1.mpg&option=sout%3D%23transcode%7Bvcodec%3Dmp2v%2Cvb%3D800%2Cacodec%3Dmp2a%2Cab%3D128%2Cchannels%3D2%2Csamplerate%3D0%7D%3Ahttp%7Bdst%3D%3A9090%2Fdboxstream.ts%7D

Regards, pcd.

frax
New Cone
New Cone
Posts: 5
Joined: 04 Apr 2012 14:14

Re: VLC2.0 and sout=". (%m)

Postby frax » 16 Apr 2012 16:08

Did you get this working with passing in options to vlc 2.0? I had no success .
Can you somehow see in the web gui as before wich options you passed in ?

I try to pass in options for dumping a stream

status.xml?command=in_play&input=udp://@:8080&option=:demux=dump :demuxdump-file=dump.ts

/Fredrik

martin
Blank Cone
Blank Cone
Posts: 77
Joined: 12 Sep 2007 07:57

Re: VLC2.0 and sout=". (%m)

Postby martin » 17 Apr 2012 23:44

Did you get this working with passing in options to vlc 2.0? I had no success .
Can you somehow see in the web gui as before wich options you passed in ?

I try to pass in options for dumping a stream

status.xml?command=in_play&input=udp://@:8080&option=:demux=dump :demuxdump-file=dump.ts

/Fredrik
try ...&option=demux=dump&option=demuxdump-file=dump.ts

neilv
New Cone
New Cone
Posts: 4
Joined: 30 Apr 2012 06:02

Re: VLC2.0 and sout=". (%m)

Postby neilv » 01 May 2012 06:10

I'm struggling with a similar issue, although it's a different option parameter, since upgrading to 2.0.2.

From 1.1.12 and had no problem with the oldhttp interface:

http://*.*.*.*:8080/requests/status.xml?command=in_enqueue&input=/media/files.mkv :audio-track=1

to enqueue a video file (which has multiple audio tracks) with a specified audio track. audio-track=0 is for the 1st track (default), 1 is for the 2nd, and so forth.

With VLC version 2.0.2, through the lua/http interface, this stops working even if I tried:

http://*.*.*.*:8080/requests/status.xml?command=in_enqueue&input=/media/files.mkv&option=audio-track=1

http://*.*.*.*:8080/requests/status.xml?command=in_enqueue&input=/media/files.mkv&option=:audio-track=1

Enqueueing the song works, but the audio track selection seems to be ignored altogether.

Any suggestion is very much appreciated. Thanks in advanced.

martin
Blank Cone
Blank Cone
Posts: 77
Joined: 12 Sep 2007 07:57

Re: VLC2.0 and sout=". (%m)

Postby martin » 01 May 2012 23:21

for me it works under 2.0.1 win VLC:

each &options= must be send to vlc as it = only text, without quote_plus(), all others (audio-track=1) with quote_plus().Basic sout string with quote_plus too.

eg in python:
tmp = quote_plus(sout_string)
tmp += "&options=" + quote_plus("audio-track=1")
tmp += "&options=" + quote_plus("sub-track=0")
...

note -where you download 2.0.2 ? In 2.0.1 (Win) does not work mpga or mp2a for old OE1 boxes. No sound. I think, there is some bad in audio types in vlc.

neilv
New Cone
New Cone
Posts: 4
Joined: 30 Apr 2012 06:02

Re: VLC2.0 and sout=". (%m)

Postby neilv » 02 May 2012 06:55

for me it works under 2.0.1 win VLC:

each &options= must be send to vlc as it = only text, without quote_plus(), all others (audio-track=1) with quote_plus().Basic sout string with quote_plus too.

eg in python:
tmp = quote_plus(sout_string)
tmp += "&options=" + quote_plus("audio-track=1")
tmp += "&options=" + quote_plus("sub-track=0")
...
Thanks a bunch Martin! The issue appeared to be how the '=' after 'audio-track' has to be encoded. In PHP, given your hint, I basically did this:
...
url = url.'&option=audio-track'.rawurlencode('=').'1';
...
note -where you download 2.0.2 ? In 2.0.1 (Win) does not work mpga or mp2a for old OE1 boxes. No sound. I think, there is some bad in audio types in vlc.
My 2.0.2 is actually a Linux distribution following the Ubuntu package manager update procedure. With this issue, I realized I could have posted something more general instead of being under a Windows specific forum, but after searching through the forums, I felt that this discussion is most relevant.

martin
Blank Cone
Blank Cone
Posts: 77
Joined: 12 Sep 2007 07:57

Re: VLC2.0 and sout=". (%m)

Postby martin » 02 May 2012 08:11

can you tell me, please, if linux's vlc 2.x returns "dir" or "directory" ? F.eg. from firefox:

Code: Select all

http://x.x.x.x:8080/requests/browse.xml?dir=

neilv
New Cone
New Cone
Posts: 4
Joined: 30 Apr 2012 06:02

Re: VLC2.0 and sout=". (%m)

Postby neilv » 03 May 2012 05:16

can you tell me, please, if linux's vlc 2.x returns "dir" or "directory" ? F.eg. from firefox:

Code: Select all

http://x.x.x.x:8080/requests/browse.xml?dir=
Using "dir" returns "Error loading... httprequests.lua:388: cannot open directory..."
Using "directory" returns an xml file with just the <root> </root> tag.

martin
Blank Cone
Blank Cone
Posts: 77
Joined: 12 Sep 2007 07:57

Re: VLC2.0 and sout=". (%m)

Postby martin » 03 May 2012 09:02

ok, it was my mistake. I need know, if is returned "dir" or "directory" in 2.x under linux.
May be it as:

Code: Select all

http://x.x.x.x:8080/requests/browse.xml?dir=/
?

neilv
New Cone
New Cone
Posts: 4
Joined: 30 Apr 2012 06:02

Re: VLC2.0 and sout=". (%m)

Postby neilv » 07 May 2012 04:56

ok, it was my mistake. I need know, if is returned "dir" or "directory" in 2.x under linux.
May be it as:

Code: Select all

http://x.x.x.x:8080/requests/browse.xml?dir=/
?
Yes, .../browse.xml?dir=/ returns the elements from the root directory in Linux.

martin
Blank Cone
Blank Cone
Posts: 77
Joined: 12 Sep 2007 07:57

Re: VLC2.0 and sout=". (%m)

Postby martin » 07 May 2012 09:52

Thanks, but I need know, if it returns "dir" or "directory" :-)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 54 guests