From 0fed65a4787b4ddf403d4ecf16d6eb0f577fb162 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Mon, 9 Jun 2025 19:55:10 -0500 Subject: [PATCH] Add FFmpeg speed and audio codec information to channel details --- apps/proxy/ts_proxy/channel_status.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/proxy/ts_proxy/channel_status.py b/apps/proxy/ts_proxy/channel_status.py index edb1bf5a..864ddac8 100644 --- a/apps/proxy/ts_proxy/channel_status.py +++ b/apps/proxy/ts_proxy/channel_status.py @@ -488,6 +488,12 @@ class ChannelStatus: source_fps = metadata.get(ChannelMetadataField.SOURCE_FPS.encode('utf-8')) if source_fps: info['source_fps'] = float(source_fps.decode('utf-8')) + ffmpeg_speed = metadata.get(ChannelMetadataField.FFMPEG_SPEED.encode('utf-8')) + if ffmpeg_speed: + info['ffmpeg_speed'] = float(ffmpeg_speed.decode('utf-8')) + audio_codec = metadata.get(ChannelMetadataField.AUDIO_CODEC.encode('utf-8')) + if audio_codec: + info['audio_codec'] = audio_codec.decode('utf-8') return info except Exception as e: