答复: Save camera to multiple files in real time
Liu Xin
liuxin8166 at hotmail.com
Wed Oct 25 10:02:37 UTC 2017
The gst-launch command you posted is saving raw video data to file. Not sure if that's actually what you want, because you said "everything has to be compressed". That might be the reason why it's so slow.
________________________________
发件人: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> 代表 redpanda <patrick.landreman at gmail.com>
发送时间: 2017年10月25日 10:59
收件人: gstreamer-devel at lists.freedesktop.org
主题: Save camera to multiple files in real time
I'm working on an application where I need to capture hours of continuous
video, and then later upload specific time windows to a remote machine.
Because the video data is large, and this system will be collecting for
months, everything has to be compressed.
My first attempt was to use two threads to avoid dropping frames - the first
has a very simple pipeline with no compression, while the second performs
the compression. Here is the pipeline I would want to run on the first:
gst-launch-1.0 v4l2src num-buffers=300 ! video/x-raw,framerate=30/1 !
filesink location=myFile
This command would be run in a loop to capture a sequence of files.
Unfortunately, while this should capture 300/30 = 10s of video, it takes 30s
to execute. That means I'm losing a huge amount of video before the next
iteration of the loop can start.
I looked into splitmuxsink, but get a message that it doesn't exist, even
though I have all the plugins installed.
It seems that gstreamer must be powerful enough for me to access the
buffered, raw video and select chunks of it to save as the buffer fills, but
there aren't any examples with anything close to this that I can find. How
would others recommend going about this goal?
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
GStreamer-devel | Mailing List Archive<http://gstreamer-devel.966125.n4.nabble.com/>
gstreamer-devel.966125.n4.nabble.com
GStreamer-devel forum and mailing list archive. GStreamer mailing list, where development discussions occur. Ask here if you have problems with GStreamer. Please ...
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
gstreamer-devel Info Page - freedesktop.org<https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
lists.freedesktop.org
Subscribing to gstreamer-devel: Subscribe to gstreamer-devel by filling out the following form. Use of all freedesktop.org lists is subject to our Code ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171025/88a6d81e/attachment.html>
More information about the gstreamer-devel
mailing list