[PATCH] chromecast: transcode audio to MP3 320 kbps instead of 96 kbps
ValdikSS
iam at valdikss.org.ru
Thu Aug 8 21:33:48 CEST 2019
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.
---
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();
}
--
2.21.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190808/8dfe72f1/attachment.sig>
More information about the vlc-devel
mailing list