Page 1 of 1

Command line HTTP/File stream: nothing to play

Posted: 20 Sep 2007 12:01
by narcisgarcia
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

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

Posted: 25 Sep 2007 23:43
by SteveS
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.

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

Posted: 26 Sep 2007 22:59
by narcisgarcia
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

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

Posted: 27 Sep 2007 04:55
by SteveS
- 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?

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

Posted: 11 Dec 2007 20:05
by openstep
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