vpuenc_h264 videos not playble on Android and windows

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

vpuenc_h264 videos not playble on Android and windows

345 Views
DasKeks
Contributor II

We recently upgrade our yocto to the mickledore build. But with the new build captured videos from the device can no longer be opened in Windows Media Player and Android default player.

The new VPU encoder version:

====== VPUENC: 4.8.2 build on Oct 10 2023 02:31:27. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Sep 27 2023 02:10:15)
vpulib: 1.1.1
firmware: 1.1.1.0

We are using gstreamer to capture:
gst-launch-1.0 -e videotestsrc ! video/x-raw,format=UYVY,width=640,height=480,framerate=60/1,colorimetry=bt709 ! vpuenc_h264 bitrate=8192 ! h264parse ! capsfilter caps="video/x-h264,stream-format=avc,alignment=au,profile=baseline" ! mp4mux ! filesink location=test.mp4

We tried to add additional caps, but the videos still does not play on windows.

We tried different containers (matroska / avi) with the same result.

checking the files with ffprobe -show_streams reveals there is one difference in metadata:
the old, working vpuenc_h264 version adds "profile=Constrained Baseline", the new, not working version adds "profile=0". Could that be the issue? Can we force it to insert the correct code?

0 Kudos
Reply
2 Replies

317 Views
DasKeks
Contributor II

Could you please post which Pipeline you used and what versions vpuenc_h264 had?

0 Kudos
Reply

332 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

I have tested the same command on my imx8mm lpddr board with 5.10.52 bsp and 6.6.22 bsp successfully, I don't find any issue when I use ctrl+c to stop the pipeline

I suggest you to update your bsp.

Regards

 

0 Kudos
Reply