Skip to main content
7 votes
Accepted

What are the benefits of a CLI encoder (e.g. FFmpeg) over GUI Software?

You have 10,000 videos that need to have a logo overlayed, subtitles burned in from srt files, and a standard copyright notice attached to the end. Then you need to make three different versions of ...
stib's user avatar
  • 13.7k
6 votes

FFMPEG - How can I add black bars to top and bottom of my video?

Adding Bars You can do it with a combination of the crop & pad video filters: -filter:v crop="in_w:in_h-60:0:30",pad="in_w:in_h+60:0:-30" Both filters use the same format: width:height:x-offset:...
AntumDeluge's user avatar
6 votes
Accepted

ffmpeg concat error

The concat demuxer expects a text file as input. ffmpeg -f concat -safe 0 -i list.txt -c copy concat.avi where list.txt is file 'intro_prepped.avi' file 'intro_prepped.avi'
Gyan's user avatar
  • 33.3k
3 votes
Accepted

Convert TTML Subtitles to STL or SRT in Linux

The ttconv Python package will do it. It can be installed with pip.
Casey Jones's user avatar
3 votes
Accepted

I used ffmpeg to concatenate to videos and it got stuck and produced a huge file. Where is the mistake?

The concat filter uses the frame rate of the first input as the framerate for the output stream. Some MKV/WebM files don't write valid framerates. That can lead ffmpeg to assign a framerate of 1000 (...
Gyan's user avatar
  • 33.3k
2 votes
Accepted

ffmpeg multiple filters not working

Audio and video filters are invoked in separate chains. And without enclosing quotes, whitespace will break the chain. ffmpeg -i 00021.MTS -c:v libx264 -preset ultrafast -crf 0 -vf "fade=in:0:500, ...
Gyan's user avatar
  • 33.3k
2 votes
Accepted

"shift +" while rendering in ffmpeg, how to undo?

Don't worry, all you did is increase verbosity. The Shift had no effect, but the + increased it. Press - to cycle back to a lower verbosity level. Press ? to see a list of all available commands. If ...
Gyan's user avatar
  • 33.3k
2 votes

Find duration only with ffprobe in Windows

First, if you just want information about a file, you should probably use "ffprobe", not "ffmpeg". Otherwise you'll get an answer, but you'll also have an error return status. As ...
garryw's user avatar
  • 21
2 votes
Accepted

Can't apply "fade in" after "fade out" (FFMPEG command line)

What a fade out does is fade the volume from input level to 0 and then keep it at 0 for the rest of the track. Similarly, what a fade in does is fade the volume from 0 to input level and it mutes the ...
Gyan's user avatar
  • 33.3k
2 votes

How to delete the very last frame of a video using ffmpeg / mencoder / transcode or any other?

Your first line, which attempts to get the number of frames does not work for me. For whatever reason my test files report 'N/A' rather than a number. But since it worked for you, you were almost done....
v010dya's user avatar
  • 870
2 votes
Accepted

FFMPEG Command Works, then stops

dvd_subtitle indicates an image-based subtitle. You can skip it, or overlay it on the video, or convert it to a text subtitle. To skip it, add -map -s. To overlay it, add -filter_complex "[0:0]yadif[...
Gyan's user avatar
  • 33.3k
1 vote

How to remove background from video without green screen on the command line?

nadermx/backgroundremover https://github.com/nadermx/backgroundremover This is now the top Google hit, I installed successfully on Ubuntu 23.10 with: pipx install backgroundremover Unfortunately, ...
Ciro Santilli OurBigBook.com's user avatar
1 vote

How do you open multiple videos with multiple subtitles in VLC from command-line?

This is a workaround which converts the files to another container format. It happens almost as fast as your hard disk can write data because nothing is re-encoded. use MKVToolNix (specifically ...
Matt's user avatar
  • 1,421
1 vote

filter_script usage with ffmpeg and replacing inputs with a file

Use -filter_script:v for video. Ref: https://ffmpeg.org/ffmpeg-all.html#Generic-options -filter_script[:stream_specifier] filename (output,per-stream) PS: I just discovered (right now), that you can ...
markfilipak's user avatar
1 vote

ffmpeg batch overlay Error: "Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_0"

Looks like you forgot -i. Try: @echo off REM Add watermark to video batch for %%a in (*.mov) do ( ffmpeg -i "%%a" -i watermark.png -filter_complex "overlay=10:10" "output\%%~na.mov" ) pause
llogan's user avatar
  • 10.1k
1 vote
Accepted

How to use MELT or FFMPEG for layering of a video (i.e. shifting an overlay of the same video by one frame to remove flicerking from LEDs)?

You would carry that out, like this: ffmpeg -i in.mp4 -filter_complex \ "[0]split=2[base][shifted]; \ [shifted]setpts=PTS+1/TB/FRAME_RATE,format=yuva444p,colorchannelmixer=aa=0.50[shifted]; \ ...
Gyan's user avatar
  • 33.3k

Only top scored, non community-wiki answers of a minimum length are eligible