Questions tagged [h264]

h264 is a widely used video compression codec standard

Filter by
Sorted by
Tagged with
7 votes
3 answers
15k views

Get h264 from Webcam Logitech C922

I've read multiple threads about streaming a Logitech C920 Webcam via raspberry pi with cvlc using basically this command: cvlc v4l2:///dev/video1:chroma=h264:width=800:height=600 --sout '#standard{...
Gotschi's user avatar
  • 608
4 votes
1 answer
998 views

uv4l and janus "use of hardware codec is disabled in this restricted edition"

I have a rpi 3 with the v2 camera running stretch 9.1. I've installed raspicam and uv4l according to the instructions on linux-projects.org. I have the janus gateway setup on a separate box. I am ...
dnebrich's user avatar
4 votes
1 answer
820 views

How Can I Stream Video from SD Card over Ethernet via RTSP?

Problem: I need to stream a video file from my RPi SD card over RTSP to display on a client computer. I'm new to RPi and Linux-based interfaces. I'm also new to RTSP and video streaming. My hardware:...
Stephen 's user avatar
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
1 answer
5k views

How do you set hardware video encoder options with V4L2 M2M?

TL;DR When using ffmpeg and the h264_v4l2m2m hardware-accelerated codec, how do I set the encoder options such as the bitrate and key frame interval? Details I am using these commands to capture raw ...
Malvineous's user avatar
  • 1,804
2 votes
2 answers
1k views

Problem with VLC video player on my Raspberry Pi 4

I have captured video from a Raspberry Pi camera and saved to desktop as video.h264. VLC player opens with huge window. I cannot navigate the window to get to any settings. It worked fine for a few ...
Frank Stevenson's user avatar
2 votes
1 answer
5k views

Video encoding on Raspberry Pi 4 via ffmpeg and h264_v4l2m2m produces corrupted video

Raspberry Pi 4, 4 GB Rapsberry Pi OS Lite, 64 bit (2022-09-22) Kernel 5.15.61-v8+ ffmpeg 4.3.4-0+deb11u1+rpt3 config.txt has the following relevant entry: # Enable DRM VC4 V3D driver dtoverlay=vc4-...
domsson's user avatar
  • 43
2 votes
1 answer
3k views

How to improve "motion" framerate, or feed "raspivid" h264 stream into "motion"?

I'm running Pi 4 with a 5 megapixel OV5647 camera attached to its camera port. I'm using motion to run motion detection, with the goal of running low-res stream at 2 frames per second for detection ...
Ivan Koshelev's user avatar
2 votes
1 answer
88 views

PiCamera stream differences

I'm trying to create a h264 stream from my Pi 3 and display it on an Android application. After several attempts I found quite a simple solution: raspivid -n -ih -t 0 -w 640 -h 480 -fps 25 -b 2000000 -...
weirdgyn's user avatar
  • 122
2 votes
1 answer
271 views

Monitoring hardware accelerated video decoding

I'm using RPi4 board with Raspbian on top of it I wonder if there is a way to tell if any process currently using hardware accelerated video playback? Ideally it would be nice to be able to say ...
reddot's user avatar
  • 121
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
2 answers
4k views

UV4L raspicam webstreaming in H264

I'm having some trouble getting H264 streaming to work. I've been digging around a little and it seems the problem is that UV4L is sending raw H264, which is not directly playable in Chrome. Does ...
Znerox's user avatar
  • 11
1 vote
1 answer
14k views

Setting up RTSP using v4l2

Around one year ago I built some Raspberry pi streaming device fitting on a model train. Being unhappy with the setup process on how to receive the stream on windows (using MPlayer), I decided to use ...
Johannes Zelger's user avatar
1 vote
1 answer
66 views

converting .h264 to other video formats [closed]

How do I convert(compile?) h264 video from raspivid to a usable format? I have tried using various video conversion programs in windows but none recognize the h254 format.
Frank Stevenson's user avatar
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
720 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
332 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
698 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
1 answer
352 views

Should playing uncompressed RGB video files consume strictly less resources than playing encoded files?

I don't know much about video, but to play an h264 encoded file into a screen, don't you have to decode it to something like RGB first? I would expect playing a video that is in RGB format to skip the ...
tlongeri'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
1 answer
190 views

raspivid doesn't include b-frames

I'm streaming raw h264 using raspivid on Raspberry Pi 3 and PiCam v1 . However, even I set the h264 profile to main or high, stream only contains I and P frames. Here is the command that I use for ...
Black Glix's user avatar
0 votes
1 answer
1k views

Wrong timing in picamera video capture?

I'm using a real simple python script to capture a video file to a file, taken from the "simple recipes" guide : import picamera camera = picamera.PiCamera() camera.resolution = (640, 480) camera....
Technico.top's user avatar
  • 1,406
0 votes
1 answer
1k views

Omxplayer doesn't play videos when OpenGL enabled

Today I setup my new RPI3 B+ with raspbian stretch as a desktop (OpenGL enabled 128 mem split). I use RPIs for some time as servers but not as desktop. I tried to play video (with avc codec) with ...
W. Smith's user avatar
0 votes
0 answers
10 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
65 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
319 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
249 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