Skip to main content
8 votes
Accepted

FFMPEG: Unknown input format: 'alsa'

Short answer run: sudo apt-get install libasound2-dev before attempting to configure and compile ffmpeg or anything where you need alsa support. Process for resolving similar build dependencies: ...
lossleader's user avatar
5 votes
Accepted

No OpenGL hardware rendering using mpv

You are on the right track by using mmal hardware decoding and the mpv-build repo (which makes things a lot easier). I found out a config that works pretty well for me, although it's specifically ...
rien333's user avatar
  • 166
4 votes

Can we cut the videos using FFmpeg?

concat demuxer You can use the concat demuxer to do this without needing to re-encode. First make a text file: file '/path/to/video_01.mp4' inpoint 30 outpoint 35 file '/path/to/video_02.mp4' ...
llogan's user avatar
  • 213
4 votes
Accepted

HD-SDI video out from Pi3?

There's no way to do this without using an external converter. The BCM2837 chip doesn't support an HD-SDI formatted output, which is fundamentally different to an HDMI formatted output. There's no ...
goobering's user avatar
  • 10.7k
3 votes
Accepted

ffmpeg video file with v4l2 driver

You need to select the input and output format. The v4l2 driver and the Pi Camera can stream video directly compressed with h264, which is convenient. By not specifying any format, you get some raw ...
Pietro Saccardi's user avatar
3 votes
Accepted

Raspberry PI 3 as NVR

The Pi3 has more CPU power than the A20 and bit more than the BananaPi. But in order to monitor 8 different cameras, it may not be enough, even if it is only for simple motion detection. ...
tlhIngan's user avatar
  • 3,372
3 votes

Adjusting keyframe rate ffmpeg Logitech C920 to YouTube Live

Here is how I pipe my HIK IP camera to youtube. This does NOT include audio, and is NOT a USB camera, but perhaps it helps [NOTE: Youtube requires an audio stream, even with a video only stream]. (...
Eric Kirchner's user avatar
3 votes
Accepted

Merge/stitch more than one videos using FFmpeg

You can't specify multiple inputs for FFMPEG like that. You can, however, use the concat option, as described in FFMPEG's documentation. There are different forms depending on whether you're joining ...
goobering's user avatar
  • 10.7k
3 votes
Accepted

omxplayer cannot play yuv444p?

The problem libx264 supports multiple "pixel formats", so ffmpeg will automatically attempt to use whatever most closely matches the input. However, some players can't decode anything other than yuv(...
llogan's user avatar
  • 213
3 votes

Can armhf compiled software run on armel os?

The most widely used architecture name for the armv7 instruction set is armhf. See this, this and this. ffmpeg has a build for armhf listed on the page you linked, your problem is the Linux ...
Nicolae's user avatar
  • 153
3 votes

Problems using bcm2835_v4l2 module w/ ffmpeg

This appears to be code for "you haven't assigned enough memory to the GPU". Using the raspivid command in this situation resulted in: mmal: mmal_vc_component_enable: failed to enable component: ...
larsks's user avatar
  • 653
3 votes
Accepted

What is ffmpeg "rpt1" version?

"+rpt1" indicates a package that has been modified by raspberry pi trading ltd. To find out exactly what they have changed you would have to look at the changelog in the package and/or download the ...
Peter Green's user avatar
  • 6,486
3 votes
Accepted

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

My rep is too low to comment. Have you tried lowering the video size, say starting at 320x240? I've streamed video from a Zero W before but never at the resolution you're using. That video size could ...
Paul's user avatar
  • 171
3 votes

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

As of July 2021 you can get half way there. There is a V4L2 M2M (memory to memory) interface that is used to access hardware encoders and decoders, and the Pi seems to have pretty good support for ...
Malvineous's user avatar
  • 1,884
3 votes
Accepted

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

So when the V4L2 interface started providing hardware encoding/decoding, the method for setting these options changed. Previously the options were global - you'd set them once on /dev/video0 or ...
Malvineous's user avatar
  • 1,884
2 votes
Accepted

Raspbian Jessie and OpenCV 2.4.9 "get_buffer() failed (-12 (nil))" error

The source lines that are printing the error are here in libav Digging further, you can see that -12 corresponds to ENOMEM, returned here in lavfilters-ffmpeg i.e. it practically does if (!buffer) ...
jdonald's user avatar
  • 2,914
2 votes

FFMPEG Raspberry Pi to Facebook Live Stream

try to quote target url: cd /opt/vc/bin/ && sudo /opt/vc/bin/raspivid -o - -t 0 -fps 30 -h 720 -w 1280 -b 4000000 -rot 270 -vs | /root/ffmpeg/ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f ...
Santa77's user avatar
  • 21
2 votes

Merge/stitch more than one videos using FFmpeg

The -i flag just defines an infiles. You need to define what you are going to do with those infiles, rather than simply exporting them into your outfile. In view of that, according to ffmpeg ...
anonymous2's user avatar
2 votes
Accepted

Adjusting keyframe rate ffmpeg Logitech C920 to YouTube Live

I managed to get it to work on YouTube Live with the following command: ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero \ -f v4l2 -input_format h264 -i /dev/video0 -...
Dan's user avatar
  • 41
2 votes

raspbian + libavcodec + which source repository

Another method similar to the one mentioned by @thingian is apt-cache policy package_name It will show something like this: pi@raspberrypi:~ $ apt-cache policy emacs emacs: Installed: 46.1 ...
sir_ian's user avatar
  • 980
2 votes
Accepted

Pi3 B+ FFMPEG encode x265 very slow

The Raspberry Pi has no accelerators for H.265. The Raspberry Pi can accelerate H.264 in both directions (encode/decode) by default. ffmpeg calls the accelerated decoder "h264_mmal" and the ...
flakeshake's user avatar
  • 6,213
2 votes

Raspberry Pi Zero hardware based video encoding

I had exactly the same idea to you. And I have the same problem with motioneyeos. After I try this, it works very well. But I need to add a RTC module to it to keep it works with correct time. I didn'...
Trung Nguyễn Hữu's user avatar
2 votes

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

Maybe the problem is that you are using x264 to encode the stream. The x264 is a software H264 encoder, and the pi is not fast enough for realtime software H264 encoding. You can try with the pi's ...
soyer's user avatar
  • 151
1 vote
Accepted

avconv for converting mkv to mp4

Your Raspbian must be old Raspbian Jessie (backports), Raspbian Stretch, and newer use ffmpeg from FFmpeg. Anything older uses the dead counterfeit "ffmpeg" from the Libav fork, and/or avconv which ...
llogan's user avatar
  • 213
1 vote
Accepted

Using ffmpeg to capture whatever is being globally sent to video output (ie: hdmi output)

UV4L offers a driver named "raspidisp" that captures the screen and offers a /dev/video device for use with ffmpeg or avconv.
kwasmich's user avatar
  • 2,702
1 vote

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

A workaround may be to use sudo, e.g. /usr/bin/avplay clip1.wav. This error appears to occur when there's some sort of permissions error with /dev/console and/or /dev/tty* for the current user. sudo ...
Fred's user avatar
  • 4,562
1 vote

RPI-3: Performance issue on FFmpeg with mmal support

After working some frustrating days on same problem, I came to a conclusion: It seems that ffmpeg-versions > 3.1.x are not able to use accelerated (mmal) decoding anymore! I compiled on rpi3 with ...
sagiadinos's user avatar
1 vote

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

Try using this command vlc "Humvee_Large.h264":sout=#rtp{sdp=rtsp://:8554/} :sout-keep If you can access GUI, try using VLC's GUI streaming setup.
pauliucxz's user avatar
  • 489
1 vote

How to add audio as an input for ffmpeg capturing?

For capturing audio, first, add a microphone module or a camera with an inbuilt microphone. I have already answered a similar question - https://raspberrypi.stackexchange.com/a/66491/60723 Follow ...
Shreyansh's user avatar
  • 171
1 vote

Raspberry PI 3 as NVR

Have you tried below.. I just came across it and will be giving a try in couple of days.. http://www.techrapid.co.uk/2017/04/turn-raspberry-pi-into-nvr-or-dvr-with-motion.html?m=1
Nilesh Deshmukh's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible