http://www.perlmonks.org?node_id=398585


in reply to Video components for Tk?

I have looked into this several times and found nothing that works for my needs, last I looked. It will be very platform dependent. Are you running on windows or unix?

I cheated and make system calls to two tools for video playback in my car. I use mplayer with a geometry switch on the command line to put the window exactly where I want it, as well as a couple more flags to handle zooming and scaling the video to fit, run with no borders, and to reuse the same window when playing files in succession.

The second program is feh, which I use to playback images captured from the cam in a very fast flipbook style animation. Same deal, no borders, geometry tags, etc... I can post the command line params this evening if anyone is interested.

On the windows machine I've used the gplayer utility from the UnxUtils package, which basically plays back a video in a frameless window via mediaplayer api calls.

Replies are listed 'Best First'.
Re^2: Video components for Tk?
by jfroebe (Parson) on Oct 12, 2004 at 16:58 UTC

    Yup, there really isn't anything that is pure Perl based. We typically end up calling another app (mplayer, wmplayer, etc) and controlling it from Perl. Granted, we can tell the players, usually, to display without a frame in a specified 'window' - meaning embedded video.

    Since displaying video and syncing the sound are time critical, your best bet is to control the player from perl.

    Jason L. Froebe

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1