Forums - Camera video recording problem using IMX577 video/x-h264

1 post / 0 new
Camera video recording problem using IMX577 video/x-h264
h-hiranuma
Join Date: 6 Mar 24
Posts: 2
Posted: Wed, 2024-03-06 02:00

The gstreamer example for recording with the IMX577 camera in the user guide is not working:

gst-launch-1.0 -e qtiqmmfsrc camera=0 name=qmmf \
! video/x-h264,format=NV12,width=3840,height=2160,framerate=30/1 \
! h264parse \
! mp4mux \
! queue \
! filesink location=/data/4k30_h264.mp4

Error Message:

# gst-launch-1.0 -e qtiqmmfsrc camera=0 name=qmmf \
> ! video/x-h264,format=NV12,width=3840,height=2160,framerate=30/1 \
> ! h264parse \
> ! mp4mux \
> ! queue \
> ! filesink location=/data/4k30_h264.mp4
gbm_create_device(192): Info: backend name is: msm_drm
WARNING: erroneous pipeline: could not link qmmf to h264parse0, qmmf can't handle caps video/x-h264, format=(string)NV12, width=(int)3840, height=(int)2160, framerate=(fraction)30/1

 

However, using video/x-raw allows camera video recording.

gst-launch-1.0 -e qtiqmmfsrc camera=0 name=qmmf \
! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 \
! queue \
! qtic2venc \
! queue \
! h264parse \
! mp4mux \

! queue \
! filesink location="/data/4K_30FPS.mp4"

 

If anyone knows how to import in H264 format, please let me know.

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.