<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>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 "<span>everything has to be compressed". That might be the reason why it's so slow.</span></p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> 代表 redpanda <patrick.landreman@gmail.com><br>
<b>发送时间:</b> 2017年10月25日 10:59<br>
<b>收件人:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>主题:</b> Save camera to multiple files in real time</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I'm working on an application where I need to capture hours of continuous<br>
video, and then later upload specific time windows to a remote machine.<br>
Because the video data is large, and this system will be collecting for<br>
months, everything has to be compressed.<br>
<br>
My first attempt was to use two threads to avoid dropping frames - the first<br>
has a very simple pipeline with no compression, while the second performs<br>
the compression. Here is the pipeline I would want to run on the first: <br>
<br>
gst-launch-1.0 v4l2src num-buffers=300 ! video/x-raw,framerate=30/1 !<br>
filesink location=myFile<br>
<br>
This command would be run in a loop to capture a sequence of files.<br>
Unfortunately, while this should capture 300/30 = 10s of video, it takes 30s<br>
to execute. That means I'm losing a huge amount of video before the next<br>
iteration of the loop can start.<br>
<br>
I looked into splitmuxsink, but get a message that it doesn't exist, even<br>
though I have all the plugins installed.<br>
<br>
It seems that gstreamer must be powerful enough for me to access the<br>
buffered, raw video and select chunks of it to save as the buffer fills, but<br>
there aren't any examples with anything close to this that I can find. How<br>
would others recommend going about this goal?<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" id="LPlnk577356" previewremoved="true">
http://gstreamer-devel.966125.n4.nabble.com/</a>
<div id="LPBorder_GT_15089256193830.7334640558132104" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15089256193790.012580703032035512" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15089256193800.04453118912076515" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15089256193800.26677986933643916"></div>
<div id="LPTitle_15089256193800.4868542260035664" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15089256193810.03777291535919414" href="http://gstreamer-devel.966125.n4.nabble.com/" target="_blank" style="text-decoration: none;">GStreamer-devel | Mailing List Archive</a></div>
<div id="LPMetadata_15089256193810.6426670374541974" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 14px;">
gstreamer-devel.966125.n4.nabble.com</div>
<div id="LPDescription_15089256193820.6896326164389137" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
GStreamer-devel forum and mailing list archive. GStreamer mailing list, where development discussions occur. Ask here if you have problems with GStreamer. Please ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" id="LPlnk823237" previewremoved="true">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
<div id="LPBorder_GT_15089256187720.6694648469073543" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15089256187700.8816806366416219" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15089256187710.9011848344984181" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15089256187710.17074574608794713"></div>
<div id="LPTitle_15089256187710.1366578770465776" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15089256187710.37697360460646556" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank" style="text-decoration: none;">gstreamer-devel Info Page - freedesktop.org</a></div>
<div id="LPMetadata_15089256187710.7369665529995382" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 14px;">
lists.freedesktop.org</div>
<div id="LPDescription_15089256187710.45664250496345415" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
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 ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>