To adjust i.MX6 gstreamer playback speed.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

To adjust i.MX6 gstreamer playback speed.

跳至解决方案
1,941 次查看
satoshishimoda
Senior Contributor I

Hi community,

I have a question about i.MX6DQ gstreamer in L3.10.17_1.0.0-ga.

Our partner want to know how to adjust a video playback speed of gstreamer.

Please see their questions as following.

[Q1]

Could you let me know how much accuracy can gstreamer adjust a video playback speed?

[Q2]

Could you let me know how to adjust a video playback speed?

Best Regards,

Satoshi Shimoda

标记 (1)
0 项奖励
回复
1 解答
1,230 次查看
marcomadrigal
Contributor III

Hi Satoshi Shimoda,

Sorry for the delay I got distracted on a project.

The gstd is very similar to the gst-launch command line but a little bit more flexible allowing you to change elements' properties on the fly (if supported by the element). Take a look to:

https://github.com/RidgeRun/gstd/wiki/Command-line-examples

A simple sample command would be:

gst-client create "videotestsrc name=srcelement pattern=0 ! xvimagesink sync=false"

gst-client -p 0 play

gst-client -p 0 set srcelement pattern int 10  #Change the property pattern in the element named srcelement

gst-client -p destroy

This is just a basic example of what can be done with gstd, you can control several pipelines at the same time as well.

Regards,

-Marco

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,230 次查看
marcomadrigal
Contributor III

Hi,

You can easily test the GStreamer speed control by using gstd:

https://github.com/RidgeRun/gstd/wiki

Hope this help you!

Best Regards,

-Marco

0 项奖励
回复
1,230 次查看
satoshishimoda
Senior Contributor I

Hi Marco,

Thank you for your reply.

But sorry, I did not understood well because the web site seems about gstreamer server.

I found gplay can change the playback seed with "[c]Setting play rate" as following.

=====

FSL_PLAYER_01.00_LINUX build on Jun 18 2014 11:39:30

        [h]display the operation Help

        [p]Play

        [s]Stop

        [e]Seek

        [a]Pause when playing, play when paused

        [v]Volume

        [m]Switch to mute or not

        [>]Play next file

        [<]Play previous file

        [r]Switch to repeated mode or not

        [f]Set full screen or not

        [z]resize the width and height

        [t]Rotate

        [c]Setting play rate

        [i]Display the metadata

        [x]eXit

get GST_MESSAGE_ELEMENT playbin2-stream-changed, uri=(string)file:///home/root/FourSeasons1024-768-10M_1.wmv;

[Playing  ][MUTE  ][00:00:08/00:03:01][fps:31]c

Set playing speed[-8,-4,-2,0.125,0.25,0.5,1,2,4,8]:

=====

Our partner want to change the playback speed dynamically on gstreamer (gst-launch) likes the above "[c]Setting play rate" of gplay.

And they want to know whether they can do micro adjustment of playback speed.

(e.g.  x1.1, x1.01, x1.001, etc...)

Best Regards,

Satoshi Shimoda

0 项奖励
回复
1,231 次查看
marcomadrigal
Contributor III

Hi Satoshi Shimoda,

Sorry for the delay I got distracted on a project.

The gstd is very similar to the gst-launch command line but a little bit more flexible allowing you to change elements' properties on the fly (if supported by the element). Take a look to:

https://github.com/RidgeRun/gstd/wiki/Command-line-examples

A simple sample command would be:

gst-client create "videotestsrc name=srcelement pattern=0 ! xvimagesink sync=false"

gst-client -p 0 play

gst-client -p 0 set srcelement pattern int 10  #Change the property pattern in the element named srcelement

gst-client -p destroy

This is just a basic example of what can be done with gstd, you can control several pipelines at the same time as well.

Regards,

-Marco

0 项奖励
回复
1,230 次查看
jorgerdz
Contributor I

Hello Marco,

could you please comment on the complexity to integrate gstd to a Yocto based system build?

Thanks in advance for your support.

0 项奖励
回复