[vlc-commits] chromecast: transcode audio to MP3 320 kbps instead of 96 kbps
ValdikSS
git at videolan.org
Tue Aug 27 10:13:55 CEST 2019
vlc/vlc-3.0 | branch: master | ValdikSS <iam at valdikss.org.ru> | Thu Aug 8 22:33:48 2019 +0300| [1ac2dec2d3b1c2fbcdffac22b5ab13e8a48bd87c] | committer: Thomas Guillem
chromecast: transcode audio to MP3 320 kbps instead of 96 kbps
Chromecast transcoding code uses either Vorbis or MP3 for audio. For Vorbis,
quality=4 is used, but for MP3 no bitrate or quality setting is set, which
leads to default 96 kbps poor quality audio.
This patch explicitly sets 320 kbps bitrate for MP3, for much better audio
quality.
Tested on Chromecast 3.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
(cherry picked from commit f74d5d54e87ed0badb9ba7e0834b59370e1689fb)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1ac2dec2d3b1c2fbcdffac22b5ab13e8a48bd87c
---
modules/stream_out/chromecast/cast.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 5d2aefc139..f3840cf4c4 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -1104,6 +1104,8 @@ sout_stream_sys_t::GetAcodecOption( sout_stream_t *p_stream, vlc_fourcc_t *p_cod
* devices (Chromecast 1 & 2) */
if( *p_codec_audio == VLC_CODEC_VORBIS )
ssout << "aenc=vorbis{quality=4},";
+ else if( *p_codec_audio == VLC_CODEC_MP3 )
+ ssout << "ab=320,";
return ssout.str();
}
More information about the vlc-commits
mailing list