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

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
luk4
New Cone
New Cone
Posts: 9
Joined: 14 Oct 2013 14:45

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

Postby luk4 » 14 Oct 2013 15:00

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15318
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 14 Oct 2013 15:53

1) The record button cannot be triggered from the CLI.
2) Whatever works for you.
3) It depends on your use cases.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

luk4
New Cone
New Cone
Posts: 9
Joined: 14 Oct 2013 14:45

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

Postby luk4 » 14 Oct 2013 15:58

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!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 15 Oct 2013 12:40

You have a command line to stream, not to record.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

luk4
New Cone
New Cone
Posts: 9
Joined: 14 Oct 2013 14:45

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

Postby luk4 » 15 Oct 2013 13:55

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15318
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 15 Oct 2013 15:16

There is no command line to stop an existing instance. You have to use job control provided by the shell / operating system.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

luk4
New Cone
New Cone
Posts: 9
Joined: 14 Oct 2013 14:45

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

Postby luk4 » 15 Oct 2013 15:36

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+"}"
?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 113 guests