Unable to set display frame rate for video elementary stream

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to set display frame rate for video elementary stream

1,220 Views
teranishi_kenji
Contributor I

Hi all,

I am trying a displaying of H.264 elementary stream on i.MX6Q Sabre board using Freescale Yocto Project BSP code (imx-3.14.52-1.1.0_ga).
But, I can not set the display frame rate.

I try folloing command.

  gst-launch-1.0 filesrc location=input.es ! video/x-h264,framerate=15/1,alignment=au,stream-format=avc ! vpudec ! overlaysink

However, this is displayed in 30fps. I would like to display in 15fps.
Do you know how to resolve?

Best Regards,
Kenji

0 Kudos
8 Replies

992 Views
jimmychan
NXP TechSupport
NXP TechSupport

please try to add this

! vpudec framedrop=false framerate-nu=15 framerate-de=1 !
0 Kudos

992 Views
teranishi_kenji
Contributor I

Dear jimmychan,

Thank you so much for your advice.

But, I recieved folloing message.

  no property "framerate-nu" in element "vpudec0"

I am using version 4.0.8 for "vpudec". This version don't have this property.
Could you give me some advice about this?

Best Regards,
Kenji

0 Kudos

992 Views
jimmychan
NXP TechSupport
NXP TechSupport

the player can adjust the media clock rate for such use case. For example, you can use gplay-1.0 to play the video file, then select "[c]Setting play rate" to set the play rate to 0.5X, then for 30fps video file, it can be played in 15fps.

 

The gplay code can be found from the released "gst1.0-fsl-plugins-x.x.x.tar.gz".

0 Kudos

992 Views
teranishi_kenji
Contributor I

Dear jimmychan,

Thank you so much for your advice.

I can use "gplay-1.0". But I don't know how to use "[c]Setting play rate".
Could you show sample command?

Best Regards,
Kenji

0 Kudos

992 Views
jimmychan
NXP TechSupport
NXP TechSupport

When you using gplay, you will see there is an option "[c]Setting play rate".

For your reference : gplay-1.0 kernel panic imx6q 

0 Kudos

992 Views
teranishi_kenji
Contributor I

Dear jimmychan,

I found "[c]Setting play rate".
And, the following command was successful.

  gplay-1.0 input_h264_es.bin

But I don't know how to use "[c]Setting play rate".
I tried a following command, but not work.

  gplay-1.0 -c=0.5 input_h264_es.bin

Best Regards,
Kenji

0 Kudos

992 Views
jimmychan
NXP TechSupport
NXP TechSupport

when you read the source code of gplay.c, there is no "-c" option on command line to set the play rate. You only can use 'c' option after you run the 'gplay'.

0 Kudos

992 Views
teranishi_kenji
Contributor I

Dear jimmychan,

I succeeded. Thank you so much.
However, I would like to know the solution of using "filesrc" or "vpudec".
Please tell me about this if you know.

Best Regards,
Kenji

0 Kudos