Choppy video playback
-
wrote on 9 Jul 2024, 16:09 last edited by A Former User 7 Sept 2024, 20:08
Hello, I've been testing out QML media player with the example code provided here (https://doc.qt.io/qt-5/qml-qtmultimedia-videooutput.html) except I've added this line to the MediaPlayer so it plays audio
audioOutput: AudioOutput {}
And I've made it play upon the click of a button (not auto play) with a little bit of code to ensure it does not play twice if the button is clicking repeatedly. I've done this by making sure the PlayingState of the playing variable is false when re-playing the video
In case it matters, the video I'm playing is this one and it has .mp4 extension. It's 15.2 MB
https://youtu.be/4mw9seG_unIThe audio and video playback is very choppy. Hopefully my description of the problem makes sense. Maybe the best analogy is you'd think I was playing a resource-intensive video game on a potato PC with how bad the audio sounds and video looks
Any ideas as to how to make it play more smoothly?Failing this, are there any alternate ways of implementing videos I could try?
-
Can you test a release build ?
-
Hi,
Which version of Qt are you using ?
On which platform ? -
wrote on 9 Jul 2024, 16:18 last edited by
I'm using Qt 6.7.2 on Windows 11 OS
Compiling to
Android_Qt_6_7_2_Clang_x86_64-DebugFor device
Galaxy NexusFor OS version
Android 13.0 -
Can you test a release build ?
-
wrote on 9 Jul 2024, 18:45 last edited by
Sure, I'll begin the download now
-
wrote on 9 Jul 2024, 19:56 last edited by A Former User 7 Sept 2024, 20:10
Seems like a big improvement
If anybody has any other suggestions to improve playback performance let me know but I'll consider that fixed at least for smaller size videos since that's like drastically better already
-
-
2/6