Video Streaming Works from GUI but not CLI

About encoding, codec settings, muxers and filter usage
BMC
New Cone
New Cone
Posts: 1
Joined: 25 Aug 2010 18:39

Video Streaming Works from GUI but not CLI

Postby BMC » 25 Aug 2010 19:13

Hi,

I can use the VLC GUI to create the exact streaming http server that I require (I read from an IPv6 webcam, transcode the stream and then make it available via IPv4). At the final stage of setup in the GUI, VLC gives you the equivalent command that would be run at the command line to get the same effect, however when I try and actually run this command it doesn't work. The CLI command that the GUI generates is as follows:

vlc http://[IPv6 Address]/nphContinuousServerPush?Resolution=640x480&Quality=Standard :sout=#transcode{vcodec=h264,vb=800,scale=1}:std{access=http,mux=ts,dst=0.0.0.0:11000}

When run from the CLI there are no warnings about the syntax, VLC just opens the IPv6 webcam feed and displays it (which doesn't happen when I run from the GUI because I don't check the "Display locally" box) but no other clients can connect to it.

Most notably the command line output does not say "creating httpd" when I run this command from the CLI as it does when I run it from the GUI.

Can anyone help explain why this isn't working?

OS: Linux (Ubuntu 10.04)
VLC Version: 1.0.6 (from repository)

Thanks,

Ben

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

Re: Video Streaming Works from GUI but not CLI

Postby Rémi Denis-Courmont » 27 Aug 2010 05:01

You realize that &, = and # are special character in shell syntax?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Black_ice_Spain
New Cone
New Cone
Posts: 2
Joined: 06 Dec 2009 22:13

Re: Video Streaming Works from GUI but not CLI

Postby Black_ice_Spain » 27 Aug 2010 10:43

vlc http://[IPv6 Address]/nphContinuousServerPush?Resolution=640x480&Quality=Standard :sout=#transcode{vcodec=h264,vb=800,scale=1}:http{mux=ts,dst=:11000/}


try this one?

I think that one also displays locally.


Also try using it as a shortcut Not from Command line. As said above, special chars xP.

sellabianchi
New Cone
New Cone
Posts: 3
Joined: 10 Dec 2010 21:52

Re: Video Streaming Works from GUI but not CLI

Postby sellabianchi » 11 Dec 2010 22:34

Hello,

I have a similar problem, but with webcam. Specifically, I want to stream my webcam using RTP (Ubuntu Linux). It works with GUI but not with CLI. In fact, the CLI command can stream an mpeg file, but not the webcam. This is the command (VLC 1.1.4):

With the file (this works):

vlc -vvv file.mpeg --sout '#transcode{vcodec=WMV2,vb=1200,scale=1,acodec=wma2,ab=128,channels=1,samplerate=44100}:duplicate{dst=rtp{dst=192.168.1.101,port=5004,mux=ts},dst=display}' :no-sout-rtp-sap :no-sout-standard-sap :sout-keep

Trying with webcam (this does not work):

vlc -vvv v4l2:///dev/video0 --sout '#transcode{vcodec=WMV2,vb=1200,scale=1,acodec=wma2,ab=128,channels=1,samplerate=44100}:duplicate{dst=rtp{dst=192.168.1.101,port=5004,mux=ts},dst=display}' :no-sout-rtp-sap :no-sout standard-sap :sout-keep

The 2nd command does not work; in fact I only get a frozen capture of the webcam on the transmitter (and no reception at the receiver). On the other hand, the 1st command works great and receiver gets it.

Also, As I said above, the webcam works if I use the GUI (RTP/MPEG, WMV+WMA). This is the generated stream output string from the GUI:

:sout=#transcode{vcodec=WMV2,vb=1200,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:duplicate{dst=rtp{dst=192.168.1.101,port=5004,mux=ts},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :sout-keep

Can you please suggests potential solutions?

Thanks a lot in advance,
SB

Jason_25
Blank Cone
Blank Cone
Posts: 19
Joined: 20 Dec 2010 01:12

Re: Video Streaming Works from GUI but not CLI

Postby Jason_25 » 20 Dec 2010 21:18

I have the same problem as sellabianchi with webcam streaming seemingly not working with the CLI. Here is the command that the GUI gives:

:sout=#transcode{vcodec=mp4v,vb=800,width=320,height=240,acodec=none}:duplicate{dst=file{mux=ts,dst=stream},dst=http{mux=ts,dst=:8080/}} :no-sout-rtp-sap :no-sout-standard-sap :sout-keep

Two suggestions here:
1. This line should already include the input part of the command when you view it.
2. This should already be converted into the command line syntax when you view it.

In fact, I have found no documentation on how to convert GUI commands to CLI commands. What are the rules? Colons to double dashes right? I am sure there are more. So the error here could lie in the conversion of this command to the CLI or a genuine bug in the program.

I think for every question and suggestion I have made, at least 10 others have thought the same while trying to get this program to work. There is a lot of old, conflicting and misleading information out there and even more unanswered questions.

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Video Streaming Works from GUI but not CLI

Postby Greg » 21 Dec 2010 03:11

Take a look through the wikis and posts
Like
viewtopic.php?f=4&t=11402
and
http://wiki.videolan.org/Stream_VLC_to_ ... h#Appendix
(and the links therein)
or
viewtopic.php?f=2&t=85114
or
viewtopic.php?f=4&t=84404

Your suggestions are valid, but require someone(s) (perhaps you?) to document and update changes as they evolve. They don't happen by magic, they are done by people who contribute to the whole.... To the code and the docu....And the forum.

That's why it's free...!


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests