diff options
| author | andy_ <andy_@DESKTOP-1C0E5NI> | 2023-02-21 00:38:19 +0000 | 
|---|---|---|
| committer | andy_ <andy_@DESKTOP-1C0E5NI> | 2023-02-21 00:38:19 +0000 | 
| commit | e8ecf81b55907cda7d70aef831f122c5b923f796 (patch) | |
| tree | 14214ae4b1e79dcebc20ce63732548ebfadc726d /src/VLCInput.cpp | |
| parent | fff72cb8c17c2ff7f2c0a87f3e5e741009945a7b (diff) | |
| download | ODR-AudioEnc-e8ecf81b55907cda7d70aef831f122c5b923f796.tar.gz ODR-AudioEnc-e8ecf81b55907cda7d70aef831f122c5b923f796.tar.bz2 ODR-AudioEnc-e8ecf81b55907cda7d70aef831f122c5b923f796.zip  | |
Prevent TS with Multiple Audio Streams breaking the buffer. Select the 1st Audio Stream.
Diffstat (limited to 'src/VLCInput.cpp')
| -rw-r--r-- | src/VLCInput.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
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<string> 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);      }  | 
