Reputation: 61
After migrating my Java application from vlcj-3.12.1
to vlcj-4.8.2
, video adjustments are no longer working. Means: changing the video's brightness, contrast, saturation, hue or gamma has no effect. I am enabling video adjustments before changing any of the mentioned values and I am calling these methods after playback has started and video output is available. I have searched through various discussions about similar issues but none of the proposed solutions has worked for me. I have also tried to call setAdjustVideo(false)
right before setting it to true
again - no difference. Example code for setting the brightness:
float myBrightness = 2.0f;
vlcPlayer.video().setAdjustVideo(true);
vlcPlayer.video().setBrightness(myBrightness);
Surprisingly, it is working fine for all .avi
files I have tested, so I initially thought the issue might somehow be related to the video codec. But when using the native VLC player, applying the settings works just fine for all videos and formats. So it must have to do something with either vlcj
or my own code. Is there anything that needs to be taken care of that I am missing? Any additional setting or rule in vlcj-4
compared to previous versions?
I am using vlcj-4.8.2
in combination with VLC 3.0.17.4
(latest version) on Windows 10 with Java 17.0.5
. Thanks in advance!
Edit: (added native VLC error logs):
main debug: looking for video converter module matching "any": 48 candidates
d3d11_filters warning: no context available
d3d11_filters debug: D3D11 opaque without a texture
d3d11_filters warning: no context available
d3d11_filters debug: D3D11 opaque without a texture
chain error: Too high level of recursion (3)
chain error: Too high level of recursion (3)
main debug: no video converter modules matched
main error: Failed to create video converter
main debug: removing module "swscale"
main debug: Filter 000002080bf802a0 removed from chain
chain debug: Trying to use chroma I422 as middle man
Upvotes: 0
Views: 205