Page 1 of 1

jvlc and overlay problems

Posted: 23 Jun 2008 11:12
by agussi
Hi Filippo,

I am using jvlc for my project capturing a webcam stream, and transcoding to a file in linux.
I am able to display it in my own frame.
My problem is when I change the parameters in vlc in order to add time overlay on the video, I am getting a jvm crash :

Code: Select all

# # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xb7dfc9bc, pid=9618, tid=2870418320 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_15-b04 mixed mode, sharing) # Problematic frame: # C [libc.so.6+0x739bc] memcpy+0x1c #
Here is my java code :

Code: Select all

JVLC jvlc = new JVLC(args); String videoMedia = "/dev/video0"; String audioMedia = "/dev/audio1"; MediaDescriptor mediaDescriptor = new MediaDescriptor(jvlc, "v4l://"+videoMedia); mediaDescriptor.addOption(":v4l-adev="+audioMedia); mediaDescriptor.addOption(":v4l-norm=3"); mediaDescriptor.addOption(":v4l-frequency=-1"); mediaDescriptor.addOption(":sout=#transcode{vcodec=mp4v,vb=768,scale=1,acodec=mp3,ab=128,channels=2,soverlay}:duplicate{dst=display,dst=std{access=file,mux=ts,dst=\"/home/agussi/vlc.mpeg\"}}");
Thanks for your help.

Re: jvlc and overlay problems

Posted: 20 Oct 2008 10:28
by cordeo
I experience this very bug regularly when I'm working from NetBeans. The bug is actually an error in the zip-reading code and is triggered by class-loading (jar-files are in fact zip-files).

Can the error be reproduced consistently? If so, adding a comment on the bug report would probably be useful:
https://bugs.launchpad.net/ubuntu/+sour ... bug/227217