Single Quotes: :sout in Windows and Linux

About encoding, codec settings, muxers and filter usage
JanDavid
New Cone
New Cone
Posts: 4
Joined: 26 Jun 2008 22:45

Single Quotes: :sout in Windows and Linux

Postby JanDavid » 04 Apr 2009 08:57

Single Quotes: :sout in Linux and Windows.

Today I have found: for

Code: Select all

:sout=#...{}:..{}
Under Linux, single quote before the # and at the end must be given, otherwise it will not work.

Under Windows, single quote before the # and at the end must not be given, otherwise it will not work.

Seems to be due to differences between the Linux shell (for example bash) and the Windows shell.

arielCo
New Cone
New Cone
Posts: 4
Joined: 10 Oct 2008 12:49

Re: Single Quotes: :sout in Windows and Linux

Postby arielCo » 13 Apr 2009 06:03

Indeed, the Windows (cmd) and Bash shells are radically different.

In most Unix shells, the # character outside of a quoted string makes the rest of the line a "comment", so everything after it is ignored, and the {} are also special. That's why you must enclose it in quotes, which will be stripped before passing to the program (VLC in this case).

Try these:

Code: Select all

echo a#b echo 'a#b'
You may look into http://www.tldp.org/LDP/abs/html/; don't mind the "Advanced" bit - it has a friendly Basics section.

In the standard Windows command processor the # sign means nothing, and quotes (among other things) are kept in the argument given to the program, so you type the sout: specification plainly.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests