Page 1 of 1

VLC Command Line Problem

Posted: 10 Dec 2014 17:18
by alexfox
I am using VLC to capture a stream Audio/Video RTSP from a Sony camera. From GUI can acquire and save the file to disk synchronized.
From the terminal can not I get the same result ... how come?
Interface performs the following steps:
- Open network flow (insert address RTSP)
- I click on Flow
- Add the name of the file to save and imposed encoding
- Start the flow

The output string of the generated flow is the following:

: sout = # transcode {vcodec = mp2v, vb = 800, scale = 1}: {file = mux mkv, dst = / home / alessio / Video / ergergerghe}: sout-all: ttl = 128: sout-keep

I write from the terminal:

vlc rtsp: //10.4.1.175: 554 / media / video1: sout = # transcode {vcodec = mp2v, vb = 800, scale = 1}: {file = mux mkv, dst = / home / alessio / Video / provaVLC1} : sout-all: ttl = 128: sout-keep

I get the following errors:

  main stream output error: stream chain failed for `transcodescale = 1: filedst = / home / alessio / Video / provaVLC1 '
[0x7f9938005178] main input error: can not start stream output instance, aborting

What is wrong?

Re: VLC Command Line Problem

Posted: 02 Jan 2015 17:00
by Jean-Baptiste Kempf
missing "" around the sout arguments

Re: VLC Command Line Problem

Posted: 15 Jan 2015 20:53
by SarasotaSlim
Hmm...rather than what previous poster said (about quotes around sout arguments), I've been
following other examples from posts here in the forum. e.g. do a forum search for
#transcode
and follow their example patterns for your cmd-line syntax.

As you'll notice, those examples all do it by eliminating ALL the 'space' character in the curly-braced area in
the "#transcode" clause, which begins with:

--sout=#transcode{.............}

In other words, all those dots would be replaced with your transcoding arguments, with NO intervening spaces.
EDIT: oops...with the one exception that argument VALUES inside, when they are double-quoted strings, CAN then have space-chars in them!

[Of course, you MUST have spaces in the front part, between all the various options that begin with double-dashes.]

Hope this helps...