View Full Version : I want to code an MPlayer frontend
amgeex
November 12th, 2007, 10:29 PM
Hello all programming people around here, nice to meet ya. Well, to the point: I want to code (build from scratch) an MPlayer frontend. Why? Because all available frontends at the moment are either damn ugly, not user friendly, or don't offer enough control (like Gnome MPlayer). So I decided I want to code a nice and simple, but good looking and user friendly frontend for MPlayer.
The thing is, I don't have a clue were to start, and I would like to hear some opinions from you guys before trying my hand at this. I'd like to know what I'd have to read and learn beforehand to be able to program this thing. The one thing I know is that I want to use the clutter toolkit to draw the GUI, so it looks nice and uses GTK2, etc.
I have (some) experience coding in Java and C++, but I'm not by any means a code guru, so that's why I'm asking for help here.
Thanks a lot in advance!
amgeex
November 13th, 2007, 03:24 AM
I can't believe no one knows about this here... Are there C++ bindings or "hooks" for mplayer? I know there are C and Python bindings for xinelib, but I've never seen that kind of stuff for mplayer... Anyone cares to give me some advice?
cyberjockey
February 3rd, 2008, 04:55 PM
u can see mplayer slave mode. also if u want to make it a gnome mplayer frontend then try looking at gstreamer. if u want more inputs i can give all the help i have little somewhat working code somewhere .. but i dont have time to finish it.
cyber
amgeex
February 3rd, 2008, 05:17 PM
Hey man, I had already forgotten about this thread, but I'm still interested in the project. I was thinking about using wxWidgets or something like that to make the frontend multiplatform, you know, so its not limited to GTK2 or Qt, but I'm still not sure.
I was looking at the slave mode of MPlayer, and I guess that's the way most frontends work? Anyway, I'll look a bit more into it, and if you could show me that code of yours it'd be great to get some ideas. Thanks for replying man! =D
AMGeeX
andrew.46
February 4th, 2008, 07:43 AM
Hi,
Have you had a look at the source for smplayer?
Andrew
rvm4000
February 4th, 2008, 11:01 AM
Hello all programming people around here, nice to meet ya. Well, to the point: I want to code (build from scratch) an MPlayer frontend. Why? Because all available frontends at the moment are either damn ugly, not user friendly, or don't offer enough control
:(
AFAIK there's no library to control mplayer. You need to call mplayer, read and process its output, and send commands using the slave mode (http://www.mplayerhq.hu/DOCS/tech/slave.txt).
You can embedded the video in your application by using the -wid option.
RawMustard
February 6th, 2008, 02:07 AM
http://gentoo-wiki.com/HOWTO_MPlayer#Using_mplayer_in_slave_mode
Setting up a named pipe(fifo)works great! You can control it with a simple webpage pointing your links to a python or bash script that translates your commands into mplayer recognisable ones :) The same can be done from fluxbox menu so you don't need a gui :)
amgeex
February 6th, 2008, 04:32 AM
Thanks for the replies people, I'm looking at the slave mode of mplayer, and also snooping around the smplayer source code, and when I have a little time I'll try my hand at it and see what happens, I'll let you guys know what's up.
AMGeeX
bince
July 25th, 2010, 03:12 PM
an mplayer pygtk gui tutorial http://mymplayer.blogspot.com/2010/07/mplayer-front-end-gui-code.html
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.