diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-02-19 18:35:08 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-02-19 18:35:08 +0100 |
commit | b4bdcf1f77c28e1dfdd0ebdcd774b0dd7cdd0bff (patch) | |
tree | ce9ab93e83d9f0f09776194cd12f9a1bb86949de /src/VLCInput.cpp | |
parent | d856517d7ed8ebd1af302602b777979d89785e0c (diff) | |
download | ODR-AudioEnc-b4bdcf1f77c28e1dfdd0ebdcd774b0dd7cdd0bff.tar.gz ODR-AudioEnc-b4bdcf1f77c28e1dfdd0ebdcd774b0dd7cdd0bff.tar.bz2 ODR-AudioEnc-b4bdcf1f77c28e1dfdd0ebdcd774b0dd7cdd0bff.zip |
Reorder VLC transcode options
It is hoped that converting to signed 16-bit after resampling
is going to fix the issue that sometimes it choses to use the
ugly_resampler instead of the libsamplerate-based one. The latter
works with floats.
Diffstat (limited to 'src/VLCInput.cpp')
-rw-r--r-- | src/VLCInput.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 0ce4f00..e7dfa21 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -143,11 +143,11 @@ int VLCInput::prepare() // VLC options std::stringstream transcode_options_ss; - transcode_options_ss << "acodec=s16l"; - transcode_options_ss << ",samplerate=" << m_rate; + transcode_options_ss << "samplerate=" << m_rate; if (not m_gain.empty()) { transcode_options_ss << ",afilter=compressor"; } + transcode_options_ss << ",acodec=s16l"; string transcode_options = transcode_options_ss.str(); char smem_options[512]; |