Hi,
does anybody have a working example of how to use the streaming server (VLM) functionality. like for example there is the UglyPlayer class to show how a video can be played.
Thanks and Regards,
Maarten.
At the moment VLM functions are being refactored and cleanedup in VLC, so until then they will not be usable in JVLC either.Hi,
does anybody have a working example of how to use the streaming server (VLM) functionality. like for example there is the UglyPlayer class to show how a video can be played.
Thanks and Regards,
Maarten.
Code: Select all
org.videolan.jvlc.VLCException: Media channel1 creation failed
at org.videolan.jvlc.VLM._addBroadcast(Native Method)
at org.videolan.jvlc.VLM.addBroadcast(VLM.java:39)
at test.main(test.java:44)
Code: Select all
name = "channel1";
input = "dvb://";
output = "#duplicate{dst=std{dst=227.111.1.1:12345}}";
ch1options = new String[8];
ch1options[0] = "programs=3201";
ch1options[1] = "dvb-adapter=0";
ch1options[2] = "dvb-frequency=12303000";
ch1options[3] = "dvb-srate=27500000";
ch1options[4] = "dvb-voltage=13";
ch1options[5] = "dvb-satno=1";
ch1options[6] = "dvb-caching=500";
ch1options[7] = "sout-udp-caching=500";
try {
dvbCard1.vlm.addBroadcast( name, input, output, ch1options, true, false );
} catch (VLCException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Code: Select all
Starting test of jVLC!
[00000292] main playlist error: Reloading playlist not implemented.
[00000295] telnet interface: using the VLM interface plugin...
[00000295] main interface: International Domain Names not supported
[00000295] main interface error: socket bind error (Address already in use)
[00000295] main interface error: socket bind error (Address already in use)
[00000295] telnet interface error: cannot listen for telnet
[00000295] main interface error: no suitable interface module
[00000001] main libvlc error: interface "telnet,none" initialization failed
[00000299] logger interface: using logger...
org.videolan.jvlc.VLCException: Media channel1 creation failed
at org.videolan.jvlc.VLM._addBroadcast(Native Method)
at org.videolan.jvlc.VLM.addBroadcast(VLM.java:39)
at test.init(test.java:144)
at test.<init>(test.java:19)
at test.main(test.java:26)
Code: Select all
JVLC jvlc = new JVLC(new String[]{"--security-policy=1"});
try {
jvlc.vlm.addBroadcast("Test", "/media/a.avi", "#rtp{mux=ts,dst=224.123.111.101,port=1234,ttl=1}", null, true, false);
jvlc.vlm.playMedia("Test");
Thread.sleep(5000);
jvlc.vlm.stopMedia("Test");
jvlc.vlm.deleteMedia("Test");
} catch (Exception e) {
e.printStackTrace();
}
Code: Select all
[00000001] main libvlc debug: VLC media player - version 0.9.0-git Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--enable-ffmpeg' '--with-ffmpeg-libpostproc' '--with-ffmpeg-mp3lame' '--with-ffmpeg-zlib' '--with-ffmpeg-faac' '--enable-mostly-builtin' '--enable-dvb' '--disable-wxwidgets' '--disable-skins2' '--enable-debug' '--enable-vlm' '--enable-sout' '--enable-live555' '--enable-dvbpsi' '--enable-v4l' '--enable-v4l2' '--enable-screen' '--enable-realrtsp' '--enable-snapshot'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc: Found old config file at /home/jhenriques/.vlc/vlcrc. VLC will now use /home/jhenriques/.config/vlc/vlcrc.
libvlc: unknown option or missing mandatory argument `--security-policy=1'
Try `libvlc --help' for more information.
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xad3876e3, pid=25720, tid=2906712976
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# C [libvlc-control.so+0x76e3]
#
# An error report file with more information is saved as hs_err_pid25720.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Users browsing this forum: No registered users and 8 guests