mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
[xcode] Add profile for ALAC encoding
This commit is contained in:
parent
f105958a64
commit
1977db0319
@ -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
|
settings->sample_format = AV_SAMPLE_FMT_S16; // Only libopus support
|
||||||
break;
|
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:
|
case XCODE_JPEG:
|
||||||
settings->encode_video = 1;
|
settings->encode_video = 1;
|
||||||
settings->silent = 1;
|
settings->silent = 1;
|
||||||
|
@ -23,6 +23,8 @@ enum transcode_profile
|
|||||||
XCODE_MP3,
|
XCODE_MP3,
|
||||||
// Transcodes the best audio stream into OPUS
|
// Transcodes the best audio stream into OPUS
|
||||||
XCODE_OPUS,
|
XCODE_OPUS,
|
||||||
|
// Transcodes the best audio stream into ALAC
|
||||||
|
XCODE_ALAC,
|
||||||
// Transcodes the best video stream into JPEG/PNG/VP8
|
// Transcodes the best video stream into JPEG/PNG/VP8
|
||||||
XCODE_JPEG,
|
XCODE_JPEG,
|
||||||
XCODE_PNG,
|
XCODE_PNG,
|
||||||
|
Loading…
Reference in New Issue
Block a user