mbreitkr16
Posts: 1
Joined: Tue Dec 16, 2014 5:32 pm

Troubles with Transcoding to FLAC

Tue Dec 16, 2014 5:37 pm

Hey folks,

I have a (hopefully) fairly basic question about recording and transcoding here. I want to record from the line in on my Wolfson audio card at 24/192/2ch and transcode that to a flac file. I can do this fine at 16 bits/sample, but when I crank it up to 24 bits/sample, I just get static and warped music out of my local speakers when I try to play back the file. The command line syntax I use is:

arecord -d0 -c2 -f S24_LE -r 192000 -traw -D hw:0 | flac -cs --endian=little --sign=signed --channels=2 --bps=24 --sample-rate=192000 --compression-level-0 - -o flac_raw24.flac

Changing the arecord file type to wav doesn't help, and neither does changing the sample rate. The only thing I changed between the 16 bit/sample recordingss and this was the -f and --bps fields. The 16 bit/sample recordings also work if I change the arecord file type to wav. This issue is described in greater detail at post 18 of the thread I created in the Slim Device forum (http://forums.slimdevices.com/showthrea ... mple/page2). Does anyone have an idea of what's going on here? Any help would be greatly appreciated.

Cheers,

Michael

cpc464
Posts: 239
Joined: Tue Jul 08, 2014 5:10 pm
Contact: Website

Re: Troubles with Transcoding to FLAC

Wed Dec 17, 2014 4:51 pm

No idea really, but to make sure it is not a problem with the Pi being unable to keep up with the data rate, I would try the same command on a Linux PC, if you have access to one. The fact that you tried WAV strongly suggests data rate is not the problem though.
Unix engineer since 1989

Return to “General discussion”