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 ...
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'
5
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:...
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.
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 (...
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, ...
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 ...
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 ...
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[...
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 ...
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 ...
1
vote
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....
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 ...
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
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]; \
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
command-line × 22ffmpeg × 20
video × 4
subtitles × 3
encoding × 2
software-recommendation × 2
windows × 2
linux × 2
script × 2
ffprobe × 2
editing × 1
audio × 1
mp4 × 1
conversion × 1
effects × 1
sync × 1
filter × 1
greenscreen × 1
mkv × 1
vlc × 1
.srt × 1
concatenation × 1
ffplay × 1