2025-06-24 5:08 AM - edited 2025-06-24 7:08 AM
Hello, st:
The board I have on my hand is stm32mp257f-ev1.
Now I have a problem. The gstreamer cannot work properly when playing mp4 format video.
Does the h264 decoder need to be activated or enabled?
I run this command
gst-launch-1.0 playbin3 uri="file:///home/root/Videos/2002.mp4"
here is the error:
and also the gst-discovery-1.0
root@stm32mp2-e3-c2-aa:~# gst-discoverer-1.0 Videos/2002.mp4
Analyzing file:///home/root/Videos/2002.mp4
Done discovering file:///home/root/Videos/2002.mp4
An error was encountered while discovering the file
Failed to configure H264 decoder
It seems that I can play webm format video but not mp4.
I tried the software decode avdec_h264, but it only has 15 fps.
But in fact the h264 plugin has been installed on my board.
root@stm32mp2-e3-c2-aa:~# gst-inspect-1.0 | grep h264
codectimestamper: h264timestamper: H.264 timestamper
libav: avdec_h264: libav H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 decoder
rtp: rtph264depay: RTP H264 depayloader
rtp: rtph264pay: RTP H264 payloader
typefindfunctions: video/x-h264: h264, x264, 264
uvch264: uvch264deviceprovider (GstDeviceProviderFactory)
uvch264: uvch264mjpgdemux: UVC H264 MJPG Demuxer
uvch264: uvch264src: UVC H264 Source
v4l2codecs: v4l2slh264dec: V4L2 Stateless H.264 Video Decoder
v4l2codecs: v4l2slh264enc: V4L2 Stateless H264 Video Encoder
videoparsersbad: h264parse: H.264 parser
I just want to use gstreamer to play a mp4 format video with the help of the hardware h264.
Do you have any suggestions?I'm looking forward your early reply.
Here is my board boot logs: