Gstreamer formats(H264) Query

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

Gstreamer formats(H264) Query

395 Views
mark-calaway
Contributor II

We are looking to record video with H264 format but we have the following command which is recording .ogv format only.
"gst-launch-1.0 -v v4l2src device=/dev/video3 ! videoconvert ! theoraenc ! queue ! filesink location=imx8-record.ogv"
Is there any H264 format for recording other than theora video format? We have to play the video in the IMX9QXP board.

0 Kudos
Reply
1 Reply

387 Views
joanxie
NXP TechSupport
NXP TechSupport

if you need encode h264 video, you can use the below command to generate mp4 file

$ gst-launch-1.0 videotestsrc ! video/x-raw, format=NV12, width=640, height=480 ! v4l2h264enc ! \
filesink location=test.mp4

0 Kudos
Reply