Page 1 of 1

format of :sout command

Posted: 15 Mar 2005 12:02
by UnDetect
Hi, all!

Where can i get format and examples of :sout command?
Also where can i get examples of configuration vlc streams for translation to windows media player or real player?

PS: I use FreeBSD.

Posted: 15 Mar 2005 12:07
by xtophe

Posted: 15 Mar 2005 14:07
by Guest
Hmmm. I use "vlc /usr/local/VideoLAN/memory.avi :sout='#duplicate{dst=std{access=mmsh,mux=,url=:8080}}' vlc:quit" command on server and "mms://server_ip_address:8080" on client but my Windows media player say me: "The MP4S codec is required to play this file." I cann't find this codec on http://www.microsoft.com and other sites. Where can i get this codec or my command is not right?

Posted: 15 Mar 2005 14:37
by UnDetect
What Audio codec use for transfer stream to Windows Media Player? "mpga" donnt work on WMP, "mp3" donnt work on VLC

Posted: 15 Mar 2005 22:07
by markfm
This is a Windows command line, but it's similar on Linux:
:sout=#transcode{vcodec=DIV3,vb=1024,scale=1,acodec=mp3,ab=192,channels=2}:duplicate{dst=std{access=mmsh,mux=ASFH,url=:1234}}

It says to take whatever the source is, turn it into 1024K DIV3/192K mp3, and output it as mmsh, available on port 1234.

The above is fine for WMP, at least newer versions of WMP.

To connect, in WMP you would select File -- Open URL, then type in:
mms://server_IP_address:1234

Posted: 16 Mar 2005 09:05
by UnDetect
netserv# vlc /usr/local/VideoLAN/small.mpg :sout='#transcode{vcodec=WMV2,acodec=mp3}:duplicate{dst=std{access=mmsh,mux=asfh,url=:8080}}' vlc:quit
VLC media player 0.8.1 Janus
Remote control interface initialized, `h' for help
[00000240] main private: creating httpd
[00000283] mpeg_audio packetizer: MPGA channels:2 samplerate:48000 bitrate:224
[00000308] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3
[00000233] stream_out_transcode private error: cannot find encoder
[00000233] stream_out_transcode private error: cannot create audio chain
[00000283] main packetizer error: cannot create packetizer output
[wmv2 @ 0x2852d4d4]removing common factors from framerate

acodec=mp3 donnt work on freebsd 4.11 with installed VLC from ports.
What package need to install?

Posted: 17 Mar 2005 22:48
by The DJ
your ffmpeg is not compiled with lame support required for mp3 encoding. you will also need to recompile VLC and then add the --with-ffmpeg-lame paramater to the vlc ./configure line