[Solved] 10.0.1 VLC transcoding leads to java exception

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
thedude
Posts: 11
Joined: Sun Feb 07, 2021 8:07 am

[Solved] 10.0.1 VLC transcoding leads to java exception

Post 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 223 times
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: 10.0.1 VLC transcoding leads to java exception

Post by SubJunk »

Thanks for reporting this. I believe I have fixed it, please try https://www.universalmediaserver.com/up ... x86_64.tgz
thedude
Posts: 11
Joined: Sun Feb 07, 2021 8:07 am

Re: 10.0.1 VLC transcoding leads to java exception

Post 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 287 times
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: 10.0.1 VLC transcoding leads to java exception

Post by SubJunk »

Ah, similar bug. That should be fixed in https://www.universalmediaserver.com/up ... x86_64.tgz
thedude
Posts: 11
Joined: Sun Feb 07, 2021 8:07 am

Re: 10.0.1 VLC transcoding leads to java exception

Post 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 220 times
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: 10.0.1 VLC transcoding leads to java exception

Post 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
thedude
Posts: 11
Joined: Sun Feb 07, 2021 8:07 am

Re: 10.0.1 VLC transcoding leads to java exception

Post 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
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: 10.0.1 VLC transcoding leads to java exception

Post by SubJunk »

Can you run the VLC command from the logs in your command line, and try without strict-rc?
thedude
Posts: 11
Joined: Sun Feb 07, 2021 8:07 am

Re: 10.0.1 VLC transcoding leads to java exception

Post 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
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: 10.0.1 VLC transcoding leads to java exception

Post by SubJunk »

That's great news, thanks for confirming that :)
Post Reply