Antonio Terceiro: Useful ffmpeg commands for editing video
For DebConf20, we are recommending that
speakers pre-record the presentation part of their talks, and will have live
Q&A. We had a smaller online MiniDebConf a couple of months ago, where for
instance I had connectivity issues during my talk, so even though it feels too
artificial, I guess pre-recording can decrease by a lot the likelihood of a
given talk going bad.
Paul Gevers and I submitted a short 20 min talk giving an update on
autopkgtest, ci.debian.net and friends. We will provide the latest updates
on autopkgtest, autodep8, debci, ci.debian.net, and its integration with the
Debian testing migration software, britney.
We agreed on a split of the content, each one recorded their part, and I
offered to join them together. The logical chaining of the topics is such that
we can't just concatenate the recordings, so we need to interlace our parts.
So I set out to do a full video editing work. I have done this before, although
in a simpler way, for one of the MiniDebconfs we held in Curitiba. In that
case, it was just cutting the noise at the beginning and the end of the
recording, and adding beginning and finish screens with sponsors logos etc.
The first issue I noticed was that both our recordings had a decent amount of
audio noise. To extract the audio track from the videos, I resorted to
How can I extract audio from video with ffmpeg?
on Stack Overflow:
ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac
I then edited the audio with Audacity. I
passed a noise reduction filter a couple of times, then a compressor filter to
amplify my recording on mine, as Paul's already had a good volume. And those
are my more advanced audio editing skills, which I acquired doing my own
podcast.
I now realized I could have just muted the audio tracks from the original clip
and align the noise-free audio with it, but I ended up creating new video files
with the clean audio. Another member of the Stack Overflow family came to the rescue,
in How to merge audio and video file in ffmpeg. To replace the audio stream, we can do something like this:
ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a aac -map 0:v:0 -map 1:a:0 output.mp4
Paul's recording had a 4:3 aspect ratio, while the requested format is 16:9.
This late in the game, there was zero chance I would request him to redo the
recording. So I decided to add those black bars on the side to make it the
right aspect when showing full screen. And yet again the quickest answer I could
find came from the Stack Overflow empire:
ffmpeg: pillarbox 4:3 to 16:9:
ffmpeg -i "input43.mkv" -vf "scale=640x480,setsar=1,pad=854:480:107:0" [etc..]
The final editing was done with pitivi, which is what
I have used before. I'm a very basic user, but I could do what I needed. It
was basically splitting the clips at the right places, inserting the slides as
images and aligning them with the video, and making most our video appear small
in the corner when presenting the slides.
P.S.: all the command lines presented here are examples, basically copied from
the linked Q&As, and have to be adapted to your actual input and output
formats.
More details about the project can be found



I know most Debian people know about this already But in case you
don t follow the usual Debian communications channels, this might
interest you!
Given most of the world is still under COVID-19 restrictions, and that
we want to work on Debian, given there is no certainty as to what the
future holds in store for us Our DPL fearless as they always are
had the bold initiative to make this weekend into the first-ever
So, we are already halfway through DebCamp (which means, you can come
and hang out with us in the
Earlier this month I had the pleasure of attending the Web Engines Hackfest, hosted by Igalia at their offices in A Coru a, and also sponsored by my employer, 



pristine-tar 1.41: support for signatures
This release saw the addition of support for storage and retrieval of upstream signatures, contributed by Chris Lamb.
pristine-tar 1.42: optionally recompressing tarballs
I had this idea and wanted to try it out: most of our problems reproducing tarballs come from tarballs produced with old compressors, or from changes in compressor behavior, or from uncommon compression options being used. What if we could just recompress the tarballs before importing then? Yes, this kind of breaks the pristine bit of the whole business, but on the other hand, 1) the contents of the tarball are not affected, and 2) even if the initial tarball is not bit by bit the same that upstream release, at least future uploads of that same upstream version with Debian revisions can be regenerated just fine.
In some cases, as the case for the test tarball
In other cases, if the current heuristics can t produce a reasonably small delta, recompressing makes a huge difference. It s the case for
Recompressing is not enabled by default, and can be enabled by passing the



This weekend, I traveled to Columbus, Ohio to attend