Skip to content

Commit 462a71c

Browse files
committed
Add support for ALAC in MP4
> ALAC audio inside MP4 files was what you usually got when you set up iTunes > to do lossless rips back in the day, and it still has the advantage of being > the easiest way to get lossless music onto an iPod without a firmware replacement. Closes #96
1 parent 8cae5f5 commit 462a71c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ The output encoding(s) can be set via the `-o` option as a comma-separated list.
166166
| `mp3` | Standard MP3 files | `.mp3` | :heavy_check_mark: | VBR, use -b to adjust the bitrate, default is 256 (kbps) |
167167
| `vorbis` | Standard Ogg/Vorbis files (in an OGG container) | `.ogg` || Use -b to adjust the bitrate, default is 256 (kbps) |
168168
| `wav` | Standard WAV files | `.wav` || 16-bit little endian signed audio, or 32-bit in HDCD mode |
169+
| `alac_mp4` | Standard MP4 files (with ALAC encoding) | `.mp4` | :heavy_check_mark: | Always uses maximum compression |
169170
| `aac_mp4` | Standard MP4 files (with AAC encoding) | `.mp4` | :heavy_check_mark: | Use -b to adjust the bitrate, default is 256 (kbps) |
170171
| `opus_mp4` | Standard MP4 files (with Opus encoding) | `.mp4` | :heavy_check_mark: | Use -b to adjust the bitrate, default is 256 (kbps) |
171172
| `pcm` | Raw audio, 16-bits, two channel, little-endian | `.raw` || |

src/cyanrip_main.c

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const cyanrip_out_fmt crip_fmt_info[] = {
5151
[CYANRIP_FORMAT_WAVPACK] = { "wavpack", "WV", "wv", "wv", 0, 3, 1, AV_CODEC_ID_WAVPACK, },
5252
[CYANRIP_FORMAT_VORBIS] = { "vorbis", "OGG", "ogg", "ogg", 0, 0, 0, AV_CODEC_ID_VORBIS, },
5353
[CYANRIP_FORMAT_ALAC] = { "alac", "ALAC", "m4a", "ipod", 0, 2, 1, AV_CODEC_ID_ALAC, },
54+
[CYANRIP_FORMAT_ALAC_MP4] = { "alac_mp4", "ALAC", "mp4", "mp4", 1, 2, 1, AV_CODEC_ID_ALAC, },
5455
[CYANRIP_FORMAT_WAV] = { "wav", "WAV", "wav", "wav", 0, 0, 1, AV_CODEC_ID_NONE, },
5556
[CYANRIP_FORMAT_OPUS_MP4] = { "opus_mp4", "OPUS", "mp4", "mp4", 1, 10, 0, AV_CODEC_ID_OPUS, },
5657
[CYANRIP_FORMAT_PCM] = { "pcm", "PCM", "pcm", "s16le", 0, 0, 1, AV_CODEC_ID_NONE, },

src/cyanrip_main.h

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ enum cyanrip_output_formats {
4343
CYANRIP_FORMAT_AAC,
4444
CYANRIP_FORMAT_WAVPACK,
4545
CYANRIP_FORMAT_ALAC,
46+
CYANRIP_FORMAT_ALAC_MP4,
4647
CYANRIP_FORMAT_MP3,
4748
CYANRIP_FORMAT_VORBIS,
4849
CYANRIP_FORMAT_WAV,

0 commit comments

Comments
 (0)