Questions tagged [ffmpeg]

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

It includes audio/video codecs, a container mux and demux library, and a command line program for transcoding multimedia files.

123 questions
8
votes
2 answers

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 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f…
Matt
  • 181
  • 1
  • 4
6
votes
1 answer

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 input but I don't know how to include…
Jessica Lee
  • 61
  • 1
  • 2
6
votes
1 answer

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 ~/special/ffmpeg/ffmpeg -report -f alsa -ar 48000…
6
votes
1 answer

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 - #NoDaemon File /tmp/feed1.ffm …
MetroWind
  • 161
  • 5
6
votes
1 answer

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 generate blank frames, as if the decoder never outputs…
Ryan Griggs
  • 189
  • 1
  • 1
  • 7
5
votes
1 answer

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 the audio & video to sync up. I am running Raspbian. I…
Markus
  • 153
  • 1
  • 4
4
votes
2 answers

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 -r 24 -i video0001.h264 -vcodec copy…
tompreston
  • 523
  • 1
  • 7
  • 7
4
votes
1 answer

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: ffmpeg version N-86882-gc0220c7 Copyright (c)…
Quintin B
  • 689
  • 1
  • 5
  • 20
4
votes
1 answer

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: Raspberry Pi 3B running Debian, updated to…
Stephen
  • 41
  • 1
4
votes
1 answer

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, my video just never previews at all, and says:…
Jeremy
  • 71
  • 2
  • 5
4
votes
1 answer

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 the RPI2 I get between 14-18 FPS and I'm not even…
ssinfod
  • 596
  • 3
  • 10
  • 20
3
votes
1 answer

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 with a motion eye Web UI to control it and set it…
Gerard de Jong
  • 203
  • 2
  • 5
3
votes
1 answer

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 the TV. I tried installing minidlna on the Pi and…
graphia
  • 31
  • 1
  • 2
3
votes
1 answer

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 some registration number recognition. I am using…
Piotr Kula
  • 17,336
  • 6
  • 66
  • 105
3
votes
2 answers

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 this code: ffmpeg -i video1.h264 -i video2.h264…
batman_rising
  • 61
  • 1
  • 8
1
2 3
8 9