pass arguments to libvlc/jvlc
Posted: 27 Jan 2010 22:46
Hi All,
I am using the java libvlc binding to grab snapshots from screen:// with the video.getSnapshot() method. Currently this works and I am getting png files.
Now I want to have jpeg files instead of the png files, so i tried to add different options to the libvlc:
None of this worked and I am still getting png files.
Another problem is, that I tried to transcode and stream with the libvlc and the jvlc binding. Therefor I passed the following to the mediaDescriptor.
I do not get any feedback about passed options from the debugging outputs. It seems, libvlc does not get anything from the options I am passing.
Some arguments, e.g. "-vvv" and "--no-osd", can be passed successfully directly with the instantiation variables (JVLC jvlc = new JVLC(args)).
Am I doing something wrong with passing the options?
Does someone has an idea, how to pass options to the libvlc?
Thanks
Mathias
I am using the java libvlc binding to grab snapshots from screen:// with the video.getSnapshot() method. Currently this works and I am getting png files.
Now I want to have jpeg files instead of the png files, so i tried to add different options to the libvlc:
Code: Select all
MediaDescriptor mediaDescriptor = new MediaDescriptor(jvlc,"screen://");
mediaDescriptor.addOption("--scene-format jpg");
mediaDescriptor.addOption("--snapshot-format jpg");
mediaDescriptor.addOption("--config path/to/vlcrc"); // config file with according configurations
Another problem is, that I tried to transcode and stream with the libvlc and the jvlc binding. Therefor I passed the following to the mediaDescriptor.
Code: Select all
mediaDescriptor.addOption("--sout='#transcode{....}:standard{....}'");
Some arguments, e.g. "-vvv" and "--no-osd", can be passed successfully directly with the instantiation variables (JVLC jvlc = new JVLC(args)).
Am I doing something wrong with passing the options?
Does someone has an idea, how to pass options to the libvlc?
Thanks
Mathias