重现步骤
I want play video file mp4, but i can't build ffplay in buildroot
期待结果和实际结果
i want play video, audio file mp4 to HDMI, headphone
软硬件版本信息
HW: 01studio canmv
fw: K230_linux_sdk
错误日志
尝试解决过程
Besides ffplay, what other solutions can I use?
补充材料
重现步骤
I want play video file mp4, but i can't build ffplay in buildroot
期待结果和实际结果
i want play video, audio file mp4 to HDMI, headphone
软硬件版本信息
HW: 01studio canmv
fw: K230_linux_sdk
错误日志
尝试解决过程
Besides ffplay, what other solutions can I use?
补充材料
You need to recompile ffmpeg in order to generate ffplay.
The specific commands are as follows:
make menuconfig # Configure ffplay
make savedefconfig # Save configuration
make ffmpeg-dirclean # Recompile ffmpeg
make ffmpeg-rebuild
make # Regenerate img
On the k230 platform, you can use DRM technology to display images on HDMI. For example:
Use the command v4l2-drm -d 1 -w 480 -h 320
to capture camera images via V4L2 and display them on HDMI via DRM.
Code location: buildroot-overlay/package/vvcam/v4l2-drm
.
To use ffplay for image display via DRM, further research is required.
The recommended approach is to use the FFmpeg API to read an MP4 file, decode the MP4 to NV12 format using hardware decoding, and then use the libdrm API for image rendering.
Can you describe the steps to able to play mp4 video? with k230_linux_sdk.
Or a small sample for me. Thank you so much!