mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[xcode] Add VP8 encoding profile
This commit is contained in:
parent
a11ab808b2
commit
7e106aec09
@ -260,6 +260,19 @@ init_settings(struct settings_ctx *settings, enum transcode_profile profile, str
|
||||
settings->video_codec = AV_CODEC_ID_PNG;
|
||||
break;
|
||||
|
||||
case XCODE_VP8:
|
||||
settings->encode_video = 1;
|
||||
settings->silent = 1;
|
||||
// See explanation above
|
||||
#if (LIBAVFORMAT_VERSION_MAJOR > 58) || ((LIBAVFORMAT_VERSION_MAJOR == 58) && (LIBAVFORMAT_VERSION_MINOR > 29))
|
||||
settings->format = "image2pipe";
|
||||
#else
|
||||
settings->format = "image2";
|
||||
#endif
|
||||
settings->pix_fmt = AV_PIX_FMT_YUVJ420P;
|
||||
settings->video_codec = AV_CODEC_ID_VP8;
|
||||
break;
|
||||
|
||||
default:
|
||||
DPRINTF(E_LOG, L_XCODE, "Bug! Unknown transcoding profile\n");
|
||||
return -1;
|
||||
|
@ -23,9 +23,10 @@ enum transcode_profile
|
||||
XCODE_MP3,
|
||||
// Transcodes the best audio stream into OPUS
|
||||
XCODE_OPUS,
|
||||
// Transcodes the best video stream into JPEG/PNG
|
||||
// Transcodes the best video stream into JPEG/PNG/VP8
|
||||
XCODE_JPEG,
|
||||
XCODE_PNG,
|
||||
XCODE_VP8,
|
||||
};
|
||||
|
||||
struct decode_ctx;
|
||||
|
Loading…
Reference in New Issue
Block a user