conversion

Mass file conversion using find and exec

convert mp3 to opus The short solution find ./ -type f -name '*.mp3' -exec sh -c 'ffmpeg -i "{}" -f wav - | opusenc --music - "{}.opus"' \; The full journey to the solution The first trick was just to use ffmpeg to convert to .wav, and then to take that .wav output and feed it to opusenc1 ffmpeg -i input.mp3 -f wav - | opusenc –bitrate 256 - output.opus

Emacs for Study: PDF Conversion and Editing

Sometimes in the process of studying it is desirable to take the papers you are researching, which usually come as PDFs, and to convert them to an editable form. After you’re finished editing the final product could be PDF, Microsoft Word, web HTML, or something else. As this is a process that I’ve required for a number of different reasons, this tutorial covers the tools I use. Unlike other tutorials I’ve done, this process utilizes several tools beyond emacs.