Linux - Create Process "mplayer"

BlitzMax Forums/BlitzMax Programming/Linux - Create Process "mplayer"

Yeshu777(Posted 2010) [#1]
Ok,

I've managed to get mplayer playing videos from CreateProcess with cmd line arguments under linux.

However it's necessary to End / CloseGraphics first in order to see the video being played and reinstate the Graphics after the video has finished.

Which does result in a momentary black screen

Can anyone suggest a "cleaner" method?

Will post complete source when I've got this working perfectly.

Best Regards,


Yeshu777(Posted 2010) [#2]
Anyone?

;)


markcw(Posted 2010) [#3]
No. As far as I know you can't avoid a black screen flash with the CloseGraphics/Graphics implementation. I think the only way to avoid it is to somehow retain the current graphics object.


Brucey(Posted 2010) [#4]
Or just draw the video onto the graphics context.


Yeshu777(Posted 2010) [#5]
"Or just draw the video onto the graphics context. "

From mplayer?

Any other hints Brucey?

Have the video playback working fine, just the black screen flash that makes it less than perfect.


Yeshu777(Posted 2010) [#6]
Finally have this working quite well using TProcess.

Can post an example if it's of use to anyone.