Commit 4590ae2
committed
Use --force-rf64-format when decoding FLACs.
FLAC decodes to the standard WAV format by default, and makes no
consideration when a file requires more than 4GiB to do so, instead
exiting with an error. FLAC supports two alternative formats to
workaround the limitation, rf64 and wave64. I picked rf64 somewhat
arbitrarily, and also because ffmpeg considers it an extension of WAV.
For CD quality audio, which is 16-bit 441000 Hz stereo, this would
require a FLAC over 6 hours and 45 minutes to run into the issue.
However, it does rapidly become an issue with greator sample sizes,
rates, and channels. If you rip a Blu-ray Disc, for example, with a
7.1 soundtrack at 24-bit 192 kHz (not atypical), the uncompressed
audio would exceed 4GiB in just under 16 minutes.
Relatively rare limitation to bump into, but here’s the fix. 😀1 parent 22ff4f9 commit 4590ae2
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments