aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-19 16:19:41 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-19 16:19:41 +0200
commit85cd5a9d113de506c0722acaada68af56c9f9642 (patch)
treec9d3d78b1c4c335c0c48144a1d39c7ef1ae8ce1a /src
parent59b730a806c92acbf999a7fa35b8ece9fb7c3203 (diff)
Move scripts to script dir, add youtube-hls-stream script, fix twitch stream script
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
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;