PDA

View Full Version : Media MVP software client



teris
2004-12-25, 06:56 PM
Hi,

in this forum, are some discussions about a gbpvr-pc-client. My idea is not a gbpvr-client. I think a simple media-mvp-client for pc should be possible.
Does anyone know about a software like this, or do I have to create this software by myself ?

So I could use gbpvr with my wireless notebook while taking a bath :-)

Bye,
Sebastian

jazzmanjac
2004-12-28, 03:51 AM
I'm a bit confused on exactly what you want, but from what I gather you want to use your wireless network to see that which was recorded by GBPVR (on a pc/server) on your laptop....

If this is the case, connect your pc/server to the wireless network, "share" the folder from the pc/server that has said
recordings, mount it (map a drive) on your laptop, and use Windows Media Player -- or whatever viewer that can decode MPEGs -- on your laptop to watch the recordings. The only downside to this method is that you'll have to delete the recording(s) via GBPVR on the pc/server once you're done. (You could manually delete the recordings from your laptop but there is the issue of GBPVR thinking that a recording exists when it was deleted... IE, the GBPVR database is not updated to reflect the change.)

Here's why I'm a bit confused.... The little silver MVP box is a (thin) client that connects to a server. This server is typically a PC with a video capture card and the GB-PVR or Hauppauge Server Software. So from what I understand about client/servers is that the MVP box *IS* the client.

If this doesn't work for you, restate your "requirements" for your desires, and we'll go from there...

J

Lucas_24
2004-12-28, 04:16 AM
I think he's asking for an MVP emulator.

jazzmanjac
2004-12-28, 10:36 PM
If you're using the Hauppauge MediaMVP software, you can turn on the user interface on your PC by doing this at a command prompt:

net stop MVPMedia
net stop MVPMedia
MVPMedia /visible
net start MVPMedia

That should let you control your MVP from your PC.

J

Jean-Christophe
2004-12-29, 05:59 PM
Hello,

did someone tried to view GBPVR using MediaMVP software with this trick?
I don't have MadiaMVP software but it coulb be very interresting to try http://gbpvr.com/iB_html/non-cgi/emoticons/smile.gif

teris
2004-12-29, 06:03 PM
Hi,

I've tried this.
The MVP-GUI shows only the original-MVP-interface.

Bye,
Sebastian

sub
2004-12-29, 06:09 PM
No MVP client emulator exists that I know of. You'd have to write you're own.

Jean-Christophe
2004-12-29, 06:12 PM
I heard (a long time ago) that Hauppauge plan to make an SDK available.
Did anybody heard the same?

It could help bad programmers to try http://gbpvr.com/iB_html/non-cgi/emoticons/cool.gif

sub
2004-12-29, 06:20 PM
I'm remember seeing a post about this nearly a year ago (by shs?), but it never happened. There is no SDK.

SFX Group
2006-02-11, 08:44 AM
I like this idea, and am searching now (which is how i came accross this).

Ive added this thead to my email list so if an answers comes up i will see it.

TivoGuy
2006-02-11, 02:07 PM
Check out the mvpviewer on source forge.

http://sourceforge.net/project/showfiles.php?group_id=104568

It is written in java, but you can look at the source code, so it can be ported if you want.

Also, the MVP just uses a modified RFB protocol (like a VNC client), so here are a couple of links to the protocols:

MediaMVP Protocol
http://www.rst38.org.uk/vdr/mediamvp/protocol.html

RFB Protocol
http://www.realvnc.com/docs/rfbproto.pdf#search='rfb%20protocol'

SFX Group
2006-02-11, 03:55 PM
I am unable to download this at the moment, will try again later.

psycik
2006-02-12, 11:34 PM
Here try this: http://forums.gbpvr.com/showthread.php?t=13551

I've been playing (unsuccessfully).

TivoGuy
2006-02-13, 07:25 PM
In order to get the screen to react to key presses, I had to send the key code in the 4th byte of the key event message:


void writeKeyEvent(int keysym, boolean down) {
debug.println(Integer.toHexString(keysym));
eventBuf[eventBufLen++] = (byte) KeyboardEvent;
eventBuf[eventBufLen++] = (byte) (down ? 1 : 0);
eventBuf[eventBufLen++] = (byte) 0;
eventBuf[eventBufLen++] = (byte) keysym;
eventBuf[eventBufLen++] = (byte) ( (keysym >> 24) & 0xff);
eventBuf[eventBufLen++] = (byte) ( (keysym >> 16) & 0xff);
eventBuf[eventBufLen++] = (byte) ( (keysym >> 8) & 0xff);
eventBuf[eventBufLen++] = (byte) ( (keysym) & 0xff);
debug.println(new String(eventBuf));
}

SFX Group
2006-02-16, 07:41 AM
Hi

I am no programmer (well i was in 1988 or so but not now), if someone can come up with some working code i'm willing to pay for it...

jeddi
2006-02-23, 03:15 AM
Thanks for the code. After compiling with these changes, I can see the GB-PVR main menu, and I can use the Up and Down arrow keys to move up and down in the main menu. However, when I hit the Enter key, nothing happens. I was expecting this to select the currently highlighted menu option, as it would do on a native GB-PVR GUI.

Did you get the Enter key, or another way of selecting the highlighted menu item, to work?

In order to get the screen to react to key presses, I had to send the key code in the 4th byte of the key event message:


void writeKeyEvent(int keysym, boolean down) {
debug.println(Integer.toHexString(keysym));
eventBuf[eventBufLen++] = (byte) KeyboardEvent;
eventBuf[eventBufLen++] = (byte) (down ? 1 : 0);
eventBuf[eventBufLen++] = (byte) 0;
eventBuf[eventBufLen++] = (byte) keysym;
eventBuf[eventBufLen++] = (byte) ( (keysym >> 24) & 0xff);
eventBuf[eventBufLen++] = (byte) ( (keysym >> 16) & 0xff);
eventBuf[eventBufLen++] = (byte) ( (keysym >> 8) & 0xff);
eventBuf[eventBufLen++] = (byte) ( (keysym) & 0xff);
debug.println(new String(eventBuf));
}

TivoGuy
2006-02-23, 01:23 PM
By changing the code above, the enter key works for me. I can cursor up or down to choose a menu item, and then enter takes me into that screen. I don't think I changed anything else. I'm attaching my rfbproto.java file, in case you want to try compiling with it.

The mvpviewer code currently only handles the GUI side of the MVP. I'm working on the MEDIA side right now. When I have something that works halfway decent, I'll post it here.

jeddi
2006-02-24, 03:22 AM
I could not open the downloaded zip file. I get this message when I try to open it: "The Compressed (zipped) folder is invalid or corrupt." Is it possible for you to email the file to me? Either way, I'll see if I can have a second go at it this weekend.

I am beginning to suspect that maybe it is possible that the Enter key did work, in principle, but my client's screen was not refreshing with the new screen for some reason.

Thanks.


By changing the code above, the enter key works for me. I can cursor up or down to choose a menu item, and then enter takes me into that screen. I don't think I changed anything else. I'm attaching my rfbproto.java file, in case you want to try compiling with it.

The mvpviewer code currently only handles the GUI side of the MVP. I'm working on the MEDIA side right now. When I have something that works halfway decent, I'll post it here.

TivoGuy
2006-03-14, 11:32 PM
I've been working on the media side of the MVP viewer, and I can stream video, MP3's, and net radio right now. There are still a LOT of bugs with the program, but it's lightyears ahead of where it was when I started.

I'm not really a programmer. I wrote the program in VB6 because that seemed the easiest language to learn, and there is a lot of information about it out on the internet. I also had to create a small DLL in C++ to handle the YUV to RGB conversions (VB was just too slow).

The majority of the MVP gui side of the program was ported from the MvpViewer written in java by Ian Cass of the MVPServer (http://vdr-mediamvp.sourceforge.net/mvpserver.html) sourceforge project The protocol for the gui and media sides came from the same project. I only have certain functions of the media side implemented, currently, so things like fast forward and rewind are not working.

The media side uses mplayer (http://www.mplayerhq.hu) to do all of the decoding of the video and audio. When a request for video or audio is received from the server, mplayer is instructed to start streaming from the local host on port 4444. The viewer program has a simple http server that listens for this request, and then requests chunks of the file from the MVP server to send to mplayer. Then, mplayer renders the video inside of the viewer window.

I've only tested the program from a machine local to the GBPVR MVP server, and over a 100 Mbps LAN. I don't think wireless would work very well, now.

For those who want to check out a pre-beta version, I've included a link. Unzip the file to a folder and run the setup.exe program. There is a config.txt file in the install directory that tells the program what the server IP address and ports are.
The keyboard commands are (arrows) up, down, left, right, m (main menu), s (stop a video or mp3). If the program crashes, check your task manager and make sure that mplayer has shut down. Kill it if it hasn't. For net radio, increase your buffer size (200 kb is what I use).

This first version should be used for testing only. When it crashes (and it will), it usually crashes the MVP server, too.

I'm still going to work on the program, but I'll post the source code as soon as I add comments. That way, others (with more programming experience) can work on it if they want.

Download (http://home.comcast.net/~cchoer/MVPVIEWERV01.zip)

I've added some screenshots below. I hope they aren't too big.

http://home.comcast.net/~cchoer/shot1.jpg

http://home.comcast.net/~cchoer/shot2.jpg

http://home.comcast.net/~cchoer/shot3.jpg

http://home.comcast.net/~cchoer/shot4.jpg

psycik
2006-03-15, 01:06 AM
Whoo hoo, I was hoping some one could do this.

I'll give it a try tonight!!

stefan
2006-03-15, 06:44 AM
Wow... cool... you seem to have done a good job! This is quite interesting if you can pull it off and get it stable =) Keep up the good work!

SFX Group
2006-03-15, 07:35 AM
Is someone able to help out with putting this on WIKI, i think that would help alot, there will be a number of people here that can help point in the direction to help it work. I for one would love an MVP client on the PC.

verysmallfoot
2006-03-17, 11:50 PM
Any update on this topic?
I am very interested in the Media-MVP like PC client for GBPVR.

ggee
2006-03-18, 01:09 AM
Do I have to run this on the GBPVR server? All I get is "Timeout gui". What are the ports on the Config.txt? I left them as the value they were. Do I need to change them?

Greg

djtaylor
2006-03-18, 11:57 AM
Do I have to run this on the GBPVR server? All I get is "Timeout gui". What are the ports on the Config.txt? I left them as the value they were. Do I need to change them?

Greg
Try setting the IP address to that of your pvr, ie. not 127.0.0.1 which is the local machine but rather the actual address.

jjakober
2006-03-21, 12:24 AM
What are the port numbers that should be entered into the config.txt file?

Also, do I need to set GBPVR to autostart an additional MVP server in the GBPVR configuration?

Thanks,
jjakober

SFX Group
2006-03-21, 07:08 AM
Do I have to run this on the GBPVR server? All I get is "Timeout gui". What are the ports on the Config.txt? I left them as the value they were. Do I need to change them?

Greg
First you need to SRART an MVP server on the server, this is done below:

SERVER
In config go to TAB "MVP" (your need the latest version of GBPVR for this tab) theres an option "Number of servers to auto start" this needs to be set to the amount of MVP clients you have, so if this is the ONLY one then set it to "1". Then OK and you will have the client on the server AND an MVP client you cant see as well.

The above must be done or no MVP client will log in as the server isnt "serving" any MVP client controls.

SFX Group
2006-03-21, 07:10 AM
Also, do I need to set GBPVR to autostart an additional MVP server in the GBPVR configuration?jjakober
Yes.

TivoGuy
2006-03-22, 12:03 AM
I've posted the VB6 source code for the MVP client here (http://home.comcast.net/~cchoer/MVPViewer_Source.zip), if anyone wants to look at it, or more importantly, make it run better.

Has anyone gotten it working on their own computer?

Does anyone know how we can coordinate making changes to the source? I wouldn't mind doing a complete rewrite (with better programming techniques), now that I know what's going on with the protocol.

SFX Group
2006-03-22, 07:08 AM
Ive created a thread in "Developers" so who ever wants to re-program it can post links there. The thread link is "http://forums.gbpvr.com/showthread.php?p=101675#post101675"

Post links here to help others who want to create parts. It might be handy who ever is coding have access to WIKI but for this only really one clinet per WIKI entry and from that we will get a working MVP Client.

I think a good move would be get a fairly stable working client then WIKI access would be a good idea.

See you in the new thread :o)

dcrera
2006-04-26, 10:19 AM
Hi,

Maybe in am in the right thread.

If the MVP is a thin client then can the MVP emulate what's on my PC. In other words can I VNC to the PC server from MVP and have full control of my server ?

Thanks

Lucas_24
2006-04-26, 01:34 PM
I believe Jorm wrote a XView plugin that allows ytou to VNC to the server through the MVP