Questions tagged [ffmpeg]

a free software package including libraries and programs for handling multimedia data.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

Raspberry Pi Camera feedback freezes when moving NEMA 17 stepper motor with A4988 stepper motor driver

I have a Raspberry Pi with a camera module and a NEMA 17 stepper motor connected to it. When I run the command ffplay /dev/video0, the video runs perfectly. However, whilst the video is running, and I ...
Broteen Das's user avatar
0 votes
1 answer
2k views

Streaming straight from libcamera-vid to RTMP on Pi Zero 2 W: FFmpeg not needed?

I was able to figure out all of my libcamera stream settings needed to stream video from my Camera Module 3 and audio from a USB microphone in my RPi Zero W 2 straight to YouTube, which is as follows: ...
Patrick Hennessey's user avatar
0 votes
0 answers
87 views

Performances increase for ffmpeg on Raspberry Pi

Situation I am using ffmpeg to create GIFs from MKV files, adding subtitles from SRT files. My command usually looks like this: ffmpeg -y -ss <start_time> -to <end_time> -copyts -i <MKV ...
GregoirePelegrin's user avatar
2 votes
0 answers
578 views

ffplay udp streaming error and quality issue

I am receiving UDP streaming through ffmpeg ffplay, but there is a problem that the video is broken. I'm using a GoPro Hero 10 camera, but I can't receive more than three camera streams because the ...
SangEun Shin's user avatar
1 vote
0 answers
727 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
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
1 vote
1 answer
69 views

Unknow error uploading generating video thumbnail via PHP-FFMpeg

I'm running Rasbian os + PHP 7.3 on Nginx and I'm facing a problem when uploading and generating a thumbnail of a video file. I have FFMpeg on my OS, I chmod 777 the folders, I even visudo and added ...
rijotech's user avatar
  • 111
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
0 votes
0 answers
1k views

No device available for decoder: device type vaapi needed for codec h264

I am currently trying to decode video using H/W accel on my raspberry pi 4 (Raspberry Pi OS Lite 64bit). However it throws the following error and stops decoding $ /home/pi/bin/ffmpeg -hwaccel vaapi -...
user89978's user avatar
1 vote
1 answer
113 views

Streaming video+audio from Pi4 to Pi4 via ethernet

I would like to stream video & audio from one Pi4 (equipped with mic/cam) to another Pi4 (equipped with screen/speaker) via ethernet (cable connected directly between them). I've looked around, ...
user avatar
0 votes
1 answer
761 views

ImportError: librsvg-2.so.2: cannot open shared object file: No such file or directory

I am having issues with the rsvg2 library which is a dependency of ffmpeg and opencv. I have installed ffmpeg using the standard sudo apt install ffmpeg and Python-opencv with pip install opencv-...
mandulaj's user avatar
  • 101
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,814
0 votes
0 answers
187 views

Is RPI B+ capable of ffmpeg raspivid and aac audio at speed 1x?

since a longtime I do livestream to youtube or twitch with 'copy' codec of raspivid (1280x720@25) and sound from /dev/zero Now I try to add an audio track from chinese usb mic. If I use copy audio ...
Overnuts's user avatar
  • 119
0 votes
0 answers
383 views

Live streaming camera and microphone input on a Raspberry Pi 4

I got a a Raspberry Pi camera and a USB microphone connected to the Raspberry Pi 4. All of them are working seperately. But now, I would like to stream them live and combined for accessing it in HTML. ...
user11748507's user avatar
0 votes
1 answer
504 views

Fast video recording with webcamera

I want to connect at least one webcamera to RPi3 and record smooth 1080p 30fps video. RPi camera is capable of that even on RPi Zero. But everything I tried on RPi 3 gives maximum 8 fps on 720p. Is ...
Mega789's user avatar
0 votes
1 answer
1k views

I have a Logitech c930e camera, what is the highest frame rate I can get at max. resolution? (i.e. 1920x1080)

I have a c930e camera: $ v4l2-ctl --list-devices Logitech Webcam C930e (usb-0000:00:1d.0-1.3): /dev/video0 I checked the capabilities like so: $ ffmpeg -f v4l2 -list_formats all -i /dev/video0 [...
Alexis Wilke's user avatar
1 vote
0 answers
141 views

ffmpeg on Raspberry Pi unable to stitch many photos into video

I'm working on a program in which I have a folder full of images, named in the form image0000.jpg, image00001.jpg, and so on, and I want to stitch these images together into a video. To do this, in ...
Alex K's user avatar
  • 111
0 votes
0 answers
213 views

How do I disown a youtube-dl process and have it finish multiple downloads?

I am using youtube-dl to download an entire playlist of videos. I would like to do this overnight as the videos are quite long. The first video continues to download after being disowned, but the ...
TwentyCharMax's user avatar
6 votes
1 answer
13k views

RPI 4 - ffmpeg - how to get hardware h.264 decoding to work?

I have had good success on the RPi 3 using ffmpeg to decode h.264 streams from various Ethernet video sources. However, on the RPi 4, when I include the -c:v h264_mmal directive, it appears to ...
Ryan Griggs's user avatar
1 vote
1 answer
634 views

Omxplayer live RTSP / ffmpeg record

I have a problem on my rpi 3 b+, when i record the screen using this ffmpeg -f x11grab -r 30 -s cif -i :0.0 /tmp/out.mpg it was able to record it properly but when omxplayer plays RTSP. it doesn't ...
user114131's user avatar
1 vote
0 answers
67 views

What's the maximum rf fm signal that i can generate using raspberry pi?

I am planning to create a raspberry pi based monitoring system where my raspberry pi acts as a transmitter. I learned that we can use pi to generate FM signals from RPiTX project. I am planning to ...
Madhevan Ramalingam's user avatar
2 votes
1 answer
593 views

Stream camera input over 5G WiFi to multicast address using FFMpeg

I am trying to stream my Intel RealSense D435 RGB camera input to a multicast address on my network. Please note, video streaming, encoding, is very new to me - I do not understand much, when ...
CybeX's user avatar
  • 141
2 votes
0 answers
4k views

Broadcast camera feed to network using Raspberry Pi 4 with FFMpeg

Good day all So I have to try to stream my Intel Realsense D435 camera to my local network. After reading up on many different sites, tutorials, etc I figured out the following: What can I do with ...
CybeX's user avatar
  • 141
0 votes
0 answers
462 views

Untrunc / repair mp4

I have been trying all day to get untrunc installed on my Raspian (Pi 4) but have not made any headway. https://github.com/ponchio/untrunc is what I've been following. After that compile step, I ...
Jambo069's user avatar
3 votes
1 answer
957 views

Unable to stream live on Youtube using Raspberry Pi Zero W using ffmpeg

I am trying to stream live on Youtube using a Raspberry Pi Zero W and a raspicam. I have installed ffmpeg using the instructions in this link. I am trying to start the streaming on Youtube using the ...
Prashant's user avatar
0 votes
0 answers
45 views

How can I download FFMpeg git? I keep getting permission denied error

I tried many ways to download FFMpeg but to no avail. http://jollejolles.com/installing-ffmpeg-with-h264-support-on-raspberry-pi/ I used this website as reference and I managed to do everything up to ...
user109239's user avatar
1 vote
0 answers
63 views

minidlna ‘PIX_FMT_RGB32_1’ undeclared error with libavutil

I'm trying to compile the latest miniDLNA code from https://github.com/folhabranca/minidlna on raspbian jessie (8) I installed libavutils and libavutils-dev from respositories But when I make I get: ...
Ariyan's user avatar
  • 111
1 vote
1 answer
88 views

Avconv streaming to URL - need help

I'm trying to learn as I go but haven't managed to come up with the answer to my issue here. I'm trying to stream to a URL using the 'pi-camera-connect' package and the 'avconv' package. The video on ...
ApplowPi's user avatar
  • 121
1 vote
3 answers
11k views

Read ip camera stream video on python using opencv3

I installed opencv3 installation link on my raspberrypi 3 and i've tested this, everything is ok, but when i try to read the ipcamera video stream encountered this error self.stream = cv2....
Hamed's user avatar
  • 299
0 votes
0 answers
35 views

Is it possible to gradually save data while recording. In order not to lose them in case of power failure?

I use the ffmpeg library to record audio and video. If a power failure occurs, the video file becomes 0 bytes. How can I record, so as not to lose data? my ffmpeg configuration ffmpeg \ -hide_banner ...
sa_mv's user avatar
  • 1
1 vote
0 answers
424 views

Audio/Video drift when streaming to Twitch using FFMpeg

I'm trying to build a Twitch streaming box to stream from an input device. Link to the project is: https://github.com/jimbobbennett/RaspberryPiTwitchStreamer My setup is: Raspberry Pi Model 3B+ ...
JimBobBennett's user avatar
1 vote
0 answers
168 views

How to merge the audio stream incoming from other system

The ffmpeg is running on my RPi 3B, currently. My RPi has USB H.264 CAM and USB audio converter and is sending live stream to YouTube with rtmp. Some case, audio source is coming about 150m far from ...
Paul Lee's user avatar
1 vote
1 answer
623 views

FFMPEG Raspivid Videos are shorter than they are supposed to be

I am recording and piping my video with the following command : raspivid -w 1920 -h 1080 -fps 25 -b 7000000 -o - -t 0 | ffmpeg -re -f h264 -framerate 25 -i - -vcodec copy -y -r 25 -strict ...
huialx's user avatar
  • 11
0 votes
0 answers
163 views

SIP video call Performance issue

I'm facing performance issue during video call made between RaspberryPI3 and Laptop, the video image from RaspberryPI3 are not running smooth and the overall CPU usage consumes more than 80%. Here ...
user73636's user avatar
  • 117
1 vote
0 answers
364 views

Cross-compiling for Raspberry Pi 0/1

I am trying to cross compile FFmpeg for a Raspberry Pi 0/1 running Raspbian Strech. I am following this guide on the official site but I have come to a standstill. Although I am trying to compile ...
David's user avatar
  • 11
0 votes
0 answers
868 views

RPi Zero W (Jessie) ffmpeg illegal instruction

Trying to build and install ffmpeg with hardware encoder and rtsp streaming enabled. Attempted to follow instructions here: (https://github.com/KhaosT/homebridge-camera-ffmpeg/wiki/Raspberry-PI) but ...
Matthew Wong's user avatar
0 votes
0 answers
553 views

FFMPEG video rendering on raspberry pi 3b+

I'm currently planning on making a little GIF making machine. After a button press, the rPi records a 5 seconde video from a 720p USB camera. Then, the rPi should chroma key the video and then convert ...
Timothy Lukas H.'s user avatar
1 vote
1 answer
1k views

ffmpeg - Video Audio Capture with Compression

I am running ffmpeg script that captures webcam video and microphone audio and then uses video compression before saving the audio/video mp4 file. The script works on my desktop but cause error on my ...
sirshakir's user avatar
1 vote
1 answer
896 views

FFMpeg doesn't have tools/zmqsend

We are trying to use zmqsend (it's part of the ffmpeg repository) to communicate with a ffmpeg instance. On Raspbian, ffmpeg is configured with --enable-libzmq, and libzmq-dev is installed, but ...
whoKnows's user avatar
  • 121
1 vote
1 answer
8k views

How to increase usb webcam fps?

To record video from my USB webcam I use ffmpeg with v4l2 driver (command below). ffmpeg -f v4l2 -r 30 -s 640x480 -an -sn -i /dev/video0 -f avi temp Unfortunately fps is too low for 640x480 (around ...
Данил Вагапов's user avatar
0 votes
0 answers
774 views

raspicam TCP video streaming over ssh - almost there.... but need help

I am trying to pipe raspivid over ssh to my main computer, and then via gstreamer send the stream to a dummy video device (thanks to V4l2loopback) environment : v4l2loopback version: 0.12.0 kernel ...
ghislain airieau's user avatar
0 votes
0 answers
655 views

Getting low FPS while using x11grab ffmpeg

Question : Why I am getting ~7 FPS even I have specified 30 ? I am using raspberry pi 3 and compiled latest soruce code from the GIT and still getting low fps(~7) while using below ffmpeg command ...
Casual Coder's user avatar
1 vote
0 answers
702 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
3 votes
1 answer
2k views

Raspberry Pi Zero hardware based video encoding

I'm trying to build a dashcam with a Raspberry Pi Zero with an official Raspberry Pi Camera (version 2) in an official Raspberry Pi Zero case mounted with a old GPS device cradle. I installed motion ...
Gerard de Jong's user avatar
0 votes
1 answer
787 views

Retroactive audio recording/continuously record audio, save last X minutes on command?

I'm trying to set up my Raspberry Pi to continuously record the last X minutes of audio until given the command to save it to a file. The only comparison I can make is an NVIDIA Shadowplay for audio. ...
Cowbell's user avatar
  • 21
1 vote
1 answer
3k views

Pi3 B+ FFMPEG encode x265 very slow

I just bought a RPI3 B+ with the hopes of using it as a media encoding box. I built ffmpeg, and use the following to transcode media from h264 to h265 ffmpeg -i "$i" -c:v libx265 -crf 28 -c:a aac -b:...
Eliezer's user avatar
  • 113
0 votes
2 answers
6k views

Installing MPV with FFmpeg + MMAL: Could not create EGL surface!

I would like to build mpv from source for the raspberry pi. This is turning out to be quite difficult. Error pi@raspberrypi:~ $ ./mpv-build/mpv/build/mpv --hwdec=mmal --vo=rpi --log-file=~/mpv.log ...
Alter's user avatar
  • 125
2 votes
1 answer
1k views

MPV with MMAL does not open application window

I've built mpv on the raspberry pi 3b+ (stretch-2018-06-27) using the following procedure from: No OpenGL hardware rendering using mpv Quick & Easy: Hardware Accelerated MPV on Raspberry Pi 1/2/3 ...
Alter's user avatar
  • 125
1 vote
0 answers
436 views

Audioinjector streaming over RTP input errors: "hw:0,0: Protocol not found", "Unknown input format: 'alsa'"

Using a RPI 3B running Debian Jessie, I've been trying to get a simple stream of the "flatmax" audioinjector's onboard mic over RTP to a VLC player. I've tried many different commands such as: ...
Josh HP's user avatar
  • 11
0 votes
1 answer
709 views

mpv error - could not get dispmanx

I've tried to install mpv for raspberry pi using mpv-build (with maal, 256 graphics mem) because I would like to modify the code. it seemed like it was finally a success until I tried to run ...
Alter's user avatar
  • 125