Questions tagged [h264]

h264 is a widely used video compression codec standard

This site provides a more detailed overview of the codec's usage.

33 questions
7
votes
3 answers

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…
Gotschi
  • 608
  • 2
  • 7
  • 16
4
votes
1 answer

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 trying to use the h264 hardware encoder and stream…
dnebrich
  • 41
  • 2
4
votes
1 answer

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: Raspberry Pi 3B running Debian, updated to…
Stephen
  • 41
  • 1
3
votes
1 answer

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-kms-v3d According to my research, it would seem…
domsson
  • 53
  • 1
  • 1
  • 10
3
votes
3 answers

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 I would like to use ffmpeg to stream the footage…
Archimaredes
  • 139
  • 1
  • 3
3
votes
1 answer

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 video from the Pi camera, draw the time and the…
Malvineous
  • 2,109
  • 15
  • 25
2
votes
0 answers

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 Windows (it plays every image for 5 seconds), but…
2
votes
0 answers

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: omxplayer myvideo.h264 resulted in highly…
rmarques
  • 111
  • 1
  • 8
2
votes
0 answers

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 other codecs, DIVX or DX50, but I hope to…
Technico.top
  • 1,426
  • 13
  • 20
2
votes
2 answers

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 playbacks but now has defaulted to the screen you…
2
votes
1 answer

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 and ramping it up to 1080p 30 frames once motion is…
Ivan Koshelev
  • 171
  • 1
  • 5
2
votes
1 answer

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 -l -o - | nc -l -p 5000 It works fine and I can…
weirdgyn
  • 122
  • 2
  • 15
2
votes
1 answer

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 which process exactly is using it, but it's not…
reddot
  • 121
  • 2
1
vote
0 answers

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 on to a central PC (via USB) to be saved and…
KPM
  • 216
  • 1
  • 6
1
vote
2 answers

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 anyone know of any way to do this? Even in VLC with…
Znerox
  • 11
  • 1
  • 2
1
2 3