Recent

Author Topic: Mplayer Frontend to TBitmap  (Read 4433 times)

mercury

  • Full Member
  • ***
  • Posts: 154
Mplayer Frontend to TBitmap
« on: November 26, 2015, 06:43:07 am »
Mplayer can embedding to any window using “-wid”. But you can’t change the graph it show.
So I am looking is there any way to let Mplayer send the graph to a TBitmap before show on the screen. Then I can modify or analyze the graph.
Any idea?

Thank you very much.

mercury

  • Full Member
  • ***
  • Posts: 154
Re: Mplayer Frontend to TBitmap
« Reply #1 on: November 26, 2015, 10:24:45 am »
Maybe I can create an empty handle. Give it to Mplayer, then hook it.
Is that possible?

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Mplayer Frontend to TBitmap
« Reply #2 on: November 27, 2015, 09:06:49 pm »
Create new, hidden window. Then grab its context and transfer it to TBitmap or similar class.

mercury

  • Full Member
  • ***
  • Posts: 154
Re: Mplayer Frontend to TBitmap
« Reply #3 on: November 28, 2015, 03:49:57 pm »
Create new, hidden window. Then grab its context and transfer it to TBitmap or similar class.
That's not working under Windows XP and GTK. Only Windows 7 and up.
And, how to know what time to grab? There is no callback function.

benohb

  • Full Member
  • ***
  • Posts: 213
Re: Mplayer Frontend to TBitmap
« Reply #4 on: November 29, 2015, 08:48:12 pm »
http://www.linuxjournal.com/content/overlay-images-video-using-mplayer-and-mencoder


Quote
That's not working under Windows XP and GTK. Only Windows 7 and up.
you can grab anything in xlib-gtk and wayland
« Last Edit: November 29, 2015, 08:51:27 pm by benohb »

mercury

  • Full Member
  • ***
  • Posts: 154
Re: Mplayer Frontend to TBitmap
« Reply #5 on: November 30, 2015, 07:39:15 am »
http://www.linuxjournal.com/content/overlay-images-video-using-mplayer-and-mencoder
I want modify the graph in my program, not Mplayer. And real-time.

you can grab anything in xlib-gtk and wayland
I tried, in GTK read from "Canvas" got nothing.
Even in Windows, the window which you give the handle to Mplayer must be show.
If the window is hide, nothing can be read from "Canvas".

 

TinyPortal © 2005-2018