<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to save video stream into multiple files without stop gstreamer pipeline? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-save-video-stream-into-multiple-files-without-stop/m-p/294378#M36312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a gstreamer pipeline to save encoded video stream into files on iMX515/Linux-2.6.31 platform.&lt;/P&gt;&lt;P&gt;The pipeline is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mfw_v4lsrc -&amp;gt; mfw_vpuencoder -&amp;gt; avimux -&amp;gt; filesink location=xxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would like to change the file name ( i.e, the "location" propoerty of filesink element )&lt;/P&gt;&lt;P&gt;every 10 minutes( e.g, change the file name to the current time ).&lt;/P&gt;&lt;P&gt;AndI don't want to stop the pipeline before changing the location property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With gstreamer-1.2 or higher version, it's possible to do this with gst_pad_set_block(),&lt;/P&gt;&lt;P&gt;that is, blocking the source pad of avimux first, set filesink's state to NULL, change the location property,&lt;/P&gt;&lt;P&gt;set filesink's state to ready, and unblock avimux's source pad. ( Or something like that, I'm not quite sure.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the gstreamer library comes with imx515 BSP is gstreamer-0.10.x.&lt;/P&gt;&lt;P&gt;I am not sure if this method can make any sense with our work platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone who has done this successfully?&lt;/P&gt;&lt;P&gt;Or is there another method to try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robbie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2014 13:04:32 GMT</pubDate>
    <dc:creator>RobbieJiang</dc:creator>
    <dc:date>2014-03-12T13:04:32Z</dc:date>
    <item>
      <title>How to save video stream into multiple files without stop gstreamer pipeline?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-save-video-stream-into-multiple-files-without-stop/m-p/294378#M36312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a gstreamer pipeline to save encoded video stream into files on iMX515/Linux-2.6.31 platform.&lt;/P&gt;&lt;P&gt;The pipeline is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mfw_v4lsrc -&amp;gt; mfw_vpuencoder -&amp;gt; avimux -&amp;gt; filesink location=xxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would like to change the file name ( i.e, the "location" propoerty of filesink element )&lt;/P&gt;&lt;P&gt;every 10 minutes( e.g, change the file name to the current time ).&lt;/P&gt;&lt;P&gt;AndI don't want to stop the pipeline before changing the location property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With gstreamer-1.2 or higher version, it's possible to do this with gst_pad_set_block(),&lt;/P&gt;&lt;P&gt;that is, blocking the source pad of avimux first, set filesink's state to NULL, change the location property,&lt;/P&gt;&lt;P&gt;set filesink's state to ready, and unblock avimux's source pad. ( Or something like that, I'm not quite sure.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the gstreamer library comes with imx515 BSP is gstreamer-0.10.x.&lt;/P&gt;&lt;P&gt;I am not sure if this method can make any sense with our work platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone who has done this successfully?&lt;/P&gt;&lt;P&gt;Or is there another method to try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robbie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:04:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-save-video-stream-into-multiple-files-without-stop/m-p/294378#M36312</guid>
      <dc:creator>RobbieJiang</dc:creator>
      <dc:date>2014-03-12T13:04:32Z</dc:date>
    </item>
  </channel>
</rss>

