Showing posts with label audio. Show all posts
Showing posts with label audio. Show all posts

Friday, May 24, 2013

Rip CDs to flac on Linux with Morituri and verify with accuraterip

I want to rip my cd collection accurately, so I use Morituri from the command line. It's a very simple process, which will use MusicBrainz to populate the artist and track information.

Firstly find your drive offset either from this list of drive offsets or use Morituri with a cd in the drive

$ rip offset find

Once the offset is established (for example +48), rip the cd with the following command

rip cd --device /dev/cdrom rip --offset 48

For a different naming convention, I prefer

$ rip cd rip --offset 48 --track-template="%A/%A - %d/%t - %a - %n" --disc-template="%A/%A - %d/%A - %d"

Saturday, March 10, 2012

Sound using HDMI from GPU

I began by following the alsa configuration from the arch wiki.


$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital]
  Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 0/1
Subdevice #0: subdevice #0

Then test your output devices to find which gives you sound. In the example below, 0 is the card number and 3 is the device number.


$ aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav

If the test is successful, create (or edit) your ~/.asoundrc file to set HDMI as the default audio device.

pcm.!default {
   type hw
   card 0
   device 3
}

The trouble was that on each boot, my card numbers changed!
The solution is to follow the advice here on the alsa wiki

It says, use the name of the card rather than the card number. I created a file /etc/asound.conf with the following

# (from /proc/asound/cards)
#
#

pcm.!default {
    type hw
    card Nvidia
    device 9
}