javahttp-live-streamingvlcjvlcj-javafx

How to choose video quality in VLCJ?


At the moment I'm using this HLS stream for testing:

https://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8

Very often the VLCJ player playing video starts at 144p quality which is bad. If after that start the video again, then the quality becomes 360p. When I switched the screen to the TV, it began to show video with 360p quality more often.

Also, before that, I created an application in C # with a VLC player. There, the video was launched at 144p quality, then after a while the quality changed to 720p automatically.

I run VLCJ without parameters, according to the most basic example

How to make sure that the best quality is chosen?


Solution

  • I just solved my problem. I looked at what version of VLC is used when running vlc.dotnet.forms... VLC version is 3.0.17.4. I used VLC version 3.0.9.2 with vlcj. I ran vlcj with VLC 3.0.17.4 and the video started as 144p and then changed to 1080p! The problem was in the VLC version. So this is a real solution to the problem.