Questions tagged [ffmpeg]

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

Filter by
Sorted by
Tagged with
6
votes
1answer
7k 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 ...
6
votes
1answer
1k views

Arecord->FFMPEG works but FFMPEG w/ ALSA stutters?

I am trying to stream audio from my Pi Zero and my I2s MEMS mic. I would like to stream using FFMPEG and ALSA (which I have already compiled) but I'm running into stuttering issues. FFMPEG + ALSA ~/...
6
votes
1answer
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 - #...
6
votes
2answers
2k 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 ...
5
votes
1answer
9k views

Sync Audio & Video From Pi Camera & USB Microphone

I am trying to stream low-quality audio & video from my Raspberry Pi to another device. I have a Raspberry Pi camera & a USB microphone. Both devices work separately but i cannot seem to get ...
5
votes
1answer
3k views

How to add audio as an input for ffmpeg capturing?

I've been lurking for a while now and I finally created an account because I'm stuck on this particular problem. I've got a raspberry pi 3 with a camera attached to it. I'm able to capture video as an ...
4
votes
1answer
3k views

RPI2 USB webcam capture low FPS

I want to capture a USB webcam with my RPI2. I'm using a Microsoft Lifecam HD-3000. The problem is that I can't get 30 FPS with a resolution 640x480. I think this is abnormal for a quad-core CPU. On ...
4
votes
2answers
5k views

What is the best container to put h264 into and how do I do it?

I've recorded some video with my Raspicam using: raspivid --timeout 5000 --output video001.h264 --width 1080 --height 720 --bitrate 10000000 --framerate 24 I've converted this to mp4 using: ffmpeg -...
4
votes
1answer
3k views

FFMPEG Raspberry Pi to Facebook Live Stream

So I've been streaming video to YouTube just fine with the below command. I then wanted to do the same thing with Facebook on my page, and I get a strange Authorization error. On the Facebook side, ...
3
votes
1answer
8k views

FFMPEG: Unknown input format: 'alsa'

I have a Raspberry Pi 3 and I keep trying to install FFMPEG, but whenever I try to record audio through my USB webcam's mic with sudo ffmpeg -f alsa -i hw:1 -t 30 out.wav I get the following error: ...
3
votes
2answers
2k views

Merge/stitch more than one videos using FFmpeg

I'm new to the community, as well as novice in the Pi family. I want to stitch several videos (for example 5). I tried using FFmpeg, but the output was only first input video file. I was running ...
3
votes
1answer
5k views

No OpenGL hardware rendering using mpv

In order to have a hardware-accelerated mpv on my RPi 3 (running Raspbian 8.0) I followed this Tutorial using the »Build it yourself« section and the scripts from this mpv repository. However, when I ...
3
votes
1answer
675 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:...
3
votes
1answer
2k 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 ...
2
votes
4answers
3k views

Adjusting keyframe rate ffmpeg Logitech C920 to YouTube Live

I'm trying to use ffmpeg to stream output from a c920 webcam to YouTube live on a Raspberry Pi. Unfortunately, YouTube Live returns this error when I start the stream: Please use a keyframe ...
2
votes
2answers
21k views

Raspberry PI 3 as NVR

I'm planning to do a NVR with a Raspberry Pi 3. I want to record video from 8 IP cameras at 640x480@24fps with motion detection implemented in the Raspberry Pi (using motion or OpenCV probably) so the ...
2
votes
1answer
1k views

Can we cut the videos using FFmpeg?

I am working on a hobby project using Pi 3. I have bunch of videos (approx 4-5 min long) recorded from Pi camera. Now, I want to cut each video (6-7 seconds) and then want to stitch them back to back. ...
2
votes
1answer
619 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 ...
2
votes
1answer
256 views

What is ffmpeg "rpt1" version?

When I run apt-cache show ffmpeg, there are two versions available. One of them has "rpt1" on the end of the version number. I can't find any info about this; what is the difference between the two? ...
2
votes
2answers
5k views

raspbian + libavcodec + which source repository

I have a Raspberry Pi 2 which is running Raspbian (Noobs 1.9.2). I'm able to install the libavcodev-dev package with the following command: sudo apt-get install libavcodec-dev It seems libavcodec ...
2
votes
1answer
372 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
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 ...
2
votes
1answer
13k views

Best FFMPEG configuration for recording Video+Audio with RaspberryPi and USB WebCam

I've spent so much time trying to figure out how this FFMPEG and their libraries work :( I have a RaspberryPi 2B and a Logitech USB Webcam. Here is the input from FFMPEG list from my /dev/video0: ...
2
votes
1answer
2k views

Delay Problem in Audio/Video when Multiplex in One through Python

I am writing a program in python on RaspberryPi, to record video on a Picam and capture audio through a Microphone attached with USB AUDIO DEVICE. On combining both files through ffmpeg, till 30sec ...
2
votes
1answer
5k views

best ffmpeg settings for iSpy server

At the moment I have setup streaming via nginx rtmp-module wrapped in FLV h264. This works really great for integrating into a website. But now I want to actually record and do motion analysis and ...
2
votes
0answers
2k views

Streaming audio on the Raspberry Pi Zero W with ffmpeg

I have a problem with ffmpeg giving no audio when recording using alsa. Does anyone know how to get a Raspberry Pi Zero W to record and stream audio with ffmpeg using alsa? I have a project where I ...
2
votes
0answers
837 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 ...
2
votes
0answers
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 ...
2
votes
0answers
900 views

ffmpeg on raspberry pi

Whenever I use ffmpeg inside a Python script using subprocess it doesn't work. Here is the code I am using: import subprocess subprocess.call('ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /...
1
vote
1answer
3k views

HD-SDI video out from Pi3?

Is it possible to get HD-SDI video directly out from a Raspberry Pi (via breakout board or something)? I have seen an Arduino SDI camera controller, but I am looking for video out. I have also found ...
1
vote
1answer
9k views

Webcam capture into mp4 or mov (ffmpeg is very slow at this)

I'm using ffmpeg on my Raspberry Pi (running on Raspbian) to record a 5 seconds long video at 12 fps from my webcam. It's not the Raspberry Pi dedicated webcam, just a regular USB one. This is the ...
1
vote
1answer
241 views

Can armhf compiled software run on armel os?

I am setting up my media server on my raspberry pi 3 (armv7) using docker. I downloaded a image of a media server and installed it, the problem is that image uses Opensuse and if I run dpkg --print-...
1
vote
2answers
5k views

ffmpeg video file with v4l2 driver

I want to save a video file from the raspberry camera, by using the v4l2 driver and ffmpeg. v4l2-ctl is able to capture the video, though ffmpeg is not. When i run the command: ffmpeg -f video4linux2 -...
1
vote
1answer
833 views

omxplayer cannot play yuv444p?

I have encoded videos from image sequences with ffmpeg, some play in omxplayer, some don't. Looking at them with -I shows they use different pixel format, the one that works uses yuv420p, the one that ...
1
vote
1answer
3k views

Raw video dump to file using no encoding with usb webcam

I would like to dump raw video (and hardware encoded mjpeg) to be dumped into a file using usb webcam. On following command, v4l2-ctl --list-formats-ext ioctl: VIDIOC_ENUM_FMT Index : ...
1
vote
1answer
960 views

How to install TuringMachine's OMXPlayer?

Could someone please provide instructions on how to install TuringMachine's OMXPlayer? I think he expected zero people to download it. That's the only explanation of have for the terrible ...
1
vote
3answers
10k 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....
1
vote
1answer
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:...
1
vote
2answers
3k 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 --...
1
vote
2answers
351 views

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

I upgraded my RPI2 to use Raspbian Jessie. (NOOBS 1.9.0) I also installed OpenCV 2.4.9.1 package. (It is the default package from apt-get install) Now, I have a problem while recording video with ...
1
vote
1answer
3k views

FFMPEG from Raspberry Pi to YouTube plays too fast, then buffers?

I've been using a RPi2 to encode live video from the PiCam module to stream to YouTube. The stream is up and running, but of course there are issues :). First and foremost the video stream on ...
1
vote
3answers
8k views

Subtitles embedding on video files, without re-encoding needed

I'm looking for a lightweight way to embed subtitles on my videos, in order to view them on video players such as embedded players on TVs or consoles, not supporting external subtitles loading such as ...
1
vote
1answer
460 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
1answer
70 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 ...
1
vote
1answer
527 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 ...
1
vote
1answer
553 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
1answer
5k 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 ...
1
vote
1answer
7k views

Create a RTSP stream using motion and a USB webcam

I've just set up a fresh RaspberryPi (Zero W) and started installing motion, in order to receive a livestream of my (old) USB webcam (Microsoft LiveCam HD-3000). I know this is a pretty old one but ...
1
vote
2answers
2k views

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

I have setup a RTSP monitor with a Raspberry Pi 3, using this tutorial: https://community.ubnt.com/t5/UniFi-Video/Tutorial-RTSP-Raspberry-Pi-B-Viewer-6-Cam-4-Cam/td-p/1536448 TLDR: it uses the ...