Set preferred resolution for HLS.

This forum is about all development around libVLC.
Jo2003
Blank Cone
Blank Cone
Posts: 67
Joined: 08 Feb 2010 13:29

Set preferred resolution for HLS.

Postby Jo2003 » 16 Mar 2018 13:33

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

User avatar
InTheWings
Developer
Developer
Posts: 1273
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: Set preferred resolution for HLS.

Postby InTheWings » 16 Mar 2018 13:48

Sorry, but that's not the default for 3.0. Reset your pref to default.

Otherwise, set bandwidth
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

Jo2003
Blank Cone
Blank Cone
Posts: 67
Joined: 08 Feb 2010 13:29

Re: Set preferred resolution for HLS.

Postby Jo2003 » 16 Mar 2018 14:03

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

User avatar
InTheWings
Developer
Developer
Posts: 1273
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: Set preferred resolution for HLS.

Postby InTheWings » 16 Mar 2018 16:01

[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
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

Jo2003
Blank Cone
Blank Cone
Posts: 67
Joined: 08 Feb 2010 13:29

Re: Set preferred resolution for HLS.

Postby Jo2003 » 19 Mar 2018 14:03

Thanks again for trying to help! I'll try to find the needed setting in command line help for viewing HLS content (not streaming) ...

Jo2003
Blank Cone
Blank Cone
Posts: 67
Joined: 08 Feb 2010 13:29

Re: Set preferred resolution for HLS.

Postby Jo2003 » 13 Apr 2018 10:43

--adaptive-logic helped! Thank you very much!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 1 guest