We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

1 post • Page 1 of 1
Prezla
Posts: 21
Joined: Mon Feb 28, 2022 5:29 am

gstreamer convert mjpeg to h264

Mon Feb 28, 2022 5:39 am

Hello,

I would like to convert usb camera mjpeg video stream to h264 video stream on Raspberry PI 3 kernel 5.10.92-v7+ armv7l GNU/Linux. I am using the following gstreamer pipeline but it does not produce a playable mp4 file:

Code: Select all

gst-launch-1.0 v4l2src device=/dev/video0 ! 'image/jpeg, width=1920, height=1080, framerate=10/1' ! jpegparse ! v4l2jpegdec ! v4l2h264enc extra-controls='controls,video_bitrate=256000;' ! 'video/x-h264,profile=high,level=(string)4.2' ! queue ! h264parse config-interval=-1 ! mp4mux ! filesink lockation=foo.mp4
Any suggestions on how to successfully achieve mjpeg to h264 using hardware acceleration (not cpu)? I'm willing to try different images or even use ffmpeg if needed.

Thanks a bunch

1 post • Page 1 of 1

Return to "OpenMAX"

AltStyle によって変換されたページ (->オリジナル) /