[Solved] 10.0.1 VLC transcoding leads to java exception
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
[Solved] 10.0.1 VLC transcoding leads to java exception
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
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
Re: 10.0.1 VLC transcoding leads to java exception
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
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
Caught exception: Cannot invoke "javax.swing.JCheckBox.isSelected()" because "this.experimentalCodecs" is null
Cheers
Re: 10.0.1 VLC transcoding leads to java exception
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
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
Yes, the java exceptions are fixed now

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
Re: 10.0.1 VLC transcoding leads to java exception
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
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
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
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
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
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

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
That's great news, thanks for confirming that 
