Streaming from local computer to server

About encoding, codec settings, muxers and filter usage
grep
New Cone
New Cone
Posts: 2
Joined: 11 Oct 2009 10:49

Streaming from local computer to server

Postby grep » 22 Dec 2009 20:29

Hello!

I'm trying to stream file from my local computer to server, where i have installed VLC version 0.9.9a Grishenko. I read wiki and FAQ before i write this post, but i don't know what i'm doing wrong.

On server side i use this command to receive and save stream:

Code: Select all

vlc -vvv rtp://@:5004 --sout file/ts:file.mp
On my local computer, i open VLC Media Player -> CTRL + S -> In destinations i select "RTP" , enter IP and port of my server (5004)

Thanks in advance


My log by VLC from server

Code: Select all

00000431] main input debug: thread started [00000432] main stream output debug: using sout chain=`standard{mux="ts",access="file",dst="file.mp3"}' [00000432] main stream output debug: stream=`standard' [00000433] main stream out debug: looking for sout stream module: 1 candidate [00000431] main input debug: thread 2988436368 (input) created at priority 10 (input/input.c:370) [00000433] main stream out debug: set config option: sout-standard-mux to ts [00000433] main stream out debug: set config option: sout-standard-access to file [00000433] main stream out debug: set config option: sout-standard-dst to file.mp3 [00000433] stream_out_standard stream out debug: creating `file/ts://file.mp3' [00000433] stream_out_standard stream out debug: extension is mp3 [00000433] stream_out_standard stream out debug: extension -> mux=(null) [00000433] stream_out_standard stream out debug: using `file/ts://file.mp3' [00000435] main access out debug: looking for sout access module: 1 candidate [00000435] access_output_file access out debug: file access output opened (file.mp3) [00000435] main access out debug: using sout access module "access_output_file" [00000435] main access out debug: TIMER module_Need() : 1.314 ms - Total 1.314 ms / 1 intvls (Avg 1.314 ms) [00000433] stream_out_standard stream out debug: access opened [00000437] main mux debug: looking for sout mux module: 1 candidate [00000437] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000 [00000437] main mux debug: using sout mux module "mux_ts" [00000437] main mux debug: TIMER module_Need() : 3.933 ms - Total 3.933 ms / 1 intvls (Avg 3.933 ms) [00000432] main stream output debug: muxer support adding stream at any time [00000432] main stream output debug: muxer prefers to wait for all ES before starting to mux [00000433] stream_out_standard stream out debug: mux opened [00000433] main stream out debug: using sout stream module "stream_out_standard" [00000433] main stream out debug: TIMER module_Need() : 9.656 ms - Total 9.656 ms / 1 intvls (Avg 9.656 ms) [00000431] main input debug: `rtp://@:5004' gives access `rtp' demux `' path `@:5004' [00000431] main input debug: creating demux: access='rtp' demux='' path='@:5004' [00000439] main demux debug: looking for access_demux module: 1 candidate [00000439] main demux debug: net: opening any datagram port 5004 [00000439] main demux debug: net: opening any datagram port 5005 [00000439] main demux debug: using access_demux module "rtp" [00000439] main demux debug: TIMER module_Need() : 2.451 ms - Total 2.451 ms / 1 intvls (Avg 2.451 ms) [00000431] main input debug: starting in sync mode [00000431] main input debug: `rtp://@:5004' successfully opened

kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Re: Streaming from local computer to server

Postby kdh » 23 Dec 2009 04:27

Are you trying to stream from your local computer to server, and then have the internet/everyone else connect to your server?

is rtp a must or are you open to trying something different?

grep
New Cone
New Cone
Posts: 2
Joined: 11 Oct 2009 10:49

Re: Streaming from local computer to server

Postby grep » 23 Dec 2009 08:22

Yes, this is what i want to do, but first i just want to send stream from my local computer (Windows XP), does not matter through which protocol (rtp, udp,..) to server (CentOS) where i have installed VLC (withouth UI) and save this stream on server.

tech_enc24
Blank Cone
Blank Cone
Posts: 14
Joined: 14 Dec 2009 10:08

Re: Streaming from local computer to server

Postby tech_enc24 » 23 Dec 2009 18:39

Try this if it helps:

vlc -vvv rtp://@<Your Server IP>:5004 --sout file/ts:file.mp

eg:
vlc -vvv rtp://@192.168.10.1:5004 --sout file/ts:file.mp

kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Re: Streaming from local computer to server

Postby kdh » 23 Dec 2009 22:53

couple of ways to do it..

this way is pretty basic, but should get you going.

On your computer, with the file you'd like to stream run:

Code: Select all

vlc -vvv INPUTFILE --sout '#standard{access=udp,mux=ts,dst=CENTOSSERVERIP:8000}'
and on the server run this command:

Code: Select all

vlc -vvv udp://@:8000 --sout '#standard{access=file,mux=ts,dst=/outputfile.bla}'
i'm running centos 5.4 with yum installed vlc and doing all sorts of neat stuff. see my sig and site for details. 8)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests