summaryrefslogtreecommitdiffstats
path: root/src/VLCInput.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-02 07:14:19 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-02 07:29:33 +0100
commit98e61b8f765314e5132da97797590703eb6484ea (patch)
tree8f638c2ebd754aa97e9f0ce7b39366b64e80c4d8 /src/VLCInput.cpp
parenta910b890b5ce386edd42516c454a85e8d3616c0f (diff)
downloadODR-AudioEnc-98e61b8f765314e5132da97797590703eb6484ea.tar.gz
ODR-AudioEnc-98e61b8f765314e5132da97797590703eb6484ea.tar.bz2
ODR-AudioEnc-98e61b8f765314e5132da97797590703eb6484ea.zip
Merge patch from Francesco for VLC input
Adds cache control and compressor
Diffstat (limited to 'src/VLCInput.cpp')
-rw-r--r--src/VLCInput.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp
index 3a2e9ec..00d5fa4 100644
--- a/src/VLCInput.cpp
+++ b/src/VLCInput.cpp
@@ -138,7 +138,7 @@ int VLCInput::prepare()
// VLC options
char smem_options[512];
snprintf(smem_options, sizeof(smem_options),
- "#transcode{acodec=s16l,samplerate=%d}:"
+ "#transcode{acodec=s16l,samplerate=%d,afilter=compressor}:"
// We are using transcode because smem only support raw audio and
// video formats
"smem{"
@@ -153,7 +153,8 @@ int VLCInput::prepare()
char verb_options[512];
snprintf(verb_options, sizeof(verb_options),
- "--verbose=%d", m_verbosity);
+ "--verbose=%d --network-caching %s --compressor-makeup-gain=%s ",
+ m_verbosity,(char *)m_cache.c_str(),(char *)m_gain.c_str());
const char * const vlc_args[] = {
verb_options,