Change frame rate failed and lead to lose frames

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Change frame rate failed and lead to lose frames

Allan
Hi,

I got a .h264 video file, and I try to display it with gstreamer-1.0.
The pipeline likes: gst-launch-1.0 filesrc location=abc.h264 ! decodebin !
imxv4l2sink
After execute the pipeline the result reported as:
/Setting pipeline to PAUSED ...
display(/dev/fb0) resolution is (1024x600).
====== OVERLAYSINK: 4.1.4 build on Oct 10 2017 19:25:41. ======
display(/dev/fb0) resolution is (1024x600).
display(/dev/fb0) resolution is (1024x600).
Pipeline is PREROLLING ...
[INFO] Product Info: i.MX6Q/D/S
[INFO] Product Info: i.MX6Q/D/S
====== VPUDEC: 4.1.4 build on Oct 10 2017 19:25:43. ======
        wrapper: 1.0.68 (VPUWRAPPER_ARM_LINUX Build on Oct 10 2017 19:19:47)
        vpulib: 5.4.35
        firmware: 3.1.1.46072
[INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
[WARN] VPU iram is less than needed, some parts don't use iram
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:03.732863667
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
*Total showed frames (110), display master blited (110), playing for
(0:00:03.734385667), fps (29.456).*
Setting pipeline to NULL ...
Freeing pipeline .../

As a result, it seems faster than it should be. Actually, the abc.h264 is
supposed to display with fps of 10.
So I tried to change the framerate by: gst-launch-1.0 filesrc
location=abc.h264 ! decodebin ! videorate ! video/x-raw,framerate=10/1 !
imxv4l2sink
But it doesn't work. Even though it displayed while 90% frames lost.

Can anyone help me?
 



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Change frame rate failed and lead to lose frames

Allan
Well, I has solved it myself.
First I transform the .h264 file to a .mp4, then display it.

Pileline:
gst-launch-1.0 filesrc location=abc.h264 ! h264parse ! mp4mux ! filesink
location=tmp.mp4
gst-launch-1.0 filesrc location=tmp.mp4 ! decodebin ! autovideosink



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Change frame rate failed and lead to lose frames

Allan
In reply to this post by Allan
Well, I have solved it myself.
First I transform the .h264 video to a .mp4, then display it.

Pipeline:
gst-launch-1.0 filesrc location=abc.h264 ! h264parse ! mp4mux ! filesink
location=tmp.mp4
gst-launch-1.0 filesrc location=tmp.mp4 ! decodebin ! autovideosink



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel