From e8ecf81b55907cda7d70aef831f122c5b923f796 Mon Sep 17 00:00:00 2001 From: andy_ Date: Tue, 21 Feb 2023 00:38:19 +0000 Subject: Prevent TS with Multiple Audio Streams breaking the buffer. Select the 1st Audio Stream. --- src/VLCInput.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index ca44f04..ef4cfc4 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -1,5 +1,6 @@ /* ------------------------------------------------------------------ * Copyright (C) 2022 Matthias P. Braendli + * Copyright (c) 2023 Andy Mace (andy.mace@mediauk.net) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -165,6 +166,11 @@ void VLCInput::prepare() vector vlc_args; vlc_args.push_back("--verbose=" + to_string(m_verbosity)); + //Prevent TS with Multiple Audio Streams breaking the buffer. Select the 1st Audio Stream. + vlc_args.push_back("--no-video"); + vlc_args.push_back("--no-sout-all"); + + if (not m_cache.empty()) { vlc_args.push_back("--network-caching=" + m_cache); } -- cgit v1.2.3