FFmpeg saving rtmp live stream cuts off after 3 minutes

I was playing with ffmpeg and was able to save a live stream to a file. The command to do so is: ffmpeg -re -i "rtmp://<ip addr>/livestream live=1" -f h264 test.flv However, I have tested this...

ffmpeg rotate and resize

I'm trying to resize a movie and to rotate it counter-clockwise using ffmpeg. I can achieve one or the other ok individually ffmpeg -i MVI_8189.MOV -vf "transpose=2" -ss 00:00:12 -t 00:00:05...

ALSA buffer xrun induced by low quality source in ffmpeg capture

I am attempting to transfer some old Video 8 tapes to my computer, though an EasyCap USB stick and the motherboard's sound line-in, on Ubuntu. I believe the arguments are correctly laid out below...

FFMPEG android is processing slow

I'm using https://github.com/WritingMinds/ffmpeg-android-java as my framework for FFMPEG I'm trying to convert an image to a video using this command ffmpeg -y -loop 1 -i input.jpg -strict -2...

Issue trying to stream RTSP to RTMP (live) through NGINX

I want live RTMP streaming through nginx. I setup this server on a public ip (linux - CentOS), using this tutorial: https://notehub.org/rcfdu. My target is: RTSP source -> transcode to RTMP ->...

Recording desktop with gdigrab ffmeg to mp4 file with too high video_size don't working

I try to recording my desktop with ffmpeg using the command : ffmpeg -f gdigrab -framerate 10 -video_size 1920x1200 -i desktop -pix_fmt yuv420p -vcodec libx264 -preset ultrafast output.mp4 The...

FFMPEG : custom sequence input images

I created a video from a set of images. The command look like: ffmpeg -i bg.jpeg -i img_%d.png -filter_complex overlay=5:H-h-5[b]-shortest testvid.mp4 Problem: The input -i img_%d.png means...

Send chunks from MediaRecorder to server and play it back in the browser

With the following code in NodeJS I'm able to play a webm file served from server: app.get('/video', function(req, res){ res.writeHead(200,{ 'Connection': 'close', ...

Accessing RTSP Server hosted on AWS over internet

I am trying to access my EC2 Ubuntu instance from AWS using gaminganywhere (gaminganywhere.org). The security group policy is to allow all connections, but couldn't connect to the server. Here is...

FFMPEG in thread error: Thread was being aborted

I'm using FFMPEG to convert video files from one file type to another. I do it via an ASP.NET web interface where a user can upload their file and the conversion happens in a .NET "thread", like...

Why HLS streaming take so much CPU?

I tring to restream webcams using nginx+rtmp module on Debian machine. When i restream one cam it's works nice and smooth, but its take so much CPU: Here is my config: user...

Removing duplicate frames with FFmpeg

I have an mp4 file, samp1.mp4, that has duplicate frames and I've tried to use mpdecimate to remove them. The FFmpeg command line I used is ffmpeg -i samp1.mp4 -vf mpdecimate out3.mp4 > out3.txt...

PHP-FFMpeg Error while opening encoder for output stream

I'm trying to use this PHP-FFMpeg library, but I'm keep getting errors like Error while opening encoder for output stream #0:0 This is my PHP code private function...

Problem converting RTSP to HLS Nginx to stream

I'm really new with nginx and Ubuntu. I'm trying to setup a website to stream an IP Camera Video to the internet. I'm currently using nginx 1.14 and ubuntu 18.04. I have the RTSP url from the...

Convert Black to Transparency in FFMPEG

I have a sequence of BMP images, which I'm concatenating to an MPNG video file, with this FFMPEG code: ffmpeg -f image2 -framerate 12 -i "Frame_%d.bmp" -c:v png "Video.avi" I want to replace all...

what does -crf mean in ffmpeg resize video file command?

Could someone explain what -crf means in the following command: ffmpeg -i input.mp4 -c:v libx264 -crf 65 -b:v 1M -c:a aac output.mp4 What does -crf stand for?

Problem using -to, combining -to with framerate change

I have a question regarding the use of the -to option: In FFmpeg version 3 (at least 3.2.12 included in Debian 9), -to was an output only option. In more recent version it seems to be accepted as...

FFmpeg mosaic video creation, Why it doesn't work?

I am trying to build a mosaic from multiple videos in an android application using FFmpeg, I have found the wiki on how to do it. The link explains the process well but I am getting this error...

Issue with RTMP to HLS multi variants

I have a server that successfully streaming RTMP on port 1935. I can access this stream from VLC. Address is rtmp://localhost:1935/live I can also successfully use Nginx-RTMP-Module...

ffmpeg encode mp4 for HTML MediaSource stream

I've used this example to try and "stream" an mp4 video with multiple parts using MediaSource. The files shouldnt be larger than 20mb due to host upload restrictions. However I'm having trouble...

How to handle interactive apt-get installation with python 3.6 subprocess.Popen() function?

Issue: I wrote the following python 3.6 script using the subprocess.Popen() function to run the linux apt-get command to install debian packages. I encountered a package, ubuntu-restricted-extras,...

How to Stream With FFmpeg and NGINX RTMP

I'm trying to stream from OBS (open broadcast software) on my Windows PC to NGINX+RTMP also installed on the same PC. I have set a bitrate of 20,000Kbps in OBS which will be the foundation bitrate...

| NGINX | FFMPEG not creating DASH manifests or chunks in the designated DIR |

Hopefully someone can help here, I have a setup that takes two input RTMP streams from two separate machines into my server. From here I am trying to serve some MPEG DASH manifests and chunks to...

ffmpeg: Can't convert file due to missing pixel format info?

I'm new to ffmpeg and i've been having problems converting this kux file to mp4. I've converted other kux files in the same way before without issues but it seems that this one isn't working...

How to copy ffprobe dumped metadata to a converted video

I hope you're all doing safe! I'm using windows 10 and have lots of home videos, some of them are on .AVI format. I just discovered google photos don't backup .AVI videos, I tried converting it...

Video encoding with AV1 - FFmpeg

I was trying to encode a raw video with AV1. I used: ffmpeg -i netflixboxing720p.y4m -c:v libaom-av1 -b:v 500k -strict experimental netflix720p500AV1.mp4 I took 2 hours and when I open the created...

Running apt-get install within Docker container: "Unable to connect to deb.debian.org" part-way through installing dependencies

I'm trying to build a docker container on a Raspberry Pi 3B. I need to install gpac for MP4Box. Dockerfile FROM python:3.8-buster RUN apt update && apt install curl gpac -y ENV...

installing opencv failed- pasting the contents of CMakeError.log

I tried the following sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essential cmake unzip pkg-config sudo apt-get install libjpeg-dev libpng-dev libtiff-dev sudo...

How do I fade out the edge of a video with ffmpeg?

I have a transparent .mov and I want to "fade out" only one edge of the video into transparency using ffmpeg. My video is transparent 1000x1000 (black is transparent): I am trying this command: ...

Transcoding with the GCP Transcoder API results in a time gap

I've been trying GCP's Transcoder API and having trouble with the time randomly becoming shorter than specified in certain cases. The specific cases are as follows: Specifying startTimeOffset and...