I get one more window named VLC (Direct 3D Output) Window in addition to normal window which displays/plays video. This happens when I invoke following recording API.
File dir = new File(System.getProperty("user.dir"), "Videos");
dir.mkdirs();
DateFormat df = new SimpleDateFormat("yyyyMMdd-HHmmss");
String fileName = dir.getAbsolutePath() + "/Capture-" + df.format(new Date()) + ".mpg";
String[] options = {
":sout=#transcode{vcodec=h264,vb=4096,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100}:duplicate{dst=file{dst=" + fileName + "},dst=display}"
};
player = new MediaPlayerFactory().newHeadlessMediaPlayer();
player.playMedia("rtsp://10.252.188.244/axis-media/media.amp?videocodec=h264", options);
Any idea why it happens. I need to turn it off