Save stream as client via code
Posted: 08 Jun 2016 07:41
Hello everyone,
I have a vlc stream server via http on my windows laptop.
I would like to connect to it from linux and save the stream.
Could anyone point me in a direction from which i could do the following? (from the code, not from the interface)
- Save the stream, as it's manageable from interface:
Media -> open network stream -> convert -> source -> http from windows server, destination file : x - start.
(I connected to the stream from code, i just don't know how to tell it that i want to save the stream also)
EDIT: found this in another topic, can anyone confirm it's ok ? vlc link --sout-all --sout="#std{access=file,mux=ts,dst='/tmp/file.ts'}"
- Cut the destination file in splices of X minutes each ( can i do it without disconnecting from stream and reconnecting? )
- change the video output (tools - preferences -> video output). I expect that to be done at creation of instance, but what is the param for it,vout ?
Thank you for any indications.
Robert
I have a vlc stream server via http on my windows laptop.
I would like to connect to it from linux and save the stream.
Could anyone point me in a direction from which i could do the following? (from the code, not from the interface)
- Save the stream, as it's manageable from interface:
Media -> open network stream -> convert -> source -> http from windows server, destination file : x - start.
(I connected to the stream from code, i just don't know how to tell it that i want to save the stream also)
EDIT: found this in another topic, can anyone confirm it's ok ? vlc link --sout-all --sout="#std{access=file,mux=ts,dst='/tmp/file.ts'}"
- Cut the destination file in splices of X minutes each ( can i do it without disconnecting from stream and reconnecting? )
- change the video output (tools - preferences -> video output). I expect that to be done at creation of instance, but what is the param for it,vout ?
Thank you for any indications.
Robert