Command Line Streaming Problem

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
jhb50
Blank Cone
Blank Cone
Posts: 45
Joined: 24 May 2010 21:56

Command Line Streaming Problem

Postby jhb50 » 24 May 2010 22:02

NOTE !! This problem is resolved. The correct command syntax is:
vlc.exe" -vvv "input file name" --sout #std{access=udp,mux=ts,dst=192.168.1.10:1234}
ie: no ' marks!
***************************************************************************************************
I am running 1.0.5 on W7-64 on an I-7 system

I simply want to stream from one system to another over the LAN.

If I use the GUI I can start the file streaming using the panels to create an MRL of :sout=#std{access=udp,mux=ts,dst=192.168.1.12:1234}
"Streaming-VLC media Player" shows in the VLC Title line and "Streaming" and the time counter show in the bottom line, and I can open a second VLC with UDP:@192.168.1.10:1234 and the streamed file plays correctly.

However if I use the command line vlc.exe --vvv D:test.avi --sout '#standard{access=udp,mux=ts,dst=192.168.1.12:1234}'
VLC opens but does nothing. I've tried variations of the command line but nothing works. Can anyone help me?

While this is my main problem I have also encountered the following:

My second question pertains to subtitles. In the first example my subtitles do not display on the "streamed" file, although they do if VLC plays the file locally. Can anyone explain how to stream the subtitles with the video? Being hearing impaired I need both.

Finally How do I start the Web Interface from the command line? If I use -I http the VLC process starts but no GUI shows and there is no way to terminate the process.
Last edited by jhb50 on 25 May 2010 21:42, edited 1 time in total.

jhb50
Blank Cone
Blank Cone
Posts: 45
Joined: 24 May 2010 21:56

Re: Command Line Streaming Problem

Postby jhb50 » 24 May 2010 23:09

I have the same problem with HTTP streaming. The following shows the command to stream but VLC does nothing even though the WEB interface sees the playlist.

vlc.exe" -vvv "D:\Azureus Completed Downloads\The Tudors\The.Tudors.S04E06.HDTV.XviD-FQM.[VTV].avi" --sout '#standard {access=http,mux=ts,dst=192.168.1.10:8081}' --extraintf http

joolzg
Blank Cone
Blank Cone
Posts: 22
Joined: 31 Oct 2006 18:12

Re: Command Line Streaming Problem

Postby joolzg » 25 May 2010 13:14

Same here and if you look at the messages in debug i see the following

vlc udp://224.10.0.3:1234 --sout '#transcode{vcodec=mp2v,vb=1500,scale=0.5,acodec=mpga,ab=128,channels=2,samplerate=44100}",dst="std{access=udp,mux=ts,dst=224.10.0.4:1234}'

fails with the following messages

main debug: stream=`standard'
main debug: looking for sout stream module: 1 candidate
main warning: missing value for option mux
main debug: set config option: sout-standard-access to '#transcode{vcodec=mp2v,vb=1500,scale=0.5,acodec=mpga,ab=128,channels=2,samplerate=44100}
main debug: set config option: sout-standard-dst to std{access=udp,mux=ts,dst=224.10.0.4:1234}'
stream_out_standard debug: creating `'#transcode{vcodec=mp2v,vb=1500,scale=0.5,acodec=mpga,ab=128,channels=2,samplerate=44100}/(null)://std{access=udp,mux=ts,dst=224.10.0.4:1234}''
stream_out_standard debug: extension is 4:1234}'
stream_out_standard debug: extension -> mux=(null)
stream_out_standard error: no mux specified or found by extension
main warning: no sout stream module matching "standard" could be loaded
main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms)
main debug: destroying chain... (name=standard)
main debug: destroying chain done
main error: stream chain failed for `standard{mux="",access="'#transcode{vcodec=mp2v,vb=1500,scale=0.5,acodec=mpga,ab=128,channels=2,samplerate=44100}",dst="std{access=udp,mux=ts,dst=224.10.0.4:1234}'"}'
main error: cannot start stream output instance, aborting
main debug: thread ended
main debug: dead input
main debug: thread times: real 0m0.006000s, kernel 0m0.000000s, user 0m0.015600s
main debug: TIMER input launching for 'udp://224.10.0.3:1234' : 13.000 ms - Total 13.000 ms / 1 intvls (Avg 13.000 ms)
main debug: changing item without a request (current 0/1)
main debug: nothing to play

Anybody able to help as it works ok if you do it from the gui

joolz

jhb50
Blank Cone
Blank Cone
Posts: 45
Joined: 24 May 2010 21:56

Re: Command Line Streaming Problem

Postby jhb50 » 25 May 2010 14:25

Great to see that I am not alone. Please tell me how I can get debug output. I've tried all settings but messages stay blank. Thanks.

joolzg
Blank Cone
Blank Cone
Posts: 22
Joined: 31 Oct 2006 18:12

Re: Command Line Streaming Problem

Postby joolzg » 25 May 2010 16:25

first get the messages window showing, and then set the level to 2.

or add -vvv to the commandline and then show the messages window, press stop, then play and you should see something

joolz

jhb50
Blank Cone
Blank Cone
Posts: 45
Joined: 24 May 2010 21:56

Re: Command Line Streaming Problem

Postby jhb50 » 25 May 2010 17:57

Thanks joolz! Here is my output..note the funny empty chain!
Are you on W7-64bit and 1.0.0.5? Sure looks like a bug, but is it unique to W7-64?


main debug: stream=`standard'
main debug: looking for sout stream module: 1 candidate
main warning: missing value for option mux
main warning: missing value for option access
main debug: set config option: sout-standard-dst to '#standard{access=udp,mux=ts,dst=192.168.1.10:1234}'
stream_out_standard debug: creating `(null)/(null)://'#standard{access=udp,mux=ts,dst=192.168.1.10:1234}''
stream_out_standard debug: extension is 10:1234}'
stream_out_standard debug: extension -> mux=(null)
stream_out_standard error: no access _and_ no muxer (fatal error)
main warning: no sout stream module matching "standard" could be loaded
main debug: TIMER module_need() : 7.000 ms - Total 7.000 ms / 1 intvls (Avg 7.000 ms)
main debug: destroying chain... (name=standard)
main debug: destroying chain done
main error: stream chain failed for `standard{mux="",access="",dst="'#standard{access=udp,mux=ts,dst=192.168.1.10:1234}'"}'
main error: cannot start stream output instance, aborting
main debug: finished input
main debug: thread ended
main debug: dead input
main debug: thread times: real 0m0.008000s, kernel 0m0.000000s, user 0m0.000000s
main debug: TIMER input launching for 'Hulu - Saturday Night Live Betty White.mkv' : 17.000 ms - Total 17.000 ms / 1 intvls (Avg 17.000 ms)
main debug: changing item without a request (current 0/1)
main debug: nothing to play

jhb50
Blank Cone
Blank Cone
Posts: 45
Joined: 24 May 2010 21:56

Re: Command Line Streaming Problem

Postby jhb50 » 25 May 2010 18:06

And here is the output for a successful stream using the same parameters thru the GUI:

main debug: thread started
main debug: stream=`std'
main debug: looking for sout stream module: 1 candidate
main debug: set config option: sout-standard-access to udp
main debug: set config option: sout-standard-mux to ts
main debug: set config option: sout-standard-dst to 192.168.1.10:1234
stream_out_standard debug: creating `udp/ts://192.168.1.10:1234'
stream_out_standard debug: extension is 10:1234
stream_out_standard debug: extension -> mux=(null)
stream_out_standard debug: using `udp/ts://192.168.1.10:1234'
main debug: looking for sout access module: 1 candidate
main debug: net: connecting to [192.168.1.10]:1234
access_output_udp debug: source: 192.168.1.10 port 57240
access_output_udp debug: destination: 192.168.1.10 port 1234
main debug: using sout access module "access_output_udp"
main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms)
stream_out_standard debug: access opened
main debug: looking for sout mux module: 1 candidate
qt4 debug: IM: Setting an input
mux_ts debug: shaping=200000 pcr=70000 dts_delay=400000
main debug: using sout mux module "mux_ts"
main debug: TIMER module_need() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms)
main debug: muxer support adding stream at any time
main debug: muxer prefers to wait for all ES before starting to mux
stream_out_standard debug: mux opened
main debug: using sout stream module "stream_out_standard"
main debug: TIMER module_need() : 19.000 ms - Total 19.000 ms / 1 intvls (Avg 19.000 ms)
main debug: using timeshift granularity of 50 MBytes
main debug: using timeshift path 'C:\Users\John\AppData\Local\Temp'
main debug: `D:\Azureus Completed Downloads\Saturday Night Live - Betty White\Hulu - Saturday Night Live Betty White.mkv' gives access `' demux `' path `D:\Azureus Completed Downloads\Saturday Night Live - Betty White\Hulu - Saturday Night Live Betty White.mkv'
main debug: creating demux: access='' demux='' path='D:\Azureus Completed Downloads\Saturday Night Live - Betty White\Hulu - Saturday Night Live Betty White.mkv'
main debug: looking for access_demux module: 3 candidates
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: creating access '' path='D:\Azureus Completed Downloads\Saturday Night Live - Betty White\Hulu - Saturday Night Live Betty White.mkv'
main debug: looking for access module: 5 candidates
vcd debug: trying .cue file: D:\Azureus Completed Downloads\Saturday Night Live - Betty White\Hulu - Saturday Night Live Betty White.cue
vcd debug: could not find .cue file
access_file debug: opening file `D:\Azureus Completed Downloads\Saturday Night Live - Betty White\Hulu - Saturday Night Live Betty White.mkv'
qt4 debug: Updating the geometry
main debug: using access module "access_file"
qt4 debug: Updating the geometry
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 kbytes/s
main debug: looking for stream_filter module: 2 candidates
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating demux: access='' demux='' path='D:\Azureus Completed Downloads\Saturday Night Live - Betty White\Hulu - Saturday Night Live Betty White.mkv'

jhb50
Blank Cone
Blank Cone
Posts: 45
Joined: 24 May 2010 21:56

Re: Command Line Streaming Problem

Postby jhb50 » 25 May 2010 18:55

I have gone back and tried this on 0.9.2 and streaming still fails from the command line with the following debug messages.
It is really hard for me to believe that VLC has not been able to stream from the command line for over a year, which makes me think it must be W7-64 related.
I have posted a question in the windows related forum, under viewtopic.php?f=14&t=76752, referencing this thread.

main debug: starting new item
main debug: thread started
main debug: processing request item null node Playlist skip 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: creating new input thread
main debug: Creating an input for 'Hulu - Saturday Night Live Betty White.mkv'
main debug: waiting for thread initialization
main debug: thread started
main debug: thread 4932 (input) created at priority 1 (input/input.c:368)
main debug: using sout chain=`standard{mux="",access="",dst="'#std{access=udp,mux=ts,dst=192.168.1.10:1234}'"}'
main debug: stream=`standard'
main debug: looking for sout stream module: 1 candidate
main warning: missing value for option mux
main warning: missing value for option access
main debug: set config option: sout-standard-dst to '#std{access=udp,mux=ts,dst=192.168.1.10:1234}'
stream_out_standard debug: creating `(null)/(null)://'#std{access=udp,mux=ts,dst=192.168.1.10:1234}''
stream_out_standard debug: extension is 10:1234}'
stream_out_standard debug: extension -> mux=(null)
stream_out_standard error: no access _and_ no muxer (fatal error)
main warning: no sout stream module matching "standard" could be loaded
main debug: TIMER module_Need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms)
main debug: destroying chain... (name=standard)
main debug: destroying chain done
main error: stream chain failed for `standard{mux="",access="",dst="'#std{access=udp,mux=ts,dst=192.168.1.10:1234}'"}'
main error: cannot start stream output instance, aborting

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Command Line Streaming Problem

Postby Rémi Denis-Courmont » 25 May 2010 20:45

Your chain is not quoted properly. See:

Code: Select all

stream_out_standard debug: creating `(null)/(null)://'#std{access=udp,mux=ts,dst=192.168.1.10:1234}''
There is an extra single quote before the hash mark.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jhb50
Blank Cone
Blank Cone
Posts: 45
Joined: 24 May 2010 21:56

Re: Command Line Streaming Problem

Postby jhb50 » 25 May 2010 21:38

Merci Remi!

That gave me the clue to remove the ' s from my command line.
The correct Command which works is
vlc.exe" -vvv "input file name" --sout #std{access=udp,mux=ts,dst=192.168.1.10:1234}

What is different is that "Streaming" does not appear in the GUI window as it does if the GUI wizard is used. The input filename appears instead.

Streaming now works!

joolzg
Blank Cone
Blank Cone
Posts: 22
Joined: 31 Oct 2006 18:12

Re: Command Line Streaming Problem

Postby joolzg » 28 May 2010 18:13

OK i have removed the ' from my command line and my error is now

main debug: processing request item udp://224.10.0.3:1234 node Playlist skip 0
main debug: resyncing on udp://224.10.0.3:1234
main debug: udp://224.10.0.3:1234 is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'udp://224.10.0.3:1234'
main debug: thread (input) created at priority 1 (../.././src/input/input.c:230)
main debug: thread started
main debug: stream=`transcode'
main debug: looking for sout stream module: 1 candidate
main error: invalid chain
stream_out_transcode error: cannot create chain
main warning: no sout stream module matching "transcode" could be loaded
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: destroying chain... (name=transcode)
main debug: destroying chain done
main error: stream chain failed for `transcode{vcodec=mp2v,vb=1500,scale=0.5,acodec=mpga,ab=128,channels=2,samplerate=44100},dst=std{access=udp,mux=ts,dst=224.10.0.4:1234}'
main debug: finished input
main error: cannot start stream output instance, aborting
main debug: dead input
main debug: thread ended
main debug: thread times: real 0m0.002000s, kernel 0m0.000000s, user 0m0.000000s
main debug: TIMER input launching for 'udp://224.10.0.3:1234' : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms)
main debug: changing item without a request (current 0/1)
main debug: nothing to play

Works from inside vlc

joolz


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 35 guests