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

The Tower of Babel
More is not better
When Large American "Tech" Companies Can No Longer Complete Payroll
In spite of several very large waves of Dell layoffs, which the media reported on, it seems like they are still experienceng payroll problems, maybe that's why money is being borrowed
Writing for Good
The Web has an abundance of junk
Intercontinental Brigading - Part XXVIII - Microsoft Doesn't Want People to Speak About Microsoft-Controlled Restricted ('Secure') Boot, a Silent Injustice and Back Door/Kill Switch
Can we please stop treating this as normal or acceptable?
 
Links 02/11/2026: Bracing for US Election and New Zealand Has November 7 Election
Links for the day
Gemini Links 02/11/2026: Beginning With Gemini Protocol, Looking for CoCs, and Slop for Local Data
Links for the day
NDA-Compatible PIPs and RAs at IBM Red Hat
We welcome Red Hat whistleblowers who can share with us the NDA/s passed their way
GNU/Linux Rises in African's Largest Population
15% in Nigeria [...] A country with over 200 million people
The Register MS Has Just Published a Fake Article With "AI" 28 Times in the Page (Communist Party of China Entity Paid for That)
In IRC, someone has just pointed out that an article at The Register MS repeats Microsoft's lies about its financial situation
Windows Down to All-Time Low, Says statCounter, While Microsoft Tells 60,000 Workers They're No Longer Necessary
Microsoft must be feeling "salty" right now
A British Uphill Battle to Eliminate Microsoft and Its American Back Doors
There are places of work and homes where GNU/Linux is installed and regularly used, not as a mere hobby but as a hyper-productive, practical tool
Technical Coverage of US Elections
When elections are done by computers and decided by computers it becomes a tech issue
By Killing the "Linux News Section" in Softpedia (the Most Popular Section, Based on Its Editor) Softpedia Killed Itself
Enjoy Ballmer
Linkspam in "It's FOSS" Today (and It's Not Even FOSS)
free-to-access ad for some dodgy companies and the URLs are 'tampered' for cashback
Links 02/11/2026: Slop Destroying Mathematics and "Democracy is Not on the Ballot" (in US)
Links for the day
Celebrating Photography, Celebrating Life, Celebrating Magnificent Humanity, Not Plagiarism Disservices
Any time we adopt or spread slop imagery we are participating in the problem
Year-Long Celebration Starts on Saturday
This coming Saturday we turn 20
On Desktops/Laptops, Clownflare Sees Windows at Under 60% and GNU/Linux at 15% This Past Weekend
Impressive if accurate
Microsoft Lunduke is Slop
Microsoft Lunduke is just trying to stir up hatred
Intercontinental Brigading - Part XXVII - Shooting the Messengers (People Who Oppose Microsoft Back Doors), Even Across the Atlantic
Keep this in mind later this week when a dictator either discredits the voting or covertly tampers with the voting process
Microsoft Wants 60,000 Employees Gone (One Way or Another)
At IBM, 15% of staff got marked as candidates for removal; at Microsoft it's almost 30%
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, November 01, 2026
IRC logs for Sunday, November 01, 2026
Jean-Claude Van Linus
Claude talking?
Gemini Links 01/11/2026: OpenBSD, Broken MicroHDMI, Nextcloud, and More
Links for the day
IBM Vapourware on a Budget (to Grab Bailouts From US Taxpayers)
Anderon is the sort of thing that makes IBMers uncomfortable
Links 01/11/2026: Digital Minimalism and "Palantir Cofounder Announces Cruel Plan to Breed Thousands of Lab Monkeys for Medical Experiments"
Links for the day
Microsoft Accenture in Trouble, Accenture’s Debt Skyrockets
Seeing a wave of adoption of Free software in Europe, it's not exactly shocking that "consultants" from Microsoft Accenture are no longer in demand
Microsoft Says Its "Goodwill" Value Has Been Declining for Years, But It Also Claimed That Doubled in One Year
Wall Street deserves far more criticism or scepticism (at the very least)
SkyChatz: From Nothing to #2 in IRC (in Less Than a Year)
Second only to Libera.Chat
Making Up Words or Inventing a Vocabulary
Or why Large Language Models are useless
Assange on What Lula Means to Free Press
Here in the UK we've also found our 'Lulas'
GNU/Linux is No Underdog (But There Are Attempts to Put It "To Sleep")
There's a moral imperative
Intercontinental Brigading - Part XXVI - The "Law and Order" Candidate Who Crushes Both Law and Order and Even Rejects Election Outcomes (Insurrection Follows)
A world without real technical security is a world void of democracy, justice, and human rights
Links 01/11/2026: Malaysian Media Perishing, France Belatedly Identifies Social Control Media as Weaponised Yellow Press
Links for the day
Gemini Links 01/11/2026: "Trick-or-Treating seems to be dead, at least in our neighborhood"; BaseFree Numerical System and Human Emacs
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, October 31, 2026
IRC logs for Saturday, October 31, 2026
Gemini Links 31/10/2026: MangoWM, Qutebrowser and Codeberg, Plugh
Links for the day
Massive Cuts Inside Microsoft (the Media Does Not Talk About That)
It is in many ways like IBM a decade ago
In US Government Sites, GNU/Linux Measured at New All-Time High of 7% (or About 10% Across Desktops/Laptops Alone)
There's no doubt GNU/Linux is growing
Intel Has Just Lost in One Single Day Over 150 Billion Dollars in 'Value' (Market Cap), Intel is Also Over 50 Billion Dollars in Debt
This really says a lot about Wall Street and the slop bubble, doesn't it?
They Hate Him Because He's Effective
Effective voices invite more aggressive censorship attempts
Audience Growing in Spite of the Deluge of Webslop
We probably benefit from the rejection of LLM slop
The Munich FUD Tactics (Microsoft Modus Operandi): Microsoft-Connected Sites Claim Denmark Failed With Free Software, But That's Not What Actually Happened
With Microsoft, it almost always boils down to politics
Links 31/10/2026: John Romero Comeback After Being Shafted by Microsoft, Google Faces Criminal Probe Over Deforestation in Finland
Links for the day
Gemini Links 31/10/2026: Rambling on Self-hosting and Ad Video Screens Don’t Make Money
Links for the day
Can't Trust Big Banks, Let's Try 'Bros' Instead?
But let's blame "North Korea"
IRC's Growing Popularity in 2026
No company controls or profits from IRC, it is in the Commons
"AI" as Surrogate for Debt and Distraction From Computing (Bots Described as "Agents" and/or Any Form of "Intelligence" is More Like a Religion)
We're letting people without even college degrees game the "market" (Wall Street) by lying to it
Intercontinental Brigading - Part XXV - Election Integrity at a Time of Back Doors and Very Severe Bugs in UEFI
How dare British media comment on insurrection following a US election?
"The Judge Accepted That Mrs Schestowitz Had Been the Subject of a Vicious Campaign of Online Harassment"
That's consistent with how they men treat women
Gemini Links 31/10/2026: Hallowe'en and "Thinking About People"
Links for the day
Links 31/10/2026: The Hinge on Apple's Constantly Breaking New Foldable iPhone Was "Built With Slop", Slop Causes Cash Squeeze GAFAM
Links for the day
Amazon's Debt Skyrockets by Almost 100 Billion Dollars in 9 Months
On top of that there is additional (secret, kept stealth by accounting tricks) debt
Google Illegally Destroyed a Quarter Million Trees Without a Permit for a Hypothetical Project That Might be Cancelled, Debt Has Soared by 30 Billion Dollars in 3 Months ($10 Billions Borrowed Per Month)
Google is bleeding from slop
Slavery at Microsoft
illegal if true
Many People "Left" Red Hat This Month, Including Yesterday
We already saw this with SUSE
Gemini Links 31/10/2026: "Where I Draw the Line With" Slop Plagiarism and "Nobody Cares That You're Leaving Proton" (Over Slop)
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Friday, October 30, 2026
IRC logs for Friday, October 30, 2026