Page 1 of 1

How to simple start/stop saving/recording a SDP stream?

Posted: 14 Oct 2013 15:00
by luk4
Hello!
Thank You for a such a great product! I would like to ask how to stop saving/recording a sdp stream. I have read that You can push/release button record, but how it can be done from command line? I have to do such a logic in our application, but it is difficult. I can not find any example in available c# wrappers for vlc.

The second question is: is it better to convert/save or record? I have recorded file from h264 stream and it can be opened only in vlc media player.

The third question is what muxer is better for h264 stream?

Code: Select all

vlc -vvv http://server.example.org/stream.sdp --sout file/muxer:stream.xyz muxer is one of the formats supported by VLC's stream output, i.e. : ps for MPEG2-PS format, ts for MPEG2-PS format.

Re: How to simple start/stop saving/recording a SDP stream?

Posted: 14 Oct 2013 15:53
by Rémi Denis-Courmont
1) The record button cannot be triggered from the CLI.
2) Whatever works for you.
3) It depends on your use cases.

Re: How to simple start/stop saving/recording a SDP stream?

Posted: 14 Oct 2013 15:58
by luk4
Ok, but according to the documentation You can trigger a command line to start recording yes? So is there a command to stop recording?
Also if there is an option to start converting/saving a file is there a command to stop saving a file from stream?

regards!

Re: How to simple start/stop saving/recording a SDP stream?

Posted: 15 Oct 2013 12:40
by Jean-Baptiste Kempf
You have a command line to stream, not to record.

Re: How to simple start/stop saving/recording a SDP stream?

Posted: 15 Oct 2013 13:55
by luk4
You have a command line to stream, not to record.
Ok, I see its something like this:

Code: Select all

sout=#transcode{vcodec=h264,acodec=none}:file{dst="+DestFileName+"}
But there is no information how to stop such a streaming into file and now I'm trying to figure out how to proper close such a file hm.

Re: How to simple start/stop saving/recording a SDP stream?

Posted: 15 Oct 2013 15:16
by Rémi Denis-Courmont
There is no command line to stop an existing instance. You have to use job control provided by the shell / operating system.

Re: How to simple start/stop saving/recording a SDP stream?

Posted: 15 Oct 2013 15:36
by luk4
There is no command line to stop an existing instance. You have to use job control provided by the shell / operating system.
I am just stopping playing and it works. Could You tell me what is the difference between those commands?

Code: Select all

sout=#transcode{vcodec=mp4v,scale=1,deinterlace,acodec=none}:file{dst="+DestFileName+"}"
vs

Code: Select all

sout=#transcode{vcodec=mp4v,scale=1,deinterlace,acodec=none}:std{access=file,mux=mp4,dst="+DestFileName+"}"
?