From 7850fb8711f1bc5efcd8c4adccd88c3221873a36 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Thu, 25 Nov 2021 14:44:18 +0100 Subject: [PATCH] force intra frame only with -g 1, not with deprecated intra, fix #107 --- ffplayout/output/desktop.py | 2 +- ffplayout/output/stream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ffplayout/output/desktop.py b/ffplayout/output/desktop.py index 3132d2da..39d9f08d 100644 --- a/ffplayout/output/desktop.py +++ b/ffplayout/output/desktop.py @@ -40,7 +40,7 @@ def output(): ff_pre_settings = [ '-pix_fmt', 'yuv420p', '-r', str(pre.fps), - '-c:v', 'mpeg2video', '-intra', + '-c:v', 'mpeg2video', '-g', '1', '-b:v', f'{pre.v_bitrate}k', '-minrate', f'{pre.v_bitrate}k', '-maxrate', f'{pre.v_bitrate}k', diff --git a/ffplayout/output/stream.py b/ffplayout/output/stream.py index 787101d8..76d9bc2e 100644 --- a/ffplayout/output/stream.py +++ b/ffplayout/output/stream.py @@ -42,7 +42,7 @@ def output(): ff_pre_settings = [ '-pix_fmt', 'yuv420p', '-r', str(pre.fps), - '-c:v', 'mpeg2video', '-intra', + '-c:v', 'mpeg2video', '-g', '1', '-b:v', f'{pre.v_bitrate}k', '-minrate', f'{pre.v_bitrate}k', '-maxrate', f'{pre.v_bitrate}k',