Category: Audio-Video

Batch convert audio in Linux
article #307, updated 5071 days ago

You’ll need the standard utility “sox”, which does conversions. Then, use this line:

for flac in *.flac; do sox -S "${flac}" -r 44100 -b 16 new/"${flac}"; done

in a shell file, having created the directory “new” underneath the existing files. The above will convert all .flac files to 16-bit 44.1 kHz.

Categories:      

==============

Command-line DVD pre-preparation
article #285, updated 5089 days ago

The following converts a huge variety of video formats (replace .ABC with whatever you have, AVI, FLV, etc.) to DVD-compatible MPEG:

ffmpeg -i videofile.ABC -target dvd -aspect 16:9 -sameq videofile.mpg

FFMPEG is standard in probably all non-minimalist Linux distros, and can also be had for Windows now.

Categories: