Questions tagged [ffmpeg]
Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated. For help with CLI use only of ff* binaries - ffmpeg, ffprobe, ffplay. For help with API usage, post on Stack Overflow.
7,431 questions
1
vote
0
answers
47
views
Some invalid files from action camera reported by ffmpeg
I have a number of clips produced by a cheap sports action camera, a number of them cannot be played by any players, and ffpeg/ffprobe seems to indicate they contain 'bad data'. The issue does not ...
0
votes
1
answer
86
views
How to reset video timestamp in trimmed video using ffmpeg
I want to display the relative timestamp (and also the absolute) as a burnt-in overlay text in a cut/trimmed video processed by ffmpeg. The current command is:
ffmpeg -i input.mp4 -ss 30 -t 10 -vf &...
1
vote
1
answer
194
views
FFMpeg streaming - Unknown Error
We have had FFMpeg running on a PC for a couple years converting the rtsp stream from a camera into an m3u8 stream to embed in a website. It has worked flawlessly for years.
Recently however, it has ...
0
votes
0
answers
69
views
Audio desync at clip joins
I'm re-encoding some old torrented files and have encountered a timestamp problem (according to a commenter on the ffmpeg subreddit). I have no idea how to fix it.
The files I originally downloaded ...
2
votes
1
answer
49
views
FFmpeg audio fade-out not applied when generating video with image sequence + mp3 (audio cuts abruptly)
I’m generating a video in Android using FFmpeg (via FFmpegKit). The video is created from an image sequence, a GIF overlay and an MP3 audio file.
The problem: the audio always ends abruptly.
I’m ...
-4
votes
1
answer
62
views
How to update x86 FFmpeg executable used by MeGUI application?
I am using MeGUI x86 version 6.6.6.6 (20251116) on Windows 11 Pro. I am trying to update the internal FFmpeg version to 8.0, but MeGUI fails to utilize it.
The problem is, when I point the executable ...
5
votes
1
answer
590
views
How to add `.srt` subtitles to an `.mkv` container using `ffmpeg`?
When I want to add text-based (file extension .srt) subtitles to an .mp4 container, the following command works well:
ffmpeg -i input.mp4 -i subtitle-in.srt -c copy -c:s mov_text -metadata:s:s:0 ...
1
vote
0
answers
28
views
FFMPEG uses replace disposal instead of combine disposal for gifs
Discord compresses non-gifs and 1-framed gifs for emojis. I want to convert an image to a 2-framed gif. I tried-
ffmpeg -i "https://act-upload.hoyoverse.com/event-ugc-hoyowiki/2026/02/14/98205622/...
-1
votes
1
answer
117
views
How to prepare for the next ffmpeg (8.x and above) compilation?
I use vmaf and therefore had to compile ffmpeg. It seems Ubuntu-Mate 26.04 LTS will come with an updated ffmpeg version. This will lead to a necessary further compilation of ffmpeg.
There are a lot of ...
0
votes
0
answers
65
views
FFmpeg: how to use different source folders in a loop for a Windows-CMD?
Let say one has the following task: One has two source folders, let say video1 and video2. In this both folders are video files with the same names, for example video1\videoFile1.mp4 and video2\...
2
votes
0
answers
113
views
How to add chapters, name audio streams and related metadata in one go with FFmpeg?
The metadata format of FFmpeg lets me add chapters to a video file. I have to feed the input file to FFmpeg with the -map_metadata parameter, and all works as expected.
In the FFmpeg documentation, ...
0
votes
0
answers
55
views
How to add black borders with FFmpeg without losing quality?
I added black borders, but I’m not sure if I'm doing it right.
I'm trying to add black borders without re-encoding (lossless) without messing with image file quality or anything in this command:
...
6
votes
2
answers
700
views
How to find a corrupt frame in an MJPEG file?
I have a file I'm looking at for a friend that plays with some players but not others. Running it through ffmpeg, I get the following output:
$ ffmpeg -v warning -i ~/Downloads/untitled.mov -f null -
[...
0
votes
1
answer
50
views
Is there a way to report RGB statistics per frame with FFmpeg?
So far, the signalstats only report YUV, and it always converts RGB to YUV first.
Here I force R and G channels to be 0, and only give some B pixels slightly above 0:
ffmpeg -i input.mp4 -vf "...
3
votes
0
answers
62
views
Is it possible to interrupt ffmpeg encoding and then continue it later?
I use ffmpeg 8.0, Ubuntu Mate 24.03.
Is it possible to interrupt an encoding process, e.g. encoding to h.265 via libx265 and continue the encoding process.
The encoding process leads to a speedx of = ...