Archive for the 'ffmpeg' Category

ffmpeg: make a video with a static image and an audio file

Jul 6th, 2021

tsia ffmpeg -loop 1 -i image.png -i audio.mp3 -c:a copy -c:v libx264 -shortest result.mp4

 

Video grids with ffmpeg

Dec 7th, 2020

I wanted to create a video that is a 3×2 grid of 6 other videos. This one to be precise: I was hoping I can use ffmpeg, because the thought of using a proper video editing software gives me the chills. In fact at some point I thought things will require iMovie and went to […]

 

How it’s made: flashcards with Italian slang for musicians

Mar 7th, 2018

Update: Now in French too Update 2: and in German Update 3: now with Web Speech API (scroll to the bottom) Here’s a little app that gives you flashcards of Italian words used in music: https://www.onlinemusictools.com/italiano/ It also pronounces the words in four different voices. The code for the tool: https://github.com/stoyan/italiano A few implementation notes […]

 

ffmpeg to mix audio files

Mar 2nd, 2018

Here’s how to mix three audio files into one: ffmpeg -i alex.aiff -i fred.aiff -i whisper.aiff -filter_complex “[0:0][1:0] amix=inputs=3:duration=longest” out.mp3 Note the inputs=3 part as we’re mixing three files. And this mixes only two files putting one on the left and one on the right: ffmpeg -i alex.aiff -i fred.aiff -filter_complex amerge out.mp3

 

Taking Mozilla’s DeepSpeech for a spin

Dec 1st, 2017

Speech-to-text, eh? I wanted to convert episodes of my favorite podcast so their invaluable content is searchable. I’m moderately excited with the results but I’d like to document the effort nonetheless. DeepSpeech First thought – what open-source packages exist out there? Checking out wikipedia I see a brand-new one from Mozilla – DeepSpeech. Intriguing. Install […]

 

Batch convert image formats with imagemagick

Feb 18th, 2017

mogrify (like convert) is one of the utilities that come with imagemagick. Here’s an example of how you convert a batch of pic files to jpeg. Same for png to jpeg, vice-versa, etc. $ mogrify -format jpg *.pic Boom! Next! Also see: batch convert audio/video files with ffmpeg

 

Making an album sampler video on the command line

Mar 31st, 2015

Here’s a video I made to raise awareness about Anaconda Limousine’s first album (where I play guitar and co-wrote 1 song): https://www.youtube.com/watch?v=0LavyKbSuvI. This is a post that explains how it was made so if anyone wants to made a similar one, they can have something to step on. Turns out videos like this are called […]

 

ffmpeg: batch convert

Mar 3rd, 2015

Say, a bunch of .wav files to .mp3 $ for f in *.wav; do ffmpeg -i $f “${f%.*}.mp3”; done

 

Anaconda Limousine: the guitar parts

Jun 17th, 2012

I’m part of a band that has an album out now. I know, right? (links: excuse-for-a-site, amazon, itunes). I wanted to put up all the songs on the site, but seems like there’s a little dissonance in the band whether this is a good idea. Plan B: 30s samples. Like the bigwigs do on Amazon […]

 

Simple music player

Apr 18th, 2012

I put up a few MP3s on http://anacondalimousine.com, in simple a hrefs. While modern browsers will let you click and display some sort of player in a new page, why not play them in-page without a refresh? Simple enough. Plus we have HTML5 audio. Problem is, old IEs don’t support HTML5 audio and you need […]

 

Audio sprites

Apr 13th, 2011

Another “brilliant” idea that I had recently – how about combining audio files into a single file to reduce HTTP requests, just like we do with CSS sprites? Then use the audio APIs to play only selected parts of the audio. Unlike pretty much all brilliant ideas I have, I decided to search for this […]

 

Blog-to-podcast with ffmpeg

Feb 16th, 2009

ffmpeg is such an amazing tool, looks like it’s for video what ImageMagick is for images. An all-powerful all-formats wicked cool command-line tool. This blog post is an introduction to some of the MP3 capabilities of ffmpeg. I’ll use ffmpeg to transform a blog post into a podcast-ready mp3 file. If you continue to read […]