-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lossy flac-compressed files: issue with sox #136
Comments
I've looked into this further and it seems the issue is sox-related. I tried to de-compress from .flac to .s16 using sox: This works with short files and fails with long ones: Is there any way to perform lossy compression without using sox? |
There was issues with SoX on windows so its scripts were removed until it gets figured out, we did not want users care free down sampling files to broken files, currently GNU radio would be your best bet to make proper down-sampled files. |
Thanks for your response @harrypm. I'm not familiar with GNU radio yet. Is it command-line scriptable? In the meantime, I've found the following workaround: using sox.exe for the lossy compression, then pipe into flac.exe for compression.
This seems to work OK. For faster processing, it would be even better if FlaLDF supported 8 bits (currently 16 only) and non-standard bitrates (e.g. 20000). I'm not sure if there's a fundamental reason why that wouldn't be possible, or how to request this enhancement. |
Closing issue as workaround is available by using sox.exe in conjunction with flac.exe |
Checklist
Bug Description
Decode.exe doesn't output anything when the input file is a long, flac-compressed file.
(It works fine when the input file is a long, uncompressed 16-bit file.)
(It works fine when the input file is a short, flac-compressed file.)
Steps to Reproduce
sox.exe --rate 40000 --bits 16 --channels 1 --encoding signed --type raw capture.s16" --bits 8 --rate 20000 --channels 1 --type flac --compression 8 compressed.flac sinc -n 2500 0-9650
decode.exe vhs --sub_deemphasis --frequency 20 --level_detect_divisor 1 --fallback_vsync --recheck_phase --pal --threads 4 --tape_format Betamax compressed.flac decodedfile
Expected Behaviour
Decode.exe starts decoding as normal. Four files will be groing as decode process runs: .log, .json, .tbc, _chroma.tbc.
Actual Behaviour
After about 20 seconds, decode.exe fails with
Output files .log, .tbc, _chroma.tbc are all 0 bytes. No .json output file is available.
Environment
Additional Information
pipe:: Invalid data found when processing input
Is it related to tbc-video-export?
No
The text was updated successfully, but these errors were encountered: