Xine screw-up

Posted by Tejus Parikh on October 2, 2007

For some bizarre and unknown reason, my Xine config on the multimedia pc just completely vanished. I blame the crappier power-grid in the city. It’s nowhere near as reliable as Alpharetta. Anyway, this event resulted in a multi-night quest to get audio working again with digital out Like most things of this nature, it wasn’t a lot of configuration, but tons of googling to find the magic settings. The first bit wasn’t too hard. Modifying the Xine config file in /home/user/.xine/config to add:


audio.output.speaker_arrangement:Pass Through

audio.device.alsa_default_device:plug:spdif:0

restored audio output for both music files (mp3,acc,etc) and movies with an AC-3 audio track. The remaining bummer was audio files stuttered like crazy. Launching xine from the command line with xine --verbose=1 audio-file.mp3 displayed a lot of this on the console:

fixing sound card drift by -1998 pts

fixing sound card drift by -2545 pts

fixing sound card drift by -2999 pts

fixing sound card drift by -3306 pts

fixing sound card drift by -3538 pts

fixing sound card drift by -3709 pts

According to the official Xine FAQ, my soundcard (an on-board VIA 8237 mustn’t be very good and is not keeping track of sampling frequencies very well. While I don’t recall ever having this problem at my previous house, I did always think that audio was playing back faster than it should be. Either way, adding

audio.synchronization.force_rate:48000

resulted in a clean audio stream that’s at the same speed as my IPod.

Tejus Parikh

I'm a software engineer that writes occasionally about building software, software culture, and tech adjacent hobbies. If you want to get in touch, send me an email at [my_first_name]@tejusparikh.com.