-
Archives
-
Meta
Monthly Archives: April 2020
(FFmpeg) How to Concatenate Multiple Videos?
Using concat with a txt file has one catch, all the MP4s must have the exact codec, framerate, resolution, etc. An example text file is shown below (file.txt): Then run the following command to load the txt file to create … Continue reading
Posted in Programming, Tutorial
Tagged FFmpeg
Comments Off on (FFmpeg) How to Concatenate Multiple Videos?
(FFmpeg) How to Loop a Section of Video Multiple Times?
Looping a section of a video can be useful for presentations or advanced video editing. In this example the input.mp4 is a 5 minute long video with the requirement that after the 1 minute mark, the video will loop 10 … Continue reading
Posted in Programming, Tutorial
Tagged FFmpeg
Comments Off on (FFmpeg) How to Loop a Section of Video Multiple Times?
(FFmpeg) How to add a motion blur to a video?
I saw this question on Reddit and started messing with the effects recommended and totally liked the effect seen in the video below: Here’s the full script using the tmix filter: What you’ll notice here is the more frames you … Continue reading
Posted in Programming, Tutorial
Tagged FFmpeg
Comments Off on (FFmpeg) How to add a motion blur to a video?
(FFmpeg) How to Stitch Segments to One Video?
Stitching videos generated by the segment filter is accomplished using the concat filter. See Question, “How to Splice a Video into Segments?”, for more details on segmenting video output. Imagine you’ve generated a bunch of segments for a stream and … Continue reading
Posted in Programming, Tutorial
Comments Off on (FFmpeg) How to Stitch Segments to One Video?
(FFmpeg) How to Splice a Video into Segments?
Splicing a video (or dividing a video into multiple segments) is a common way to break large files into smaller parts. This is commonly found in streaming but can also be used to break up a video into smaller clips. … Continue reading
Posted in Uncategorized, Programming, Tutorial
Tagged FFmpeg
Comments Off on (FFmpeg) How to Splice a Video into Segments?
(FFmpeg) How to Trim ‘x’ Seconds From the Start and End of a Video?
The last two questions covered trimming the start of a video and trimming the end of a video, but what does the command look like combined? In this example, the input file is 5 minutes long with the requirement of … Continue reading
Posted in Programming, Tutorial
Tagged FFmpeg
Comments Off on (FFmpeg) How to Trim ‘x’ Seconds From the Start and End of a Video?
(FFmpeg) How to Trim ‘x’ Seconds From the End of a Video?
Trimming a couple of seconds, minutes or hours off the end of a video is easy but again requires a different understanding of time in FFmpeg. Trimming from the end of an MP4 uses the argument -t or duration with … Continue reading
(FFmpeg) How to Trim ‘x’ Seconds From the Start of a Video?
Trimming a few seconds, minutes or hours from a video is simple but requires an understanding of the seeking and duration options. In this example, the input file is 5 minutes long with a 15 second introduction that needs to … Continue reading
(FFmpeg) How to Compress MP4 and Reduce File Size?
Although not a conversion to another format, compression is one of the most asked questions about MP4 files with FFmpeg. People are constantly looking for ways to reduce file size while keeping quality generally the same. This is easily done … Continue reading
Posted in Programming, Tutorial
Tagged FFmpeg
Comments Off on (FFmpeg) How to Compress MP4 and Reduce File Size?
(FFmpeg) How to Convert MP4 to GIF?
In the previous video format conversions the formats supported audio without any additional encoding. A Graphic Interchange Format or GIF is a bitmap image format without an audio component. GIFs have been around since the late 80s and are still … Continue reading