FFMPEG: convert flac to mp3 and copy id3tags

And again something to ffmpeg: this very sophisticated tool can not only convert video or audio files. It also can handle the associated metadata. So, when you have a big music-library in the lossless format .flac (or .wav) and want to have it also on mobile devices you probably convert the files to mp3 or similar. Also, I do so, because when I’m travelling around I’ve mostly not the silence and equipment to hear music in best quality, so a little loss of quality through the use of mp3 would not be noticed.

Posted

#CaffeeLog #Linux

FFMPEG using the H264 codec

I’ve often the “problem”, that I want to show a movie while traveling, but the mpg-file on my PC is a few GB big and the disk-space on my mobile Devices are limited. So, I want to convert my mpg-files to mp4 files, with less or no loss of quality, but a huge reduce of bytes. And every time I’m searching around the web to find the correct ffmpeg-options. In order not to search the next time I need it, I write it down:

Posted

#CaffeeLog #Linux

Tux, the Linux-Penguin

Recursive search in files on Linux

Sometimes I’m searching for a specific function in the many files and directories of a project. Of course, I could use heavy, often crashing and expensive IDEs to do this but there is one simple and fast method using the “boring” command line and the “ugly” tool grep: (Maybe I should note, that the “” in this case may mean some irony) grep -E -lir --include=*.{c,cpp,h,hpp} "void test()" The options:

Posted

#CaffeeLog #Linux