Citando mplayer-dev-eng-request@mplayerhq.hu: > Send MPlayer-dev-eng mailing list submissions to > mplayer-dev-eng@mplayerhq.hu > > To subscribe or unsubscribe via the World Wide Web, visit > http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng > or, via email, send a message with subject or body 'help' to > mplayer-dev-eng-request@mplayerhq.hu > > You can reach the person managing the list at > mplayer-dev-eng-owner@mplayerhq.hu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of MPlayer-dev-eng digest..." > > > Today's Topics: > > 1. Re: [PATCH] include libavutil to fix building with zr > (Diego Biurrun) > 2. [PATCH] Auto load vobsub from ~/.mplayer/sub and oss mixer > settings "per instance" (Alban Bedel) > 3. MPlayer -> Java Component ---> MPlayer and Video Annotations. > (Almerindo Rehem) > 4. Re: MPlayer -> Java Component ---> MPlayer and Video > Annotations. (Guillaume POIRIER) > 5. Re: MPlayer -> Java Component ---> MPlayer and Video > Annotations. (Jason Tackaberry) > 6. Re: [PATCH] -idle , MPlayer idle loop... (Oded Shimon) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 31 Aug 2005 14:25:38 +0200 > From: Diego Biurrun > Subject: Re: [MPlayer-dev-eng] [PATCH] include libavutil to fix > building with zr > To: mplayer-dev-eng@mplayerhq.hu > Message-ID: <20050831122538.GE4043@localhost.localdomain> > Content-Type: text/plain; charset=us-ascii > > On Wed, Aug 31, 2005 at 01:43:13AM -0700, Corey Hickey wrote: > > It seems the recent libavutil formation broke compilation with > > --enable-zr. I copied a few lines from libaf/Makefile into > > libvo/Makefile and that seems to do the trick. > > Can you please show me the error message? > > BTW, vo_zr2.c seems to contradict the man page regarding the way you > have to specify the suboptions. Could you please clarify this? > > Diego > > > > ------------------------------ > > Message: 2 > Date: Wed, 31 Aug 2005 15:01:02 +0200 > From: Alban Bedel > Subject: [MPlayer-dev-eng] [PATCH] Auto load vobsub from > ~/.mplayer/sub and oss mixer settings "per instance" > To: mplayer-dev-eng@mplayerhq.hu > Message-ID: <20050831150102.244228de.albeu@free.fr> > Content-Type: text/plain; charset="us-ascii" > > > Hi all, > > I was playing with subtitles autoload and i found out that vobsub in > ~/.mplayer/sub are not autoloaded. The first patch fix that. > > Another little bugger is ao oss when used with several dsp. One can > use -ao oss,oss:/dev/dsp1 to get fallback from one dsp on the other. > But then the mixer settings (device and/or channel) are wrong when using > the second dsp. So i made a little patch to allow setting mixer device > and channel "per instance". The syntax become: > -ao oss[:/dev/dsp[:/dev/mixer[:channel]]] > So one can use something like: > -ao oss,oss:/dev/dsp1:/dev/mixer:synth,oss:/dev/dsp2:/dev/mixer1 > and the mixer is working properly all the time :) > > Albeu > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: vobsub.patch > Type: application/octet-stream > Size: 1041 bytes > Desc: not available > Url : /pipermail/attachments/20050831/9d4f3af1/vobsub-0001.obj > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: ao_oss.patch > Type: application/octet-stream > Size: 2120 bytes > Desc: not available > Url : /pipermail/attachments/20050831/9d4f3af1/ao_oss-0001.obj > > ------------------------------ > > Message: 3 > Date: Wed, 31 Aug 2005 11:19:26 -0300 > From: Almerindo Rehem > Subject: [MPlayer-dev-eng] MPlayer -> Java Component ---> MPlayer and > Video Annotations. > To: mplayer-dev-eng@mplayerhq.hu > Message-ID: <1125497966.3313.14.camel@almerindo> > Content-Type: text/plain > > > Thanks! > > is It possible to paint over the window? > > I work with MPEG-7 and video annotations. My software works fine whith > Quicktime (quicktime for java), but i want to use MPlayer (because is > Open Source). The problem is: How to redirect the video display to a > Canvas component / JComponent or any java component ? > > If this is possible, I could to insert the component in my software, and > draw over the video (making and showing the annotations whith MPEG-7). > > Any sugestion ? > > > Hi Almerindo, > > > > if you can get the window ID of the JAVA component (via native > methods), you could pass it to the MPlayer via option -wid . > I tried it with a Visual Basic window and it worked. > > > > I use MPlayer as external viewer in my JAVA subtitling program. It > runs in slave mode (-slave option), is always-on-top (slave command > vo_ontop). I even resize the MPlayer window to fit into a certain area > on my JAVA JFrame. The only thing that sucks is the window decoration of > the MPlayer window. > > > > Greetings, > > Oliver > > > > > 3. Re: MPlayer-dev-eng Digest, Vol 32, Issue 71 > > (almerindo.rehem@aracaju.se.gov.br) > > > > To: mplayer-dev-eng@mplayerhq.hu > > Message-ID: <1125269746.431240f2c8ccb@mail.infonet.com.br> > > Content-Type: text/plain > > > > Hello all! > > > > It's possible to redirect the out of the MPLAYER to a Java Component ? > > Quicktime for java implements this. How to do? > > > > > > > > Example: redirecting the out of MPLAYER to java.awt.frame (And to redir to a > Component? > > JPanel ? Canvas?) > > > > ############################# > > package mplayer; > > > > import java.awt.Toolkit; > > import javax.swing.SwingUtilities; > > import javax.swing.UIManager; > > import java.awt.Dimension; > > /** > > *

Title:

> > * > > *

Description:

> > * > > *

Copyright: Copyright (c) 2005

> > * > > *

Company:

> > * > > * @author not attributable > > * @version 1.0 > > */ > > public class Application1 { > > boolean packFrame = false; > > > > /** > > * Construct and show the application. > > */ > > public Application1() { > > Frame1 frame = new Frame1(); > > // Validate frames that have preset sizes > > // Pack frames that have useful preferred size info, e.g. from their layout > > if (packFrame) { > > frame.pack(); > > } else { > > frame.validate(); > > } > > > > // Center the window > > Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); > > Dimension frameSize = frame.getSize(); > > if (frameSize.height > screenSize.height) { > > frameSize.height = screenSize.height; > > } > > if (frameSize.width > screenSize.width) { > > frameSize.width = screenSize.width; > > } > > frame.setLocation((screenSize.width - frameSize.width) / 2, > > (screenSize.height - frameSize.height) / 2); > > frame.setVisible(true); > > } > > > > /** > > * Application entry point. > > * > > * @param args String[] > > */ > > public static void main(String[] args) { > > SwingUtilities.invokeLater(new Runnable() { > > public void run() { > > try { > > UIManager.setLookAndFeel(UIManager. > > getSystemLookAndFeelClassName()); > > } catch (Exception exception) { > > exception.printStackTrace(); > > } > > > > new Application1(); > > } > > }); > > } > > } > > > > > > ######################### > > > > package mplayer; > > > > import java.awt.Dimension; > > > > import java.awt.Frame; > > import java.awt.event.WindowEvent; > > import java.awt.event.WindowAdapter; > > > > //import com.sun.tools.jdi.JDWP; > > > > /** > > *

Title:

> > * > > *

Description:

> > * > > *

Copyright: Copyright (c) 2005

> > * > > *

Company:

> > * > > * @author not attributable > > * @version 1.0 > > */ > > public class Frame1 extends Frame { > > > > public Frame1() { > > try { > > jbInit(); > > } catch (Exception exception) { > > exception.printStackTrace(); > > } > > } > > > > /** > > * Component initialization. > > * > > * @throws java.lang.Exception > > */ > > private void jbInit() throws Exception { > > super.removeAll(); > > setSize(new Dimension(400, 300)); > > setTitle("Frame Title"); > > > > this.addWindowListener(new Frame1_this_windowAdapter(this)); > > } > > > > public void this_windowClosing(WindowEvent e) { > > System.exit(0); > > } > > } > > > > > > class Frame1_this_windowAdapter extends WindowAdapter { > > private Frame1 adaptee; > > Frame1_this_windowAdapter(Frame1 adaptee) { > > this.adaptee = adaptee; > > } > > > > public void windowClosing(WindowEvent e) { > > adaptee.this_windowClosing(e); > > } > > } > > > > ##################################################### > > and enter with command (video.mp4 is in /tmp): > > wmctrl -xl | grep "mplayer.Frame1.mplayer.Application1" | awk '/0x.* / {print > $1}';echo > > $i ; mplayer -slave -quiet -wid 0x02c00041 -geometry 400 300 /tem/video.mp4 > > > > > > > > > ------------------------------ > > Message: 4 > Date: Wed, 31 Aug 2005 17:55:08 +0200 > From: Guillaume POIRIER > Subject: Re: [MPlayer-dev-eng] MPlayer -> Java Component ---> MPlayer > and Video Annotations. > To: mplayer-dev-eng@mplayerhq.hu > Message-ID: <4e03026a050831085541f8bfce@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > On 8/31/05, Almerindo Rehem wrote: > > > > Thanks! > > > > is It possible to paint over the window? > > > > I work with MPEG-7 and video annotations. My software works fine whith > > Quicktime (quicktime for java), but i want to use MPlayer (because is > > Open Source). The problem is: How to redirect the video display to a > > Canvas component / JComponent or any java component ? > > > > If this is possible, I could to insert the component in my software, and > > draw over the video (making and showing the annotations whith MPEG-7). > > > > Any sugestion ? > > Maybe you wanna use MPlayer's OSD code to write things on screen, or > Search for "[PATCH] vf_osd: OSD filter for MPlayer" on the ML. > You may also want to dig the mailling list for a patch that added a > video filter to paint "things" over a video (that patch comes from a > third party project). I had a look at my achives, and couldn't find it > unfortunately. > > Good luck > > Guillaume > -- > Reading doesn't hurt, really! > -- Dominik 'Rathann' Mierzejewski > > > > ------------------------------ > > Message: 5 > Date: Wed, 31 Aug 2005 12:34:14 -0400 > From: Jason Tackaberry > Subject: Re: [MPlayer-dev-eng] MPlayer -> Java Component ---> MPlayer > and Video Annotations. > To: mplayer-dev-eng@mplayerhq.hu > Message-ID: <1125506054.9869.47.camel@draco.sault.org> > Content-Type: text/plain; charset="us-ascii" > > On Wed, 2005-08-31 at 17:55 +0200, Guillaume POIRIER wrote: > > Maybe you wanna use MPlayer's OSD code to write things on screen, or > > Search for "[PATCH] vf_osd: OSD filter for MPlayer" on the ML. > > There is a slightly newer version of vf_osd at: > > http://sault.org/mebox/downloads/patches/ > > I've received several very good suggestions on this list and I haven't > yet had time to incorporate them and submit a new patch. I hope to have > time for that in the next few weeks. I'm very keen on seeing it get > merged. > > > You may also want to dig the mailling list for a patch that added a > > video filter to paint "things" over a video (that patch comes from a > > third party project). I had a look at my achives, and couldn't find it > > unfortunately. > > You might be talking about vf_bmovl2, which is also available at the > above URL. vf_bmovl2 was written for my project, MeBox, but it's > deprecated in favor of vf_osd. All future development effort will be > put into vf_osd. > > Cheers, > Jason. > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 229 bytes > Desc: This is a digitally signed message part > Url : /pipermail/attachments/20050831/4a17796b/attachment-0001.bin > > ------------------------------ > > Message: 6 > Date: Wed, 31 Aug 2005 20:42:03 +0300 > From: Oded Shimon > Subject: Re: [MPlayer-dev-eng] [PATCH] -idle , MPlayer idle loop... > To: mplayer-dev-eng@mplayerhq.hu > Message-ID: <20050831174203.GQ1320@ods15.dyndns.org> > Content-Type: text/plain; charset="us-ascii" > > On Sat, Aug 27, 2005 at 07:36:35PM +0300, Oded Shimon wrote: > > KotH can't remember how good is memory is, this never got committed :) > > > > The patch still applies cleanly, the only difference between this patch and > > one sent to ml a few months ago is the line numbers... > > > > For those who don't remember, this patch causes MPlayer to accept the > > option '-idle', and make it NOT quit once it's done playing all the files > > (or if there are no files). You can use only the commands 'loadfile' and > > 'loadlist'. The only big "bug" is that when using -fixed-vo, you're left > > with an ugly completely frozen (and not accepting input!) VO. > > Fixed.. The actual picture is obviously still stuck/ugly, because there's > no picture to show, but it accepts keyboard events (can accept 'q'.. that's > just about only use I see for it...) > > > Oh, I just realized another "bug", the 'loadfile' and 'loadlist' have > > changed in CVS since this patch, they now accept 2 params.. -idle doesn't > > accept this... > > Fixed.. > > > -idle doesn't imply -slave, but it's really most useful with it.. I > > think... > > > > I'm gonna try to fix the loadfile/loadlist thing and then commit.. comments > > anyone? > > Will commit in few days... > > - ods15 > -------------- next part -------------- > Index: cfg-mplayer.h > =================================================================== > RCS file: /cvsroot/mplayer/main/cfg-mplayer.h,v > retrieving revision 1.250 > diff -u -r1.250 cfg-mplayer.h > --- cfg-mplayer.h 17 Jul 2005 19:40:05 -0000 1.250 > +++ cfg-mplayer.h 27 Aug 2005 16:24:30 -0000 > @@ -372,6 +372,8 @@ > #endif > > {"slave", &slave_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL}, > + {"idle", &player_idle_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL}, > + {"noidle", &player_idle_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 0, NULL}, > {"use-stdin", "-use-stdin has been renamed to -noconsolecontrols, use that instead.", > CONF_TYPE_PRINT, 0, 0, 0, NULL}, > {"key-fifo-size", &key_fifo_size, CONF_TYPE_INT, CONF_RANGE, 2, 65000, NULL}, > {"noconsolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, > Index: mplayer.c > =================================================================== > RCS file: /cvsroot/mplayer/main/mplayer.c,v > retrieving revision 1.861 > diff -u -r1.861 mplayer.c > --- mplayer.c 23 Aug 2005 07:56:29 -0000 1.861 > +++ mplayer.c 27 Aug 2005 16:24:35 -0000 > @@ -85,6 +85,7 @@ > #include "input/input.h" > > int slave_mode=0; > +int player_idle_mode=0; > int verbose=0; > int identify=0; > int quiet=0; > @@ -1301,7 +1302,12 @@ > } > #endif > > - if(!filename){ > + if (player_idle_mode && use_gui) { > + mp_msg(MSGT_CPLAYER, MSGL_FATAL, MSGTR_NoIdleAndGui); > + exit_player_with_rc(NULL, 1); > + } > + > + if(!filename && !player_idle_mode){ > if(!use_gui){ > // no file/vcd/dvd -> show HELP: > mp_msg(MSGT_CPLAYER, MSGL_INFO, help_text); > @@ -1529,6 +1535,53 @@ > } > } > #endif > + > +while (player_idle_mode && !filename) { > + play_tree_t * entry = NULL; > + mp_cmd_t * cmd; > + while (!(cmd = mp_input_get_cmd(0,1,0))) { // wait for command > + if (video_out && vo_config_count) video_out->check_events(); > + usec_sleep(20000); > + } > + switch (cmd->id) { > + case MP_CMD_LOADFILE: > + // prepare a tree entry with the new filename > + entry = play_tree_new(); > + play_tree_add_file(entry, cmd->args[0].v.s); > + // actual entering the entry into the main playtree done after switch() > + break; > + case MP_CMD_LOADLIST: > + entry = parse_playlist_file(cmd->args[0].v.s); > + break; > + case MP_CMD_QUIT: > + exit_player_with_rc(MSGTR_Exit_quit, (cmd->nargs > 0)? cmd->args[0].v.i : > 0); > + break; > + } > + > + mp_cmd_free(cmd); > + > + if (entry) { // user entered a command that gave a valid entry > + if (playtree) // the playtree is always a node with one child. let's clear it > + play_tree_free_list(playtree->child, 1); > + else playtree=play_tree_new(); // .. or make a brand new playtree > + > + if (!playtree) continue; // couldn't make playtree! wait for next command > + > + play_tree_set_child(playtree, entry); > + > + playtree_iter = play_tree_iter_new(playtree, mconfig); // make iterator > starting at top of tree > + if (!playtree_iter) continue; > + > + // find the first real item in the tree > + if (play_tree_iter_step(playtree_iter,0,0) != PLAY_TREE_ITER_ENTRY) { > + // no items! > + play_tree_iter_free(playtree_iter); > + playtree_iter = NULL; > + continue; // wait for next command > + } > + filename = play_tree_iter_get_file(playtree_iter, 1); > + } > +} > //--------------------------------------------------------------------------- > > if(filename) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, filename); > @@ -4334,8 +4385,8 @@ > } > #endif > > -if(use_gui || playtree_iter != NULL){ > - > +if(use_gui || playtree_iter != NULL || player_idle_mode){ > + if (!playtree_iter) filename = NULL; > eof = 0; > goto play_next_file; > } > Index: help/help_mp-en.h > =================================================================== > RCS file: /cvsroot/mplayer/main/help/help_mp-en.h,v > retrieving revision 1.178 > diff -u -r1.178 help_mp-en.h > --- help/help_mp-en.h 28 Jul 2005 09:56:33 -0000 1.178 > +++ help/help_mp-en.h 27 Aug 2005 16:24:37 -0000 > @@ -161,6 +161,7 @@ > #define MSGTR_IncreaseRTCMaxUserFreq "Try adding \"echo %lu > > /proc/sys/dev/rtc/max-user-freq\" to your system startup scripts.\n" > #define MSGTR_LinuxRTCInitErrorPieOn "Linux RTC init error in ioctl (rtc_pie_on): > %s\n" > #define MSGTR_UsingTimingType "Using %s timing.\n" > +#define MSGTR_NoIdleAndGui "The -idle option cannot be used with GUI MPlayer.\n" > #define MSGTR_MenuInitialized "Menu inited: %s\n" > #define MSGTR_MenuInitFailed "Menu init failed.\n" > #define MSGTR_Getch2InitializedTwice "WARNING: getch2_init called twice!\n" > > ------------------------------ > > _______________________________________________ > MPlayer-dev-eng mailing list > MPlayer-dev-eng@mplayerhq.hu > http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng > > > End of MPlayer-dev-eng Digest, Vol 32, Issue 82 > *********************************************** >