Skip to content

Commit f74d5d5

Browse files
ValdikSStguillem
authored andcommitted
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 <[email protected]>
1 parent 2c57e34 commit f74d5d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/stream_out/chromecast/cast.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,8 @@ sout_stream_sys_t::GetAcodecOption( sout_stream_t *p_stream, vlc_fourcc_t *p_cod
924924
* devices (Chromecast 1 & 2) */
925925
if( *p_codec_audio == VLC_CODEC_VORBIS )
926926
ssout << "aenc=vorbis{quality=4},";
927+
else if( *p_codec_audio == VLC_CODEC_MP3 )
928+
ssout << "ab=320,";
927929
return ssout.str();
928930
}
929931

0 commit comments

Comments
 (0)