gstreamer convert mjpeg to h264
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:
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
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
Thanks a bunch
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion