Save stream to files by XX seconds

About encoding, codec settings, muxers and filter usage
mralex
New Cone
New Cone
Posts: 2
Joined: 19 May 2009 14:32
VLC version: UPtoDate
Operating System: FreeBSD
Location: UA, Kiev
Contact:

Save stream to files by XX seconds

Postby mralex » 19 May 2009 15:31

Hello, VideoLAN.
Thanks for so wonderful software as VLC.

We have a project with a lot of IP Cams, they produce MPEG-4 stream over RTSP.
Web based apllication has a flash player to show streams to customers.
Firstly streams are gathered in this way from rtsp://sources

Code: Select all

#std{access=http,mux=ts,dst=127.0.0.1:7112}
Then necessary prepare this streams for embeding flash.
If look practically the quality of transcoding to FLV is not so good...

Code: Select all

#transcode{vcodec=FLV1}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=127.0.0.1:8112/stream.flv}
Quality of transcoding to h264 and saving to the file much nice.

Code: Select all

#transcode{vcodec=h264}:std{access=file,mux=mp4,dst=./cam112stream.tmp}
But one of the requirments is to show actual situation of stream, so i decided to save by 30 seconds to different 2-3 files by a round, and then add them to flash player playlist and loop.
Here is a question: is a posibility in VLC to save amount of seconds or bytes of stream to the file and then start another, i.e. using a prefix such cam112-30s-stream, and get as a rezult files cam112-30s-stream1.mp4, cam112-30s-stream2.mp4, cam112-30s-stream3.mp4 and so on.
If this feature is absent, may it be added soon?
There is another way - stream to FIFO file, and grab by an another script and save every 30 seconds the data to external files, but here issue with file Headers (posssible with Footers too). Maybe some one can help how to add these headers/footers to grabbed video data.

P.S. stoping and starting vlc instances is not good because there are a lot of Cams and for gathering RTSP i have one VLM-config, for transcoding has more one, so this way give me two instances of VLC instead of 40.

Any advices or suggestions would be nice
Thanks beforehand.
WBR, mrAlex
http://videoprobki.com

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

Re: Save stream to files by XX seconds

Postby Rémi Denis-Courmont » 19 May 2009 18:21

This is not implemented, and nobody has volunteered to do it either.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests