[xcode] Add profile for ALAC encoding

This commit is contained in:
ejurgensen 2021-01-17 22:45:24 +01:00
parent f105958a64
commit 1977db0319
2 changed files with 9 additions and 0 deletions

View File

@ -235,6 +235,13 @@ init_settings(struct settings_ctx *settings, enum transcode_profile profile, str
settings->sample_format = AV_SAMPLE_FMT_S16; // Only libopus support
break;
case XCODE_ALAC:
settings->encode_audio = 1;
settings->format = "data"; // Means we get the raw packet from the encoder, no muxing
settings->audio_codec = AV_CODEC_ID_ALAC;
settings->sample_format = AV_SAMPLE_FMT_S16P;
break;
case XCODE_JPEG:
settings->encode_video = 1;
settings->silent = 1;

View File

@ -23,6 +23,8 @@ enum transcode_profile
XCODE_MP3,
// Transcodes the best audio stream into OPUS
XCODE_OPUS,
// Transcodes the best audio stream into ALAC
XCODE_ALAC,
// Transcodes the best video stream into JPEG/PNG/VP8
XCODE_JPEG,
XCODE_PNG,