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...

Get number of frames in video file using ffprobe in C# code

I can successfully read number of framres in test.mp4 using Ffprobe on command prompt with following command: >ffprobe -i 'c://test.mp4' -show_frames | find /c 'pict_type' But when I try to run...

using FFMPEG with silencedetect to remove audio silence

I am trying to use the following command with the latest ffmpeg build to remove silence from my .mp3 files: ffmpeg -i SILENCE.mp3 -af silencedetect=n=-50dB:d=1 -y -ab 192k ...

Converting DAV to MP4 and OGG

I want to prepare WEB page containing films from security camera recorders. Each recorder transmit video files in DAV format so each film is converted to MP4 format by script, using such...

FFmpeg audio channel rematrix (5.1 to stereo)

I've got a (very large!) Apple ProRes 422 file with 16ch audio. To be able to use it on a less powerful computer, I'd like to convert it to a standard MP4 file (h264 video codec, stereo audio)....

How to embed subtitles to .mp4 movie using ffmpeg

I'm trying to embed subtitles I wrote to a movie I created. I'm using FFmpeg version: ffmpeg-20150418-git-edbb9b5-win64-static with the command: ffmpeg -i in.mp4 -f srt -i subs.srt -c:v copy -c:a...

how to convert mp4 to webm file using ffmpeg in php on centos

i have done installation. after then i have using following code to convert mp4 to webm using ffmpeg on centos. but it does not convert and also didn't throw any error.what is wrong with my code...

Uploaded videos are not playing in mobile browser but are playing on desktop broswer

I have set up a server (gunicorn and nginx) to upload videos using Python/Django, and watch them in the browser. The video player I am using is videojs. All the videos are h.264 mp4. And the video...

ffmpeg conversion .dav to any video files

I am trying for days to convert .dav file (file generated by dvrs [image recorders]). I have tried several variations with ffmpeg and can not succeed. Command and console output: $ ffmpeg -i...

How to determine webm duration using ffprobe

My goal is simple , I have several webm files need to be concated, but first I need to determine their durations. It seems webm file are played as streams, so there is no way to tell the length of...

ffmpeg : how to determine frame rate automatically?

I use this simple script to convert video to images using ffmpeg, but frame rate is fixed, how can I determine it...

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...

After merge videos, the duration is too long - ffmpeg

I have file txt with content file intro.mp4 file video.mp4 file outtro.mp4 with duration by 10s, 178s, 13s. I use ffmpeg to merge 3 files into one with below command: ffmpeg -f concat -i...

No such filter: 'drawtext'

My main objective is to collect user inputs and convert it to a video with black background, then the input text will be moving from left to right while the video is playing with audio in the...

FFMPEG: Too many packets buffered for output stream 0:1

I want to add a logo to a video using FFMPEG. I encountered this error: "Too many packets buffered for output stream 0:1.", "Conversion Failed.". I tried with diffent pictures and videos, always...

ffmpeg can't convert mp4 to mp3 Output file #0 does not contain any stream

I can't convert mp4 file to mp3 via ffmpeg. I tried these commands but they are not working and show the same error: Output file #0 does not contain any stream These are the commands: ffmpeg -i...

Overlay a video on another video at specific time with FFmpeg

I am trying to overlay a video with another video. I followed the original command OP posted here. And it works, but it overlays the video from time 0: ffmpeg -i 720480.mp4 -i sdbug.mov...

FFMPEG : Invalid data found when processing input

I am unable to upload mp3 or mp4 is there any specific path format? Here is my code. I have tried this also ffmpeg -i Video/" + Name + " -ss 01:30 -r 1 -an -vframes 1 -f mjpeg Video/" + Name +...

Convert videos from .264 to .265 (HEVC) with ffmpeg

I see that there are a few questions on this subject but I am still getting errors. All I want to do is convert videos in my library to HEVC so they take up less space. I've tried this: ffmpeg -i...

'composer install' command fails on Docker giving 'SSL Operation Failed with code 1' error

I am on the Windows machine, with Docker running. Docker image is FROM php:7.3-apache. with System : Linux b6df004de9df 4.9.184-linuxkit #1 SMP Tue Jul 2 22:58:16 UTC 2019 x86_64 having Composer...

Quicktime not playing a h264 aac encoded file - why?

Quicktime says "This file isn't compatible with quicktime player" when I try to play an mp4 file. The info shows the encoding as : H.264, AAC, QuickTime Text The file plays fine with VLC. I need...

ffmpeg extract frame and get timestamp based on creation time for each extracted frame in exif or txt

I try to extract frames from a underwater survey video using ffmpeg. the extracted frames should be merged with a gps position based on a timestamp later in the process. the code i use to extract...

ffmpeg Cannot determine format of input stream 0:0 after EOF Error marking filters as finished for some mkv video

After executing this command in android ffmpeg library to compress video "-i", /storage/emulated/0/beeGroup/video/saved_file/Prison56.mkv, "-threads", "8", "-vf", "scale=" +scale +...

Swift Script stuck while executing command (ffmpeg)

I'm writing a swift script that uses the bash command ffmpeg. I've been following this excellent guide. Everything works except for when I try to run ffmpeg to convert a video. Normally I can just...

Problem using FFmpeg to convert MKV with A/52 B audio (aka E-AC3) to AAC

I've got a number of MKV files which are (per VLC) encoded with A/52 B (aka E-AC3) audio codecs. I would like to convert these to AAC, but I'm having trouble doing this with FFmpeg. The command...

How to pipe multiple images, being created in parallel with an index, to ffmpeg so that it can match the speed of image creation?

We've a system that spews out 4-channel png images frame-by-frame (we control the output format of these images as well, so we can use something else as long as it supports transparency). Right...

Using ffmpeg to livestream webcam video over UDP from Pocketbeagle running linux, what is missing?

I've been reading up on a lot of questions pertaining to ffmpeg and streaming a live feed from a webcam, and have gotten pretty close but I am just missing something small. I have a Pocketbeagle...

how to enable libx264 for ffmpeg on macos

I am running a code that runs ffmpeg and breaks down because of libx264 with the following error: Unknown encoder 'libx264' File...

Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument

I'm trying to convert a .ts file with this output to mkv: ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers built with Apple clang version 12.0.0 (clang-1200.0.32.27) ...

Install python aiortc module in msys2 mingw-64

I am trying to install aiortc module in msys2 enviroment. (Trying to install with several methods (pip, python -m pip, git clone,...) attemps deleted due to 30000 characters limitation.) The...