Page 1 of 1
Set preferred resolution for HLS.
Posted: 16 Mar 2018 13:33
by Jo2003
Hi all, I'm using libVLC (now from VLC 3.0.1) to show some HLS streams. When starting a stream, player always starts with the lowest possible bandwidth and after that changes to higher bandwidth - with a markable hickup. Version 2.2.x was starting with the highest possible quality (and since my connection has enough bandwidth) it never had to change the quality and so there was no hickup.
Is there a possibility to set a preferred resolution before starting the stream? I know about the option :preferred-resolution ... but it doesn't change anything.
Thanks in advance!
Best regards,
Jörg
Re: Set preferred resolution for HLS.
Posted: 16 Mar 2018 13:48
by InTheWings
Sorry, but that's not the default for 3.0. Reset your pref to default.
Otherwise, set bandwidth
Re: Set preferred resolution for HLS.
Posted: 16 Mar 2018 14:03
by Jo2003
Thanks for the fast answer. I don't load any preferences at startup. I use libvlc option "--ignore-config". How to set the bandwidth?
Thanks,
Jörg
Re: Set preferred resolution for HLS.
Posted: 16 Mar 2018 16:01
by InTheWings
[fcartegn@x2 vlc]$ ./vlc --longhelp |grep adapt
VLC media player 4.0.0-dev Otto Chriek (revision 4.0.0-dev-1946-ge8a9def514)
--sout-schro-gop-structure {adaptive,intra_only,backref,chained_backref,biref,chained_biref}
--sout-schro-filtering {none,center_weighted_median,gaussian,add_noise,adaptive_gaussian,lowpass}
Unified adaptive streaming for DASH/HLS (adaptive)
--adaptive-logic {,predictive,nearoptimal,rate,fixedrate,lowest,highest}
--adaptive-maxwidth <integer>
--adaptive-maxheight <integer>
--adaptive-bw <integer> Fixed Bandwidth in KiB/s
--dvb-adapter <integer [0 .. 255]>
DVB adapter
Re: Set preferred resolution for HLS.
Posted: 19 Mar 2018 14:03
by Jo2003
Thanks again for trying to help! I'll try to find the needed setting in command line help for viewing HLS content (not streaming) ...
Re: Set preferred resolution for HLS.
Posted: 13 Apr 2018 10:43
by Jo2003
--adaptive-logic helped! Thank you very much!