I'm very interested in instant rate change but I can't get it working
this is my code: gst_element_seek( GST_ELEMENT(player->pipeline) , (double) player->speed , GST_FORMAT_UNDEFINED // also tried with GST_FORMAT_TIME here , GST_SEEK_FLAG_INSTANT_RATE_CHANGE , GST_SEEK_TYPE_NONE , GST_CLOCK_TIME_NONE , GST_SEEK_TYPE_NONE , GST_CLOCK_TIME_NONE ); rate won't change. the previous way, doing a normal seek (with GST_FORMAT_TIME, GST_SEEK_TYPE_SET and GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE) does work but I need instant as I'm implementing a pitch control _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
You can test this feature with gst-play-1.0, you can then look at code for example usage. Le sam. 22 août 2020 14 h 00, Mikel Pérez <[hidden email]> a écrit : I'm very interested in instant rate change but I can't get it working _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Mikel Pérez
The source / demuxer you're seeking needs to support instant rate changes,
maybe check that :) On 8/22/20 6:54 PM, Mikel Pérez wrote: > I'm very interested in instant rate change but I can't get it working > this is my code: > > gst_element_seek( > GST_ELEMENT(player->pipeline) > , (double) player->speed > , GST_FORMAT_UNDEFINED // also tried with GST_FORMAT_TIME here > , GST_SEEK_FLAG_INSTANT_RATE_CHANGE > , GST_SEEK_TYPE_NONE > , GST_CLOCK_TIME_NONE > , GST_SEEK_TYPE_NONE > , GST_CLOCK_TIME_NONE > ); > > rate won't change. the previous way, doing a normal seek (with > GST_FORMAT_TIME, GST_SEEK_TYPE_SET and GST_SEEK_FLAG_FLUSH | > GST_SEEK_FLAG_ACCURATE) does work but I need instant as I'm > implementing a pitch control > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I've found the demuxers supporting it are mka, mpeg-ts and qt/mp4.
is there a pipeline to transform media being read into another muxer? On Sun, Aug 23, 2020 at 4:22 PM Mathieu Duponchelle <[hidden email]> wrote: > > The source / demuxer you're seeking needs to support instant rate changes, > maybe check that :) > > On 8/22/20 6:54 PM, Mikel Pérez wrote: > > I'm very interested in instant rate change but I can't get it working > > this is my code: > > > > gst_element_seek( > > GST_ELEMENT(player->pipeline) > > , (double) player->speed > > , GST_FORMAT_UNDEFINED // also tried with GST_FORMAT_TIME here > > , GST_SEEK_FLAG_INSTANT_RATE_CHANGE > > , GST_SEEK_TYPE_NONE > > , GST_CLOCK_TIME_NONE > > , GST_SEEK_TYPE_NONE > > , GST_CLOCK_TIME_NONE > > ); > > > > rate won't change. the previous way, doing a normal seek (with > > GST_FORMAT_TIME, GST_SEEK_TYPE_SET and GST_SEEK_FLAG_FLUSH | > > GST_SEEK_FLAG_ACCURATE) does work but I need instant as I'm > > implementing a pitch control > > _______________________________________________ > > gstreamer-devel mailing list > > [hidden email] > > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |