[vlc] Re: VLC Input from Pipe

Angus Davis angus at tellme.com
Sat Nov 5 21:10:17 CET 2005


Benjamin Pracht wrote:

>On Fri, Nov 04, 2005, Angus Davis wrote :
>  
>
>>./test-mpeg2 -r 0 | vlc -I rc -vvv /dev/stdin --sout 
>>'#standard{access=http,mux=ts,url=10.0.1.197:8080}' --rc-fake-tty
>>
>>It does not work.  It reacts to the MPEG2 TS data as though they are 
>>commands, generating errors such as: "unknown command `?+'_U`.?f', type 
>>`help' for help"  Instead of "-vvv /dev/stdin" I have also tried "-vvv - "
>>    
>>
>
>Well, both these syntaxes work here. You can try file://- too...
>  
>
They do not work here.  A little more investigation finds one other 
person posting to this list with the same problem:
http://www.via.ecp.fr/via/ml/vlc/2003-05/msg00103.html

To simplify things, this works:
vlc -I rc -vvv stream.ts --sout 
'#standard{access=http,mux=ts,url=10.0.1.197:8080}'

This does not work:
cat stream.ts | vlc -I rc -vvv /dev/stdin --sout 
'#standard{access=http,mux=ts,url=10.0.1.197:8080}' --rc-fake-tty

What happens is that VLC reacts to the contents of the file as though 
they are commands being sent to VLC.  Of course, the file is just MPEG2 
data, so the "commands" are garbage and rejected as bad input, resulting 
in a stream of error messages to the effect of:
unknown command [random bits of MPEG2 data go here], type `help' for help

Finally, it bails ("1054 Segmentation fault")

I have also found that this works:
cat stream.ts >foo.ts | vlc -I rc -vvv foo.ts --sout 
'#standard{access=http,mux=ts,url=10.0.1.197:8080}' --rc-fake-tty

I am running VLC version "0.8.2-svn Janus" on Debian PPC (2.4.27 
kernel).  What I am trying to do is send MPEG2TS data from the output of 
one program immediately into VLC for streaming without having to record 
it to a file.  I must just be missing something elementary.  Clearly the 
way I am invoking VLC is causing it to interpret the output from the 
other program as an input to its "Remote Control" interface -- should I 
be using a different interface?
-angus

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list