Skip to content

Extend wav2flac to support -c compression mode#1

Open
nigels-com wants to merge 1 commit intomewkiz:masterfrom
nigels-com:compression
Open

Extend wav2flac to support -c compression mode#1
nigels-com wants to merge 1 commit intomewkiz:masterfrom
nigels-com:compression

Conversation

@nigels-com
Copy link
Copy Markdown

Note: This is my first hands-on with golang, not 100% I'm doing it 100% correctly.

I'd come across mewkiz/flac PR #76 and plumbed wav2flac to have an opt-in for that.

Seems like it's working:

$ /usr/bin/time -v  go run main.go -f -c sample.wav  2>&1 | grep time
        Command being timed: "go run main.go -f -c sample.wav"
        User time (seconds): 10.95
        System time (seconds): 11.00
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:20.59

$ flac -t sample.flac 

flac 1.4.3
Copyright (C) 2000-2009  Josh Coalson, 2011-2023  Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

sample.flac: ok                    

$ file sample.wav sample.flac
sample.wav:  RIFF (little-endian) data, WAVE audio
sample.flac: FLAC audio bitstream data, 24 bit, stereo, 96 kHz, 25383680 samples

$ ls -lah sample.wav sample.flac 
-rwxr-xr-x 1 nigels nigels 132M Dec 31 11:47 sample.flac
-rwxr-xr-x 1 nigels nigels 146M Dec 31 11:47 sample.wav

Also updated go.mod to use github.com/mewkiz/flac v1.0.13

@nigels-com
Copy link
Copy Markdown
Author

See also: mewkiz/flac Issue #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant