JVLC addBroadcast

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
JMartin
New Cone
New Cone
Posts: 2
Joined: 02 Oct 2007 14:44
VLC version: 0.8.6c
Operating System: Windows/Linux
Location: Spain

JVLC addBroadcast

Postby JMartin » 02 Oct 2007 15:09

Hello. I'm using JVLC for windows with jvlc-0.9.0-20070310 and I can't run my webcam through JVLC.

When i put, "vlc -vvv dshow:// :dshow-vdev="USB2.0 WebCam PRO" :dshow-adev="" :dshow-size="" :sout=#display{dst=display}" in console, it work correctly, but i don't know how to do in java.

Code: Select all

JVLC video=new JVLC(); String[] options={"dshow-vdev=\"USB2.0 WebCam PRO\""}; String output="#display{dst=display}"; video.vlm.addBroadcast("webCam", "C:/Temp/guetta.avi", output, options, true, false); video.vlm.setOutput("webCam", output); video.vlm.playMedia("webCam");
Exception:
[00000306] main playlist error: Reloading playlist not implemented.
org.videolan.jvlc.VLCException: Media webCam creation failed
at org.videolan.jvlc.VLM._addBroadcast(Native Method)
at org.videolan.jvlc.VLM.addBroadcast(VLM.java:39)


Sorry for my English. Thanks.

wells
Blank Cone
Blank Cone
Posts: 15
Joined: 12 Aug 2008 08:53
Location: china
Contact:

Re: JVLC addBroadcast

Postby wells » 12 Sep 2008 05:31

video.vlm.addBroadcast("webCam", "C:/Temp/guetta.avi", output, options, true, false);
change to "video.vlm.addBroadcast("webCam", "dshow://", output, options, true, false);"
have a test!

pps
New Cone
New Cone
Posts: 3
Joined: 27 Dec 2008 04:02

Re: JVLC addBroadcast

Postby pps » 15 Jan 2009 20:20

You can also try something like this(haven't proof-read this, but i have a similar setup working):

Code: Select all

JVLC jvlc = new JVLC("-vvv", "dshow://", ":dshow-vdev=\"USB2.0 WebCam PRO\"", ":sout=#display"); mediaDescriptor = new MediaDescriptor(jvlc, "dshow://"); mediaPlayer = new MediaPlayer(mediaDescriptor); // you might want to call jvlc.setVideoOutput() here mediaPlayer.play();
Don't have much experience with using VLM with JVLC, so can't comment on that...

Sandeep Goel
New Cone
New Cone
Posts: 3
Joined: 26 Feb 2010 11:02

Re: JVLC addBroadcast

Postby Sandeep Goel » 02 Mar 2010 13:34

I have an DVI Input card attached to my system, I need to render its input on my canvas so I used the same approch described in this thread but I am getting below log and noting is available on my canvas.

*** LibVLC Exception not handled: No active input
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
[00000014] main input debug: Creating an input for 'dshow://'
[00000014] main input debug: waiting for thread initialization
[00000014] main input debug: thread started
[00000014] main input debug: thread 2980 (input) created at priority 1 (input/input.c:368)
[00000014] main input debug: `dshow://' gives access `dshow' demux `' path `'
[00000014] main input debug: creating demux: access='dshow' demux='' path=''
[00000015] main demux debug: looking for access_demux module: 0 candidates
[00000015] main demux warning: no access_demux module matched "dshow"
[00000015] main demux debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[00000014] main input debug: creating access 'dshow' path=''
[00000016] main access debug: looking for access module: 0 candidates
[00000016] main access error: no access module matched "dshow"
[00000016] main access debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[00000014] main input error: open of `dshow://' failed: could not create access: no access module matched "dshow"

Here is snapshot of my implementation.
String[] arg = new String[4];

arg[0] = "-vvv";
arg[1] = "dshow://";
arg[2] = ":dshow-vdev=\"DVI hardware\"";
arg[3] = ":sout=#display";
jvlc = new JVLC(arg);

MediaDescriptor mediaDescriptor = new MediaDescriptor(jvlc,
"dshow://");
MediaPlayer mediaPlayer = new MediaPlayer(mediaDescriptor);
jvlc.setVideoOutput(canvas);
mediaPlayer.play();
Kindly tell me where am I wrong. Thanks in advance.

BR ,
Sandeep


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 2 guests