Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [ffmpeg]

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

Filter by
Sorted by
Tagged with
1 vote
3 answers
4k 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: ...
0 votes
1 answer
888 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-...
4 votes
3 answers
5k 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 ...
0 votes
1 answer
825 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. ...
3 votes
1 answer
4k views

Streaming RTSP feed over DLNA

I have a 'smart' TV that has a very limited set of functions, one of them being it can stream videos from any DLNA server on the LAN. I have an RTSP stream on the network that I would like to view on ...
0 votes
1 answer
40 views

multiple (?vlc?) videos on the one screen

I would like to display (say 4) videos on the one screen. I have planned to use vlc running in an xterm. This would have given me access to the geometry X operations to put the xterm windows where I ...
2 votes
1 answer
4k views

How do I set up live Twitch streaming from RetroArch on a Pi 3?

I have been tinkering with Raspberry Pi's for a few years now and have some experience with installs, command line and using SSH, etc. I currently have Pi 3 with Retropie 1.6.3 installed and I can SSH ...
0 votes
1 answer
560 views

AVFrame YUV420P to dispmanx VC_IMAGE_YUV420

I'm using ffmpeg for decoding a video with h264_mmal encoder. And all test videos are in YUV420P color encoding. Also I'm using dispmanx for drawing frames from a video. Only problem which I have is ...
8 votes
2 answers
3k views

ffmpeg performance degrades over time

I am using a Pi Zero W with the Pi camera (noir) to stream live to Youtube using ffmpeg. The command line I am using is: raspivid -o - -t 0 -h 720 -w 1296 -fps 24 -b 6000000 | ./ffmpeg -ar 44100 -ac ...
1 vote
1 answer
327 views

audio video out of sync / framerate issue?

I am trying to sync the raspberry pi camera (revision 1.3) to an external microphone. The sync is fine for the first 5 minutes or so, but around the 20 minute mark, the difference becomes really ...
2 votes
1 answer
15k views

Raspberry pi Webcam stream with ffmpeg

Hello i am using ffserver with ffmpeg to stream a video with audio from web cam. The ffserver.conf file is : Port 80 BindAddress 0.0.0.0 MaxClients 10 MaxBandwidth 50000 NoDaemon <Feed webcam.ffm&...
0 votes
1 answer
23 views

FFMPEG hangs intermittently before audio recording starts

I'm trying to get FFMPEG to pull both audio from my webcam. It works fantastically, when it does, but is intermittent. I am using the following command: ffmpeg -report -y -f alsa -channels 1 -ar ...
0 votes
1 answer
3k views

Problem with every even photo using USB camera

I use Raspberry Pi 3 with Linux RaspberryPi 4.9.59-v7+ onboard together with Logitech HD Webcam C270. It works quite well, I am able to preview video stream in Qt V4l2 Test Utility, take a photo with ...
0 votes
0 answers
49 views

ffmpeg consume 252% of raspberrypi CPU

I am using raspberry pi-4 8GB to take input from a video device /dev/video0 and output it over a network rtp://192.168.10.10:6001 I am using following ffmpeg command ffmpeg -f v4l2 -i /dev/video0 -c:v ...
0 votes
0 answers
53 views

Stream two webcam video from Raspberry Pi 0 W to mac over wifi

I have to stream two webcam videos from a Raspberry Pi 0 to a mac book air. The webcam is a Trust Trino HD webcam. Ideally the streams shall have the maximum possibile frame rate (5fps), resolution (...
0 votes
0 answers
40 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 ...
0 votes
2 answers
10k views

Converting AAC to MP3

I'm trying to convert AAC to MP3 on a Pi using ffmpeg. This is my command: ffmpeg -i audio.aac -acodec mp3 -ac 2 -ab 160 audio.mp3 It works fine on my Ubuntu machine. But on my Pi it states this: ...
1 vote
0 answers
152 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 ...
1 vote
1 answer
140 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, ...
2 votes
0 answers
907 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 ...
1 vote
0 answers
857 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 ...
3 votes
1 answer
8k 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-...
1 vote
1 answer
84 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 ...
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 [...
3 votes
1 answer
6k 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 ...
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 ...
1 vote
1 answer
8k views

RPI-3: Performance issue on FFmpeg with mmal support

Issue: FFMPEG GPU/Hardware acceleration is not enabled on RPI. FFPlay is jittery, patchy and takes close to 100% CPU. Description: The video streaming of mpeg4 files is very slow (the video streaming ...
6 votes
1 answer
14k 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 ...
0 votes
1 answer
704 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 ...
2 votes
2 answers
4k views

Problems using bcm2835_v4l2 module w/ ffmpeg

I've run into some problems using the native bcm2835_v4l2 module on my Raspberry Pi Zero W (running Raspbian Stretch). The module is loaded and the associated video device is visible: $ v4l2-ctl --...
0 votes
0 answers
194 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 ...
1 vote
3 answers
12k 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....
0 votes
0 answers
433 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. ...
-1 votes
1 answer
2k views

Can I set the number of threads for FFMPEG on the Raspberry Pi 3 to 4 since it is a Quadcore?

I want to use the full potential of the Pi 3's Quad Core ARM. Right now my FFMPEG encoder is set to 1 Thread (settings from my Pi 2.) I'm curious if I can up the thread count to 4 since I have 4 cores ...
0 votes
1 answer
7k views

avconv for converting mkv to mp4

I would like to convert a video file from mkv to mp4. Usually (Debian 9, main laptop), I do: $ ffmpeg -i input.mkv -c:v libx264 output.mp4 On the other hand, on raspbian ffmpeg is replaced with ...
1 vote
2 answers
2k views

Tons of Bluetooth: hci0: Frame reassembly failed (-84) messages

Sorry in advance if the explanation is too general, I can attach code if needed... I'm working on a project where a python program is running in a device, and a Bluetooth socket is opened and ...
6 votes
1 answer
2k views

Stream video from camera using ffserver?

I'm trying to stream video from the camera module using ffserver. My server configuration is HTTPPort 8090 HTTPBindAddress 0.0.0.0 MaxHTTPConnections 8 MaxClients 4 MaxBandwidth 1000 CustomLog - #...
2 votes
1 answer
647 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 ...
0 votes
2 answers
468 views

"avplay audio.wav" generates error: "Could not initialize SDL - Unable to open a console terminal"

When I try to play an audio file using avplay on a raspberry pi3 running raspbian jessie, I get the following error. pi@raspberrypi:~/sounds $ /usr/bin/avplay clip1.wav avplay version 11.9-6:11.9-1~...
1 vote
0 answers
172 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 ...
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 ...
0 votes
0 answers
217 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 ...
1 vote
0 answers
452 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+ ...
1 vote
1 answer
1k 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 ...
1 vote
1 answer
650 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 ...
1 vote
0 answers
69 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 ...
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 ...
0 votes
0 answers
535 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 ...
1 vote
1 answer
3k views

FFMPEG and RPi picamera mp4 video recording

I'm trying to capture a .mp4 video using RPi + picamera and ffmpeg but I can't do this with this command raspivid -t 50000 -fps 25 -b 500000 -vf -o - | ffmpeg -i - -vcodec copy -an -f lavfi -r 25 -t ...
3 votes
1 answer
1k 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 ...