Questions tagged [h264]

h264 is a widely used video compression codec standard

16 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
3 answers
4k views

Hardware-encoding (h264_v4l2m2m) a MJPEG stream from a webcam

I have a 1080p webcam connected to a Raspberry Pi 4B over USB. The camera supports the following formats: Raw : yuyv422 : YUYV 4:2:2 Compressed: mjpeg : Motion-JPEG ...
Archimaredes's user avatar
2 votes
0 answers
889 views

ffmpeg slideshow on raspberry pi raspbian

I'm trying to make a slideshow video from few (in this case 3) .jpgs. To do this, I'm using ffmpeg -r 1/5 -i bat%03d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p proba12.mp4 and actually it works on ...
mysterious_guy's user avatar
2 votes
0 answers
2k views

omxplayer ignores --fps option when playing h264 file

I made a video using the Raspberry Pi camera that came with a .h264 extension. I know that this file doesn't have the fps metadata associated with it. I found that playing it with omxplayer like this: ...
rmarques's user avatar
  • 111
2 votes
0 answers
3k views

OpenCV VideoWriter and Hardware h264

I'm working on a python/pygame application, and i'm facing some difficulties when I try to capture a video from a usb camera (640x480) to a h264 encoded file, through OpenCV. Everything work fine with ...
Technico.top's user avatar
  • 1,406
1 vote
0 answers
161 views

Can hardware decoding of h.264 be enabled in Kodi on Ubuntu?

Running Ubuntu 23.04 (and previously 22.10) on a Pi 4 doesn't seem to allow me to hardware decode h.264 in Kodi from Debian from the Ubuntu repo. I draw this conclusion from the Video decoder: f-h264 (...
Andreas's user avatar
  • 185
1 vote
0 answers
722 views

Pi 4: ffmpeg can't set gop size when using h264_v4l2m2m to encode video

The Raspberry Pi 4 can encode videos using hardware acceleration by using 64 bit Raspberry Pi OS, a particular ffmpeg fork and the h264_v4l2m2m codec. Alternatively, Ubuntu and the 4.4 version of ...
domsson's user avatar
  • 43
1 vote
0 answers
194 views

Strange segfault after several hours of running program

I created a program fairly closely related to hello_pi/hello_video.c. And for some reason after several hours of running the program I get these very strange segfaults that I cannot for the life of me ...
ktb92677's user avatar
  • 141
1 vote
0 answers
333 views

Is it possible to run H.264 hardware encoding on video from a monochrome ArduCam module?

I am early in the design phase for a camera array of ~12 units. Each unit will be comprised of an ArduCam camera module (possibly the OV9281) and a Raspberry Pi to compress the video data and send it ...
KPM's user avatar
  • 216
1 vote
0 answers
701 views

Low video quality with h264_omx encoder

I have a Logitech C922 webcam and I'm recording using ffmpeg with this settings: ffmpeg -thread_queue_size 1024 -f alsa -r 16000 -i hw:1,0 -f video4linux2 -thread_queue_size 512 -s 1920x1080 -i /dev/...
André Luís's user avatar
1 vote
0 answers
1k views

Video streaming over Bluetooth from RPi3 to android app

I'm building a robot that is controlled using a Android app by sending commands over Bluetooth. I would like to also get a video over bluetooth to my android app from RPi3. My question here is, did ...
VB4488's user avatar
  • 11
0 votes
0 answers
13 views

OMXplayer cannot seek in HLS stream

I am using OMXplayer to play HLS streams from NRK with a RPI3B+. Until now I have used dbuscontrol.sh to seek forward and backward in the streams, but suddenly it has become impossible to seek. ...
Eddy Sorngard's user avatar
0 votes
0 answers
69 views

GStreamer: Mjpeg to H264 with hardware encoding

I'm having trouble with my pipeline for taking mjpeg video from a USB webcam and encoding it into H264 with the hardware encoding through GStreamer on a PI4 (ubuntu 22.04, but I have tried pi os 64 ...
Ethanator10000's user avatar
0 votes
0 answers
147 views

Stream video with RTSP (live 555)

I'm trying to stream video from the pi with live555 (RTSP). I don't have any errors on the raspberry pi side : pi@raspberrypi:~/live/raspi $ raspivid -w 1024 -h 768 -fps 25 -b 300000 -t 99999999 -o - |...
Steph's user avatar
  • 9
0 votes
0 answers
328 views

Trying to do hardware H264 encoding with gstreamer on a Raspberry Pi 4B

I am attempting to do hardware-accelerated H264 encoding on a Raspberry Pi 4B. I am running bullseye with an aarch64 kernel and a 32-bit userland: ben@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME=&...
Ben Mesander's user avatar
0 votes
0 answers
250 views

Random disconnection of an USB Camera with Raspberry Pi 4

I've got a Raspberry Pi 4 with an USB2.0 camera connected through a slip ring. When I boot, there's no problem at all, but sometimes the Raspberry is unable to detect the camera while streaming (I'm ...
Adrián Álvarez's user avatar
0 votes
0 answers
3k views

Raspberry pi 4 - Hardware offload of h264 video decoding in Chromium

I am trying to develop a web application displayed in chromium in kiosk mod (78.0.3904.108 (Official Build) Built on Raspbian , running on Raspbian 10 (32-bit)). I am hoping to play h264 medias ...
RomD's user avatar
  • 1