<?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 Re: Re: Problem with playback speed using Gstreamer in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222645#M15063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eric for the link to Yocto. I'll give that a try because it may solve our other open issue where Gstreamer fails to allocate enough contiguous memory to play a video: &lt;A href="https://community.nxp.com/message/316472"&gt;GStreamer crashing on i.MX6 (Boundary Devices Nitrogen6x)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo: That was a good idea having me try gplay; I didn't have the error when I used that program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at the source code to see how it was accomplished. It looks like the Gstreamer tutorial I referenced in my initial post has a mistake. Specifically this line:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;seek_event = gst_event_new_seek (data-&amp;gt;rate, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE, GST_SEEK_TYPE_SET, position, &lt;STRONG style="color: #ff0000;"&gt;GST_SEEK_TYPE_NONE, 0&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's the gplay version:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;set_playback_rate_event = gst_event_new_seek(playback_rate, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT, GST_SEEK_TYPE_SET, current_position,&lt;STRONG style="color: #ff0000;"&gt; GST_SEEK_TYPE_SET, pproperty-&amp;gt;duration&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think the last two parameters are what was causing my problem. I used GST_SEEK_TYPE_NONE and zero. After changing it to GST_SEEK_TYPE_SET and the duration of the video, I no longer experienced the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 23:58:05 GMT</pubDate>
    <dc:creator>jimheath</dc:creator>
    <dc:date>2014-02-13T23:58:05Z</dc:date>
    <item>
      <title>Problem with playback speed using Gstreamer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222641#M15059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've written a video player in C++ (Qt 4.8.4) which uses Gstreamer 0.10 and the Freescale aiurdemux plugin 3.0.7. It's running on Timesys' BSP for the Nitrogen6X board, Linux version 3.0.35-ts-armv7l. CPU: i.MX6Q, 1GB RAM. Videos are being played from an attached 1TB SATA 2.5" drive. The video format I'm using is MPEG-2 TS (transport stream) and encoded using H.264.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add fast-forward and rewind functions to the player and notice some strange intermittent behavior. When I increase the playback speed to 4 (fast-forward) or -4 (rewind), much of the time the player works fine. But sometimes I get the following error from Gstreamer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;GStreamer-CRITICAL **: gst_segment_set_seek: assertion `start &amp;lt;= stop' failed&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is happening when I'm trying to return to the normal playback speed of 1. I've checked my start and stop values and they are fine so I shouldn't be seeing this assertion error. When I get this error, the video continues at its current playback speed of 4 or -4. After repeated attempts of changing the playback speed, Gstreamer will eventually return to a rate of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code for changing playback speed is based on this Gstreamer tutorial: &lt;A href="http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+13%3A+Playback+speed" title="http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+13%3A+Playback+speed"&gt;http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+13%3A+Playback+speed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked through the Gstreamer mailing list and someone mentioned this error is a bug but that was back in 2011. I would think it has been fixed by now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why this happens and how to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 22:52:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222641#M15059</guid>
      <dc:creator>jimheath</dc:creator>
      <dc:date>2014-02-10T22:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with playback speed using Gstreamer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222642#M15060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jim, can you do the same test using 3.0.9 or 3.0.10 version? On Yocto, the community &lt;STRONG&gt;dora&lt;/STRONG&gt; brances are using gst-fsl-plugin_3.0.9 and&lt;STRONG&gt; master-next&lt;/STRONG&gt; 3.0.10. Also, if you can duplicate the issue using just gplay, it would be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 16:27:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222642#M15060</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2014-02-11T16:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with playback speed using Gstreamer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222643#M15061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo,&lt;/P&gt;&lt;P&gt;I'll test it with gplay and report back. Where do I get Yocto for the Nitrogen6X board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:38:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222643#M15061</guid>
      <dc:creator>jimheath</dc:creator>
      <dc:date>2014-02-11T18:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with playback speed using Gstreamer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222644#M15062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get a Dora release (w/3.0.9 gstreamer components) from here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://boundarydevices.com/yocto-dora-release-mx6/" title="http://boundarydevices.com/yocto-dora-release-mx6/"&gt;http://boundarydevices.com/yocto-dora-release-mx6/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't have an image on-line with the 3.10.17 (3.0.10) versions.&lt;/P&gt;&lt;P&gt;You'd have to build with master-next, but kernel support is present.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:48:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222644#M15062</guid>
      <dc:creator>EricNelson</dc:creator>
      <dc:date>2014-02-11T18:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with playback speed using Gstreamer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222645#M15063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eric for the link to Yocto. I'll give that a try because it may solve our other open issue where Gstreamer fails to allocate enough contiguous memory to play a video: &lt;A href="https://community.nxp.com/message/316472"&gt;GStreamer crashing on i.MX6 (Boundary Devices Nitrogen6x)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo: That was a good idea having me try gplay; I didn't have the error when I used that program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at the source code to see how it was accomplished. It looks like the Gstreamer tutorial I referenced in my initial post has a mistake. Specifically this line:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;seek_event = gst_event_new_seek (data-&amp;gt;rate, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE, GST_SEEK_TYPE_SET, position, &lt;STRONG style="color: #ff0000;"&gt;GST_SEEK_TYPE_NONE, 0&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's the gplay version:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;set_playback_rate_event = gst_event_new_seek(playback_rate, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT, GST_SEEK_TYPE_SET, current_position,&lt;STRONG style="color: #ff0000;"&gt; GST_SEEK_TYPE_SET, pproperty-&amp;gt;duration&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think the last two parameters are what was causing my problem. I used GST_SEEK_TYPE_NONE and zero. After changing it to GST_SEEK_TYPE_SET and the duration of the video, I no longer experienced the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 23:58:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-playback-speed-using-Gstreamer/m-p/222645#M15063</guid>
      <dc:creator>jimheath</dc:creator>
      <dc:date>2014-02-13T23:58:05Z</dc:date>
    </item>
  </channel>
</rss>

