Bonum Certa Men Certa

Adding, Seaming Together, Merging, or Concatenating Videos From the Command Line With FFMPEG (Scripting for Streamlining of Workflows)

Video download link



Summary: In order to enrich the looks of videos with almost no extra time/effort (all scripted, no GUIs should be needed) use ffmpeg with the concat operator; but there are several big gotchas, namely lack of sound and need for consistency across formats/codecs and even sampling rates

TODAY we focused on some site 'logistics' and especially dealt with video and sound. The goal is to automate some tasks and/or improve the presentation of multimedia using Free software. Free as in freedom...



Frankly, the tool we used to generate some video segments was an "online" thing called Canva (never heard of it before, but it seems powerful enough and doesn't require downloading anything, logging in etc. -- not even an E-mail address). On the face of it, problem solved! But no... it gets trickier from then on. I spent many hours working around barriers.

Well, ffmpeg is very powerful and extremely versatile. However, as it turns out, ffmpeg will first need to convert .mp4 files downloaded from there (Canva) so as to incorporate sound, even if it's just mute (inaudible sound track).

For this reason and for that purpose, as per people who had similar issues concatenation tracks that lack sound (merged or combined with some that do have sound), run a command as follows (depending on the sampling rate, 48000 in my case, or else the sound/pitch will be funny).

ffmpeg -i "file.mp4" -f lavfi -i anullsrc=cl=mono:r=48000 -shortest -y "file-new.mp4"

Assuming you now have a track that is compatible with what you'd merge it with, ensure that the original is moreover re-encoded for it to be applied consistently. As I always record as WebM, I need to then run (for a video like the above):

ffmpeg -i video-ffmpeg-concat.webm -c:v libx264 -preset slow video-ffmpeg-concat.mp4

This yields something suitable as it must be strictly compatible in sampling, codec type, and other factors. That's a limitation in ffmpeg. This is a common issue for a lot of people and it took me hours to overcome (many trials and errors). I wished to document this as other people too got stuck (many forum posts).

Depending on which files you wish to concatenate with (and the order), write down the 'recipe', e.g. recipe.txt, containing

file file-new.mp4
file testing-6.mp4
file outro-new.mp4


Relative paths too can be prepended (e.g. file Videos/outro-new.mp4). The ffmpeg documentation explains the syntax better. There's a lot more about concat [1, 2].

Then run everything as follows:

ffmpeg -f concat -i recipe.txt output.webm

The reason the assembly of files is done with .mp4 files (to yield a WebM) is the insistence of Canva that downloaded videos are either MP4 or GIF. There must be some better ways and I'll improve this over time (this is all still very fresh in the mind; I've spent a lot of time on this).

From now on we have the ability to make videos that are 1) smaller in size because of re-encoding with strong compression and 2) have a little bit of extra context. We'll improve this over time and push to git. ⬆

Update: This is what the outcome can look like (mind start and end of clip).

Video download link

Recent Techrights' Posts

NVIDIA's Sex Pest CEO Also Committed a Felony, Stock Falls After Market Close
Down to $133, almost wiping out the whole "bounce" in the pump-and-dump manoeuvre
The Register MS Takes Millions From GAFAM to Publish GAFAM Spam as 'Articles' (at Least Four Fake Articles Today and Yesterday)
"Conflict of interest" became an understatement
NVIDIA Stock Crashing After Sex Pest CEO Jensen Huang Grilled and Fails to Save Face
We were right to assert the NVIDIA crisis was far from over
 
Links 05/12/2026: "Jensen Huang’s Testimony Was an Embarrassment" and "Corruption and the Fall of the American Empire"
Links for the day
IBM Pre-Christmas Exodus, Mass Layoffs and Workers' PIPs Ending
Those PIPs are silent layoffs
Gemini Links 05/12/2026: Magic of Christmas, GPL "Work was Stolen" by Plagiarism Engines (LLMs), and Gemini Server Running on an ESP32
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Friday, December 04, 2026
IRC logs for Friday, December 04, 2026
IBM as Vendor of Lies
What will happen to IBM's brand when people realise IBM sells something that does not exist?
RBoot and GNU Boot: Room for Collaboration, Demotion or Annulment of Microsoft Kill Switches
some messages are nearly a week old
Richard Matthew Stallman (RMS) Talks in Mexico, Coming Up Shortly
His talks in Ecuador were very well attended
"A FREE PRESS UNDER ATTACK" in and By the Stated States of America
This coming week we'll be busy writing about EPO abuses and also SRA failings
Oracle is Preceding the GAFAM Trajectory
If Oracle collapses any further, then it might be acquired by another company
Links 04/12/2026: Sex Pest Jensen Huang in Further Hot Water (His Protectors Also), Slop Faces More Copyright Lawsuits
Links for the day
Gemini Links 04/12/2026: "The Mystery of Digital Identity" and "Writing a Gemini Feed Validator"
Links for the day
Colombia: GNU/Linux Approaching 7% in Desktops/Laptops
gains had become significant
Links 04/12/2026: UK to Ban Ransom Payments (Windows TCO) and Microsoft's Accenture Targeted by INC Ransomware
Links for the day
Microsoft-Connected Publisher Implicitly Admits That Microsoft "Buyouts" Are Really Just Layoffs
"Buyouts" are not a good "offer", they are roughly equivalent to what getting a "pink slip" would mean
The Register MS, Operating at a Loss, is Trying to Swim in Pyramid Scheme Money
It's basically enabling accounting fraud and promoting lies for money
The Debt of Garrett's and Graveley's Hired Guns Grew by About $110,000 in One Year, According to Themselves (Annual Report After 18 Months, Period Starting 21 Months Ago)
The real financial impact of this year will be shown in future reports
Historic Week Next Week at EPO: Will "Cocaine King" Prevail?
In the US we see that sex pests can prevail as CEOs as long as they're useful to "the industry" (slop, or the patent litigation industry [sic] in Europe)
IBM Retirements, Sometimes "Last Day". Or Just PIPs as in "Silent Layoffs"?
IBM is a dying company that tries to hide the fact that it is dying
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Thursday, December 03, 2026
IRC logs for Thursday, December 03, 2026
Gemini Links 04/12/2026: Hope, Recovering From Transplant, and "Dave Winer on Slop Machines with Leo Laporte"
Links for the day
Links 03/12/2026: Openwashing by Microsoft OSI and 'Business Insider' Layoffs
Links for the day
Gemini Links 03/12/2026: Majestica, Embrace the Slow, and Social Control Media Considered Undesirable
Links for the day
Japan: Almost 10% GNU/Linux
We'll probably take a closer look later this week or next week when the data 'stabilises'
IBM's This Week in Fedora (TWIF) Has Been Reduced to Botspam, Chatbot Slop
Does IBM want no people anymore?
Links 03/12/2026: Epstein Files Bill and FUD About "Quantum" and "Hey Hi" (Buzzwords, Misnomers, Vapourware)
Links for the day
"I Mistrust all Systematisers and Avoid Them. The Will to a System is a Lack of Integrity" – Friedrich Nietzsche
what he experiences with his young child
GNU/Linux Up to 8% Market Share, Says StatCounter, as Windows Falls Further
Let's just ensure it doesn't turn into slop
Cryptography Still Works Fine and IBM Does Not Have the Computers It Falsely Claims to Have
Cryptography did not break
Solicitors Regulation Authority (SRA) Inaction and Incompetence - Part VIII - The UK Supreme Court's Intervention and SRA's Admission of the Problem
Why does the SRA not give a ---- about women?
Microsoft Mass Layoffs Happening in December 2026
Those are not gossip. Those are mainstream media reports based on verified data.
thelayoff.com Buries Comments About NVIDIA-Like Situation at IBM (Sexual Scandals, Bedroom Nepotism), Especially in Albany
Are takedown notices for comments/threads being received? We know about similar censorship (especially where women are concerned)
Gemini Links 03/12/2026: Trellech, Stonepunk, and Contemplating a New Laptop
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Wednesday, December 02, 2026
IRC logs for Wednesday, December 02, 2026