Page 1 of 1

[Solved] 10.0.1 VLC transcoding leads to java exception

Posted: Sun Feb 07, 2021 8:19 am
by thedude
Hi,

I am using Ubuntu 20.10 with UMS 10.0.1 and VLC 3.0.11.1. As soon as I try to transcode a video with VLC, I get the following java exception:

java.lang.NullPointerException: Cannot invoke "javax.swing.JCheckBox.isSelected()" because "this.audioSyncEnabled" is null

This seems to be independent of UPNP device and also video codec, as I tried several different ones.

Cheers
debug.zip
(31.78 KiB) Downloaded 227 times

Re: 10.0.1 VLC transcoding leads to java exception

Posted: Sun Feb 07, 2021 3:07 pm
by SubJunk
Thanks for reporting this. I believe I have fixed it, please try https://www.universalmediaserver.com/up ... x86_64.tgz

Re: 10.0.1 VLC transcoding leads to java exception

Posted: Sun Feb 07, 2021 8:11 pm
by thedude
Thank you for the quick response, there is still an exception but it changed to this:

Caught exception: Cannot invoke "javax.swing.JCheckBox.isSelected()" because "this.experimentalCodecs" is null

Cheers
debug2.zip
(28.28 KiB) Downloaded 301 times

Re: 10.0.1 VLC transcoding leads to java exception

Posted: Mon Feb 08, 2021 9:00 am
by SubJunk
Ah, similar bug. That should be fixed in https://www.universalmediaserver.com/up ... x86_64.tgz

Re: 10.0.1 VLC transcoding leads to java exception

Posted: Tue Feb 09, 2021 5:54 am
by thedude
Hi,

Yes, the java exceptions are fixed now :) Now I get a segfault with vlc, showing this error:

avcodec encoder error: Unknown option "rc_buffer_aggressivity"

But at this point I am not sure if this is a UMS or VLC issue, or some issue with my env, maybe you have an idea about it.

Cheers
debug3.zip
(2.2 KiB) Downloaded 226 times

Re: 10.0.1 VLC transcoding leads to java exception

Posted: Tue Feb 09, 2021 6:55 pm
by SubJunk
Thanks, at least we are making progress. It's possible we are using some outdated options so it could be good to experiment with them. We are passing in:

vlc -I dummy test.mkv --audio-track=0 --sub-track=-1 --sout #transcode{ab=448,vcodec=mp2v,channels=
2,strict-rc,soverlay,acodec=a52,scale=1.0,threads=8,vb=4096,samplerate=48000}:standard{access=file,mux=ts,dst='/tmp/UMS-root/VLC1612789089004.ts'} vlc://quit

Re: 10.0.1 VLC transcoding leads to java exception

Posted: Wed Feb 10, 2021 7:23 am
by thedude
Hi,

The only option I was not able to verify is the "strict-rc" option, in Google I only found references to the ffmpeg module, like in this example:

#transcode{venc=ffmpeg{vt=0,strict=1,keyint=12, rc-buffer-size=4000,strict-rc}...

but not as a plain option. Nevertheless, I am not a VLC expert, so maybe someone else can also have a look at this.

Cheers

Re: 10.0.1 VLC transcoding leads to java exception

Posted: Wed Feb 10, 2021 4:22 pm
by SubJunk
Can you run the VLC command from the logs in your command line, and try without strict-rc?

Re: 10.0.1 VLC transcoding leads to java exception

Posted: Thu Feb 11, 2021 12:29 am
by thedude
YES IT WORKS :)

I gradually removed options in the string but vlc kept segfaulting. Then I downloaded the vlc 3.0.12 source code and compiled it, voila now it works. The latest Ubuntu vlc version is 3.0.11.1, so either this is a bugfix from 3.0.11.1 -> 3.0.12, or some hickup with my libraries and compiling fixed it. Anyway, works now nicely.

Cheers

Re: 10.0.1 VLC transcoding leads to java exception

Posted: Thu Feb 11, 2021 12:19 pm
by SubJunk
That's great news, thanks for confirming that :)