常见问答

FAQ

H.264 decoder with MP4 video  Issue Date:2025-03-03

Nuvoton provides hardware decoder VC8000 to decode H.264 format video.

First, you need to check the MP4 files is H.264 format or not.

If not, you need to translate it to H.264. You can use FFmpeg to translate them and change the resolution to match your display

ffmpeg -i input.mp4 -c:v libx264 -profile:v baseline -s 1280x720 -acodec mp3 output.mp4

After translation, you can put those files to MA35D1 root file system and use the following command to play the vide

gst-launch-1.0 filesrc location=/opt/videos/output.mp4 ! qtdemux name=demux
demux.audio_0 ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink
demux.video_0 ! queue ! decodebin ! nufbdevsink ! fakesink sync=true
Products: Microprocessors ,Arm Cortex-A35 MPUs
Applications:
Function: Others,Buildroot/ Yocto,GStreamer,Playback