How to save the incoming stream to a local file?

About encoding, codec settings, muxers and filter usage
01010
New Cone
New Cone
Posts: 7
Joined: 14 Oct 2008 16:05

How to save the incoming stream to a local file?

Postby 01010 » 23 Oct 2008 18:00

probably a beginner's question:

I am trying to save the incoming RTP stream into a local file. How do i achieve this?

I tried this from command line:

vlc.exe -vvv rtp://@IP:Port --sout=#std{access=file url="/tmp/recorded"}

But it didn't work. :(
Am i missing something?

Thanks.

pez
New Cone
New Cone
Posts: 8
Joined: 11 Dec 2008 15:52

Re: How to save the incoming stream to a local file?

Postby pez » 11 Dec 2008 19:02

don't know if in windows it's the same, but,

:sout=#duplicate{dst=std{access=file,mux=ts,dst="/home/user/test.avi"}} (vlc 0.8.6)

in 0.9.* should be similar if not the same

either way, i advice you first try it with the GUI , then (with the command is right) adapt it to the command line, see if you get the stream correctly (i'm assuming that you do), then try to save to a file

on a first approach, try to replace url by dst in your command line (and giving you're in windows, give also an extension to the file)

**EDIT:

0.9.0 NEWS wrote:
* The "rtp" access output module has been removed.
Please use the RTP stream output instead, e.g.:
Old: '#std{access=rtp,mux=ts,dst=239.255.1.2:5004,sap}'
New: '#rtp{mux=ts,dst=239.255.1.2,port=5004,sap}'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
viewtopic.php?f=4&t=50489

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: How to save the incoming stream to a local file?

Postby thannoy » 11 Dec 2008 20:35

Hi,

Can RTP be multicasted (I don't remember, don't think)? If yes:
* example which should save the stream to a MPEG-TS file:

Code: Select all

vlc.exe -vvv rtp://@multicastIP:port --sout=#std{access=file,dst=/tmp/recorded.ts,mux=ts}
If no, maybe more like:

Code: Select all

vlc.exe -vvv rtp://ip:port --sout=#std{access=file,dst=/tmp/recorded.ts,mux=ts}
(nothing tested)

Be aware that "vlc.exe" is the windows name of VLC program while /tmp/.. is more a *nix-like filename. If you are not using some kind of GNU/Linux environment on your Windows (cygwin, mingw, etc), then this filename is invalid. Use c:\folder\file instead, double-quoted if necessary.

regards,
Anthony


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 18 guests