JVLC VLM

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
Jethro
New Cone
New Cone
Posts: 1
Joined: 13 Jul 2007 11:04

JVLC VLM

Postby Jethro » 13 Jul 2007 11:19

Hello. This is my first post here. I had playing around wth JVLC latest two days and was gratefully surprised to see it working so smooth. Problem occurred when it comes to use VLM trunk of JVLC. Apparently, there is no working example on the entire net and the vlm.addBroadcast() method seems to always fail creation. I was wondering whether I'm doing something wrong or the VLM trunk is not yet functional. I use 2007-03-10 release for windows.
I'd really appreciate if someone can put up some light on this misterious VLM for JVLC behaviour. If anyone managed to get it working it would be great if you can post some of your code :?: and tell me where did you get your java VLC binding :?: .

Here is the code I use, guess this doesn't mind anyway as addBroadcast raises a creation failed VLC exception:

Code: Select all

String streamName = [streamName]; String location = [file URI]; String output="#std{access=udp,mux=ts,dst=127.0.0.1:1234}"; jvlc.vlm.addBroadcast(streamName, location, output, new String[0], true, false); jvlc.vlm.setOutput(streamName, output); jvlc.vlm.playMedia(streamName);
And the exception:

Code: Select all

org.videolan.jvlc.VLCException: Media [streamName] creation failed at org.videolan.jvlc.VLM._addBroadcast(Native Method) at org.videolan.jvlc.VLM.addBroadcast(VLM.java:39)

Gujs
Blank Cone
Blank Cone
Posts: 74
Joined: 22 Oct 2004 19:28

Re: JVLC VLM

Postby Gujs » 16 Jul 2007 10:59

I am using it under linux. I thinl it was fixed some time ago, so you should get or compile yourself a newer version of jvlc. I compiled it a week ago and jvlc and vlm works great.

shereen ahmed
New Cone
New Cone
Posts: 7
Joined: 27 Aug 2007 10:20

Re: JVLC VLM

Postby shereen ahmed » 27 Aug 2007 11:12

I done the same example and gave the same error
are u found a solution ???????????

jzucherato
New Cone
New Cone
Posts: 1
Joined: 04 Jan 2008 13:45

Re: JVLC VLM

Postby jzucherato » 15 Jan 2008 11:44

Gujs, you cross-compile it for win32 or you are using under linux??
If it's for win32 please share the compiled files, i tried to cross-compile but its faild.
thanks.

fatou
New Cone
New Cone
Posts: 1
Joined: 28 Jan 2008 15:44

Re: JVLC VLM

Postby fatou » 28 Jan 2008 16:06

Hi everybody,
I am facing the same problem I am using eclipse under windows. The jvlc version I am using is jvlc-0.9.0-20070310.
My code is below:

Code: Select all

public class JVLCTest { public static void main(String[] args){ System.loadLibrary("libvlc"); System.loadLibrary("jvlc"); String[] arg = new String[3]; arg[0] = "--plugin-path=C:\\jvlc-0.9.0-20070310\\plugins"; arg[1] = "-vvv"; arg[2] = "--extraintf=logger"; JVLC jvlc = new JVLC(arg); try { String streamName = "Test"; String output="#std{access=udp,mux=ts,dst=127.0.0.1:1234}"; jvlc.vlm.addBroadcast(streamName,"C:\\Media\\Video\\Live%20Services.mpg", output, null, true, false); } catch (VLCException e) { e.printStackTrace(); } } }
I am just stuck, your help is really appreciated.
Fatou.


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 6 guests