[vlc-commits] chromecast: transcode audio to MP3 320 kbps instead of 96 kbps

ValdikSS git at videolan.org
Thu Aug 15 16:14:20 CEST 2019


vlc | branch: master | ValdikSS <iam at valdikss.org.ru> | Thu Aug  8 22:33:48 2019 +0300| [f74d5d54e87ed0badb9ba7e0834b59370e1689fb] | 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>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f74d5d54e87ed0badb9ba7e0834b59370e1689fb
---

 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 c435f8ae69..9f909a9de1 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -924,6 +924,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