Video playback lagging in qt app running on rasp pi 4
-
I have made a gallery kind of app which lists the images videos and audios in separate tabs in a gridview. i have also made audio and video players and an mage viewer as well. I am using the usual qvideowidget for video playback but the playback is lagging even for hd videos. I have verified that my app is using gstreamer in the backend. the video plays smoothly when it is run from cmd prompt with gstreamer using
gst-launch-1.0 filesrc location=/path/to/your/video.mp4 ! qtdemux ! h264parse ! avdec_h264 ! videoconvert ! autovideosink sync=false
how to ensure smooth video playback ?
-
I have made a gallery kind of app which lists the images videos and audios in separate tabs in a gridview. i have also made audio and video players and an mage viewer as well. I am using the usual qvideowidget for video playback but the playback is lagging even for hd videos. I have verified that my app is using gstreamer in the backend. the video plays smoothly when it is run from cmd prompt with gstreamer using
gst-launch-1.0 filesrc location=/path/to/your/video.mp4 ! qtdemux ! h264parse ! avdec_h264 ! videoconvert ! autovideosink sync=false
how to ensure smooth video playback ?
@Gautham-G-B Just to make sure I understand correctly: do you show only one video at given time or several?