How can i make GStreamer appsink Receive FPS same like streaming video or rtsp stream?

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

How can i make GStreamer appsink Receive FPS same like streaming video or rtsp stream?

kskill
My pipeline grabs frame from mp4 and save to callbacks register using
`g_signal_connect`

```
gst-launch-1.0 filesrc location=test.mp4 ! qtdemux !  h264parse !
v4l2h264dec ! capsfilter caps=video/x-raw,format=I420 ! appsink name=sink
```

Problem:
test.mp4 plays at 15FPS and i get frames by appsink at 7.5 FPS.
What changes can i make in pipeline to receive 15 FPS by appsink.



--
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: How can i make GStreamer appsink Receive FPS same like streaming video or rtsp stream?

gotsring
Hard to offer advice if you don't describe your environment. I'm assuming
linux on some embedded device?

I'm assuming that if you run the same pipeline with a fakesink there's no
speed issue? Just make a 1 minute test video and see how long it takes to
finish decoding the file and compare it to the video actual length.

gst-launch-1.0 filesrc location=test.mp4 ! qtdemux !  h264parse !
v4l2h264dec ! 'video/x-raw,format=I420' ! fakesink

If the video is 1 minute long at 15FPS and the above pipeline finishes in 2
minutes, then it's a hardware thing where reading and decoding the file just
takes that long. If this is the case, then maybe look at different decoders
like hardware decoders if your device supports it.

If the above pipeline finishes in 1 minute (or probably less), then
something in your appsink code is the bottleneck. If that's the case, start
by just pulling the sample then dropping the reference, benchmark, then go
from there.



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