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
#
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\"}}");