os:linux:multimedia
Table of Contents
Linux - Multimedia
Audio
CD to WAV
/dev/sr0 may have to be replaced with another device file depending on your system.
cdda2wav -D/dev/sr0 -B -x
Parameters:
- -B ⇒ record each track into a seperate file
- -x ⇒ select maximum quality (stereo/16-bit/44.1 KHz)
WAV to FLAC
flac --best *.wav
FLAC to AAC
neroAacEnc is needed for the following snippet. The quality of the resulting aac files is better with NeroAAC than ffmpeg or libav (I don't know if they got better now).
while read FILE; do flac -d -c "${FILE}" | /opt/NeroAAC/neroAacEnc -q 1 -ignorelength -of "${FILE/.flac/.m4a}" -if -; done <<< "`ls -1 *.flac`"
Video
M2TS to MKV
avconv -i 00000.m2ts -qscale 0 -f matroska output.mkv
Extract Audio From Video File
avconv -i asdf.webm -map 0:1 -c:a copy audio.m4a
os/linux/multimedia.txt · Last modified: 2014-12-18 20:08 by 127.0.0.1