Recent

Author Topic: MPlayerControl anomaly  (Read 3865 times)

user5

  • Sr. Member
  • ****
  • Posts: 419
MPlayerControl anomaly
« on: July 20, 2015, 07:28:03 pm »
The following is an obscure question so I won't be surprised if no one comments on it.

Sometimes when I use MPlayerControl to play a video in my Lazarus program, a 1/8" black vertical line and a short horiz. line appears on the right side of some .wmv videos as they play. In this case, each MPlayerControl box is placed by the program over a corresponding TImage and is sized according to the TImage that it's on top of. The attached .gif picture shows what the black lines look like. (The file shown is an .avi that's been converted to a .wmv) Does anyone have a suggestion about how to get rid of this line? If U need more info, let me know and thanks.

By the way here's a great site on MPlayer that I recently found.

http://www8.mplayerhq.hu/DOCS/HTML/en/MPlayer.html

user5

  • Sr. Member
  • ****
  • Posts: 419
Re: MPlayerControl anomaly
« Reply #1 on: July 20, 2015, 07:37:20 pm »
I realized right after I posted my message that I stupidly didn't attached the picture. Here it is.

user5

  • Sr. Member
  • ****
  • Posts: 419
Re: MPlayerControl anomaly
« Reply #2 on: July 22, 2015, 05:33:46 am »
In case any of you MPlayerControl users are interested, I recently encountered an interesting MPlayerControl problem but I also found a nice workaround fix.

Problem: When an MPlayerControl overlaps another MPlayerControl, either one of them can be put on top but when a MPlayerControl overlaps a TImage picture, the MPlayerControl will not allow you to bring the TImage to the front using the "BringToFront" command and this can be a real hassle if you need the TImage on top. The MPlayerControl just overrides the TImage setting.

Fix: Load the same picture that's in the TImage into one of the MPlayerControls, run/play the MPlayerControl and then on the next statement pause it. The still image in the MPlayerControl will be visible and you can then put that MPlayerControl on top. Of course, since that MPlayerControl doesn't hold a movie but instead holds a still image that represents what is in the TImage, you leave it paused while other stuff is playing. Cheers!

 

TinyPortal © 2005-2018