Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ffmpeg]

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

1
vote
1answer
50 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 ...
0
votes
0answers
26 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 ...
0
votes
0answers
10 views

Record video and audio from framebuffer

I'm trying to record in a video the actual content of the framebuffer along the audio currently outputted (alsa). For the video I'm using the following command: ffmpeg -y -f fbdev -i /dev/fb0 -vsync -...
0
votes
0answers
40 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 ...
1
vote
0answers
46 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/...
1
vote
1answer
127 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 ...
0
votes
1answer
99 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. ...
0
votes
1answer
584 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:...
0
votes
2answers
946 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 ...
2
votes
1answer
250 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 ...
0
votes
0answers
78 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: ...
0
votes
1answer
178 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 ...
0
votes
0answers
45 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? ...
0
votes
0answers
448 views

Broadcasting a local RTSP video stream with a Pi 3

I would like to use an RPi 3 to broadcast a local RTSP stream from a wireless cam to YouTube Live. OBS accomplishes this on my Macbook but OBS doesn't appear to work on the Pi and the solutions I've ...
1
vote
0answers
484 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 ...
1
vote
0answers
483 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 ...
0
votes
0answers
818 views

How to stream low latency camera feed to RTMP server

Are there any optimizations or recommended techniques for streaming a camera feed from a raspberry pi to an RTMP server. Currently I get a 1-2 second lag when I run: raspivid -n -t 0 -w 1280 -h 720 -...
0
votes
1answer
196 views

Straming Raspberry camera to own Apache Server - Command not found

I am planning to implement a camera video stream from the Raspberry Pi to its own Apache server. I trying to solve this for a week now and i am pretty frustrated by now. I came across this tutorial ...
0
votes
1answer
152 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 ...
0
votes
0answers
267 views

Efficiently add text overlay to video feed on a raspberry pi zero w?

I would like to add a text overlay (the date and time) to a live camera stream that I'm capturing with a raspberry pi zero w. At the moment -- without any text overlay -- my pipeline is basically: ...
0
votes
1answer
300 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
1answer
2k 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 ...
0
votes
0answers
136 views

Stream desktop capture and audio to YouTube (or elsewhere)

I would like to stream the Raspbian desktop and audio to YouTube. There are many guides on streaming webcams; but I can't figure out how to get my Pi's screen and audio into ffmpeg (or avconv) and ...
0
votes
1answer
655 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
0answers
255 views

P2P streaming on raspberry pi 3 using ffmpeg and h264

I am new on using ffmpeg on Raspberry pi 3. I want to implement P2P streamer application for Raspberry pi 3. For now I am just using localhost. I wrote a code on my laptop elitebook 8470p. The code I ...
4
votes
1answer
799 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 ...
2
votes
0answers
489 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 ...
1
vote
1answer
82 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-...
0
votes
1answer
2k 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
0answers
183 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 ...
1
vote
2answers
607 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 ...
0
votes
1answer
182 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
1answer
1k 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 e.t.c... I currently have Pi 3 with Retropie 1.6.3 installed and I can ...
1
vote
1answer
4k 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: ...
0
votes
1answer
405 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 ...
1
vote
0answers
1k 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 ...
1
vote
1answer
3k 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 ...
3
votes
1answer
353 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:...
1
vote
2answers
2k 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
1k 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 ...
6
votes
1answer
1k 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 ...
0
votes
2answers
443 views

Is there a linux distribution with prebuilt ffmpeg & alsa

I'm working on a camcorder example where I need ffmpeg & alsa. Before I actually bake an os for this, just looking around if there is a Distribution that gives ffmpeg & alsa preinstalled. ...
3
votes
2answers
13k 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 ...
7
votes
1answer
436 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 ~/...
1
vote
1answer
456 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. ...
4
votes
2answers
1k 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 ...
1
vote
4answers
2k 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 ...
0
votes
1answer
696 views

Camera adaptative live streaming

I would like to stream my Pi 2 camera content to web browsers, with player hosted on the same pi. I have built libav with hardware encoding, and nginx with rtmp module. Everything seams to work : ...
0
votes
1answer
2k views

fswebcam: Unable to find a compatible palette format

I am unable to use my webcam. Running fswebcam out.png, I get the error: Unable to find a compatible palette format. What would be the origin of the error and how to fix it? It can be a missing ...
2
votes
0answers
543 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 /...