From 85cd5a9d113de506c0722acaada68af56c9f9642 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 19 Sep 2022 16:19:41 +0200 Subject: Move scripts to script dir, add youtube-hls-stream script, fix twitch stream script --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 25b34d4..c1ab013 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -533,6 +533,8 @@ static AVCodecContext *create_video_codec_context(AVFormatContext *av_format_con codec_context->max_b_frames = 0; codec_context->pix_fmt = AV_PIX_FMT_CUDA; codec_context->color_range = AVCOL_RANGE_JPEG; + if(use_hevc) + codec_context->codec_tag = MKTAG('h', 'v', 'c', '1'); switch(video_quality) { case VideoQuality::MEDIUM: codec_context->bit_rate = 10000000 + (codec_context->width * codec_context->height) / 2; -- cgit v1.2.3