Command line HTTP/File stream: nothing to play

About encoding, codec settings, muxers and filter usage
narcisgarcia
Blank Cone
Blank Cone
Posts: 12
Joined: 05 Sep 2007 11:11
Operating System: GNU
Contact:

Command line HTTP/File stream: nothing to play

Postby narcisgarcia » 20 Sep 2007 12:01

Scenario: Ubuntu GNU/Linux 7.04 + Logitech Quickcam Pro 4000 (USB)

If I run:

Code: Select all

vlc v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/dsp1"
..VLC plays the video and audio from the device, fine.

If I run:

Code: Select all

vlc v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/dsp1" :sout=#duplicate{dst=display}
..VLC plays the video and audio from the device, fine.

If I run:

Code: Select all

vlc v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/dsp1" :sout=#duplicate{dst=std{access=http,mux=ts,dst=:1234}}
in the console returns:
VLC media player 0.8.6 Janus
[00000294] main private error: no sout stream module matched "stddst="
[00000292] stream_out_duplicate private error: no destination given
[00000291] main stream output error: stream chain failed for `duplicate{dst=stddst=:1234}'
[00000289] main input error: cannot start stream output instance, aborting
[00000280] main playlist: nothing to play
..and VLC opens stopped, and if I push on the Play button, does nothing.

If I run:

Code: Select all

vlc v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/dsp1" :sout=#duplicate{dst=std{access=file,mux=ts,dst="/media/disk/TEMP/videocamera.mp4"}}
in the console returns:
VLC media player 0.8.6 Janus
[00000294] main private error: no sout stream module matched "stddst="
[00000292] stream_out_duplicate private error: no destination given
[00000291] main stream output error: stream chain failed for `duplicate{dst=stddst=:1234}'
[00000289] main input error: cannot start stream output instance, aborting
[00000280] main playlist: nothing to play
..and VLC opens stopped, and if I push on the Play button, does nothing.

If I run:

Code: Select all

vlc v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/dsp1" :sout=#transcode{vcodec=mp4v,vb=128,scale=1,acodec=mp4a,ab=32,channels=2}:duplicate{dst=std{access=file,mux=ts,dst="/media/disk/TEMP/videocamera.mp4"}}
in the console returns:
VLC media player 0.8.6 Janus
[00000294]VLC media player 0.8.6 Janus
[00000292] main private error: no sout stream module matched "transcodechannels=2"
[00000291] main stream output error: stream chain failed for `transcodechannels=2:duplicate{dst=stddst=/media/disk/TEMP/videocamera.mp4}'
[00000289] main input error: cannot start stream output instance, aborting
[00000280] main playlist: nothing to play
..and VLC opens stopped, and if I push on the Play button, does nothing.

* All modes run fine calling it with the wxWidgets interface, but the problems appear when calling the same from command line.
* All the syntax strings are copied from the automatically generated strings by the wxWidgets interface
Narcis Garcia

SteveS
Blank Cone
Blank Cone
Posts: 16
Joined: 30 Jul 2007 22:03

Re: Command line HTTP/File stream: nothing to play

Postby SteveS » 25 Sep 2007 23:43

I have a similar problem. I found that if I put a space between the 'sout=' and '#transcode', then my stream plays locally (the 'Nothing to Play' error goes away). Still doesn't stream from command line, but maybe this helps a bit.

---- Ahh, I think the space just makes VLC ignore the rest of the command line, so I guess that's no help. Oh well....

--- but wait, there's more:

- As i pointed out in another thread, it appears that the syntax --sout-=#transcode{...} doesn't work (at least for me), but --sout '#transcode{...}' does. I see you are using the first syntax. You may want to try the alternative and see if it works.

narcisgarcia
Blank Cone
Blank Cone
Posts: 12
Joined: 05 Sep 2007 11:11
Operating System: GNU
Contact:

Re: Command line HTTP/File stream: nothing to play

Postby narcisgarcia » 26 Sep 2007 22:59

Changing the equal (=) character for a space ( ), VLC displays me the content now, but any additional output is ignored, as streaming in HTTP or saving in a file.

I'm trying to do the three things at once: play locally, save in a file and serve with an HTTP stream.

Thanks
Narcis Garcia

SteveS
Blank Cone
Blank Cone
Posts: 16
Joined: 30 Jul 2007 22:03

Re: Command line HTTP/File stream: nothing to play

Postby SteveS » 27 Sep 2007 04:55

- When you use the space after sout, you need single quotes around the rest of the command; did you add these?
- Can you post the command line you are using to do all three outputs?

openstep
Blank Cone
Blank Cone
Posts: 10
Joined: 11 Dec 2007 14:23

Re: Command line HTTP/File stream: nothing to play

Postby openstep » 11 Dec 2007 20:05

Hi,
Is there a way to tell vlc to start playing a certain file on startup?
I would like to copy vlc to a cd with a movie and make it autorun. This will lunch vlc then vlc start with that file.

So how can I tell vlc to start playing a certain file on startup?

Thanks


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests