VLCJ input_SplitMRI... not a valid URI

This forum is about all development around libVLC.
xpapax
Blank Cone
Blank Cone
Posts: 12
Joined: 30 May 2011 16:56

VLCJ input_SplitMRI... not a valid URI

Postby xpapax » 30 May 2011 17:30

I have a very basic little player set up, it consists of two videos and an image currently. I use the Media Play List to play all three items, and run them in a loop. I used the following code to get the image to display in the video and remain on the screen, but I'm getting the following error output. The error does not seem to effect the play back, but I want to fix it anyways.

Code: Select all

... mediaListPlayer.setMediaPlayer(mediaPlayer); mediaList = mediaPlayerFactory.newMediaList(); mediaList.addMedia("C:\\test1.mov", "stop-time=2"); mediaList.addMedia("C:\\test2.mov","stop-time=2"); mediaList.addMedia("fake://C:\\test.jpg", "fake-duration=3000"); mediaListPlayer.setMediaList(mediaList); mediaListPlayer.setMode(MediaListPlayerMode.LOOP); mediaListPlayer.play();
There is more code to set everything up but the errors didnt start until I added

Code: Select all

mediaList.addMedia("fake://C:\\test.jpg", "fake-duration=10000");
The error I get is
input_SplitMRL("C:\test.jpg"): not a valid URI!
Anyone know what I'm doing wrong here.

Thanks

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLCJ input_SplitMRI... not a valid URI

Postby Rémi Denis-Courmont » 30 May 2011 19:06

You're passing a file path where a URI is expected. This may be a bug in your code, or it may be a bug in your VLC bindings.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: VLCJ input_SplitMRI... not a valid URI

Postby sherington » 30 May 2011 20:08

Is there even a fake module anymore?

I can't see one in the vlc 1.2.x code.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLCJ input_SplitMRI... not a valid URI

Postby Rémi Denis-Courmont » 30 May 2011 20:15

No. Images are now treated as normal.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: VLCJ input_SplitMRI... not a valid URI

Postby sherington » 30 May 2011 20:45

No. Images are now treated as normal.
Interesting, thanks!

This works...

Code: Select all

public class PicTest { public static void main(String[] args) throws Exception { MediaPlayerFactory factory = new MediaPlayerFactory(); MediaList playlist = factory.newMediaList(); playlist.addMedia("/home/me/1.jpg", "image-duration=3"); // "play" image with 3 second duration playlist.addMedia("/home/me/2.jpg", "image-duration=3"); MediaListPlayer player = factory.newMediaListPlayer(); player.setMediaList(playlist); player.setMode(MediaListPlayerMode.LOOP); player.play(); Thread.currentThread().join(); } }
That's much nicer than using "fake".

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLCJ input_SplitMRI... not a valid URI

Postby Rémi Denis-Courmont » 30 May 2011 21:04

Sure. Now you can "play" images from any byte stream, not just local files.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

xpapax
Blank Cone
Blank Cone
Posts: 12
Joined: 30 May 2011 16:56

Re: VLCJ input_SplitMRI... not a valid URI

Postby xpapax » 30 May 2011 21:13

Okay, so i tried changing it to

Code: Select all

mediaList.addMedia("C:\\test.jpg", "image-duration=5");
and now the image is staying on screen for about 1 second, same as if i didnt add "image-duration=..." at all.
Im also now receiving the following error.
[0d5afda0] main subpicture error: blending YUVA to J444 failed

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: VLCJ input_SplitMRI... not a valid URI

Postby sherington » 30 May 2011 21:18

Latest vlc, latest vlcj, works for me.

xpapax
Blank Cone
Blank Cone
Posts: 12
Joined: 30 May 2011 16:56

Re: VLCJ input_SplitMRI... not a valid URI

Postby xpapax » 30 May 2011 21:45

VLCJ 1.2.0
VLC 1.1.9.0

I should be fully up to date.
Maybe something to do with windows?

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: VLCJ input_SplitMRI... not a valid URI

Postby sherington » 31 May 2011 08:15

VLCJ 1.2.0
VLC 1.1.9.0

I should be fully up to date.
Maybe something to do with windows?
I use vlc 1.2.0-git. There are nightly Windows builds available for the upcoming version of vlc 1.2.0. Search the forum for a link.

xpapax
Blank Cone
Blank Cone
Posts: 12
Joined: 30 May 2011 16:56

Re: VLCJ input_SplitMRI... not a valid URI

Postby xpapax » 01 Jun 2011 16:43

So I was having no luck with

Code: Select all

playlist.addMedia("/home/me/2.jpg", "image-duration=3");
so I went back to using

Code: Select all

mediaList.addMedia("fake://C:\\test.jpg", "fake-duration=3000");
. I moved it onto a linux machine last night and I get no "Reparenting" errors, or
input_SplitMRL("C:\..."): not a valid URI!
errors. They seem to be limited to Windows. I haven't tried using the non "fake" way of displaying images on the linux machine yet.

Someone might want to look into why these bugs show up on Windows still.

ps. The linux machine was running the exact same version of the vlcj.jar, the only difference is the VLC player.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests