Play Failure on the Start
Problem
Play is failed and the player freezes at the first frame of the video.
Solution
Use the following procedure to debug.
- Make sure whether the correct plug-in is used. It may occur while the
pipeline is created successfully, but using an incorrect plug-in. The
following code blocks provide some examples of detecting its audio/video
format.
-
gst-discoverer-1.0 4K_h265_hevc_30FPS.mkv
-
mediainfo 4K_h265_hevc_30FPS.mp4
-
ffmpeg -i 4K_h265_hevc_30FPS.mkv
-
-
Try to play with the decodebin or the uridecodebin plug-in. They can always find the correct plug-ins and create pipelines automatically.
The following list shows some example code blocks.-
gst-launch-1.0 filesrc location=4K_h265_hevc_30FPS.mkv ! decodebin ! kmssink driver-name=starfive force-modesetting=1
-
gst-launch-1.0 uridecodebin uri=file:///media/root/4K_h265_hevc_30FPS.mkv ! kmssink driver-name=starfive force-modesetting=1
-