Repository navigation
Commit 065db03
authored
Route low-sample-rate MP3s to the remux path (2.4.7) (#91)
Chrome's and Edge's AAC encoders take nothing below 44.1 kHz, and old
rips are often 32 kHz or less. canEncodeAudio probed without the source
rate, answered yes, and the encoder then threw mid-conversion: 30 of
this week's 34 native failures, all reading reason "unknown" until
2.4.6 started capturing the detail (#88).
Probe at the file's own sample rate and channel count instead. A rate
the encoder rejects now takes the existing MP3-remux branch, which
re-encodes nothing and works at any rate; a file that used to die at
the convert stage produces a working MP4. Confirmed in branded Chrome:
the 32 kHz fixture that crashed now remuxes and converts.
No resampling; whether low-rate files are common enough to justify a
resample-to-AAC upgrade is what the audio_hz telemetry will show.
Fixes #881 parent a7d9778 commit 065db03
4 files changed
Lines changed: 31 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
189 | 205 | | |
190 | 206 | | |
191 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
274 | 272 | | |
275 | 273 | | |
276 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
277 | 285 | | |
278 | 286 | | |
279 | 287 | | |
| |||
Binary file not shown.
0 commit comments