framerate and gplay

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

framerate and gplay

888 Views
ieio
Contributor IV

I can successfully play an mp4 file with gplay on imx6, and I am wondering how gplay calculates the framerate.

Metadata says Framerate is 0 but gplay plays it smootly at 10 frames per second.

I would like to use a gstreamer pipe instead of gplay e.g.:

gst-launch filesrc location=/home/user/test.mkv  ! video/mpeg,mpegversion=4,systemstream=true,framerate=XX/X ! vpudec  ! mfw_isink

how can I find the right value of framerate?

see logs:

Metadata of File:

        Title:

        Aritist:

        Album:

        Year:

        Genre:

        Duration: 17 seconds

Video:

        Width: 0

        Height: 0

        Frame Rate: 0

        Bitrate: 0

        Codec:

Audio:

        Channels: 0

        Sample Rate: 0

        Bitrate: 0

        Codec:

[Playing  ][Vol=01][00:00:17/00:00:17][fps:10]EOS Found!

Labels (2)
0 Kudos
Reply
1 Reply

680 Views
LeonardoSandova
Specialist I

Add –v to your pipeline and check the caps shown on the log. For example:

gst-launch filesrc location=big_buck_bunny_1080p_h264.mov typefind=true ! aiurdemux ! vpudec ! mfw_v4lsink –v

Leo