Author Topic: PLAYMOVIE: Scaling Movie Size  (Read 1220 times)

Offline Pebah

  • Mc. Print
  • *
  • Posts: 3
    • View Profile
PLAYMOVIE: Scaling Movie Size
« on: 2010-Oct-12 »
I'm a new user of GLBasic, trying it out to see if it can do what I want--a non-game app that shows video, pics, text, in other words, a multimedia application that is easy to program. I have several questions now, but will start with basic issues.

I'm playing a movie using the PLAYMOVIE command. The movie was converted from a .mov to an .avi in Quicktime Player on a Mac. It was originally 320x240. How do I show that movie at that size and not scale it up to full screen as is happening now? Also how do I set the movie's location in the window?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10689
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: PLAYMOVIE: Scaling Movie Size
« Reply #1 on: 2010-Oct-12 »
try using SETSCREEN 320,240,0 before PLAYMOVIE.
It's always stretched to the full window size, isn't it?

Offline Minion

  • Mr. Polyvector
  • ***
  • Posts: 228
    • View Profile
Re: PLAYMOVIE: Scaling Movie Size
« Reply #2 on: 2011-Jul-26 »
Is there any other commands for the PLAYMOVIE command ? Have been fiddling around with this today as there was something I wanted to do. So far it just plays the move in the screen as best it can (keeping aspect ratio) but has whit stripped lines where its not filled ;( Is there any way to play the movie to a background screen or bitmap or something so that it can be used on object or other things ? Its one thing I used to do in the past (in DB) and have multiple cubes rotating around the screen while showing different videos on them.

MrTAToad

  • Guest
Re: PLAYMOVIE: Scaling Movie Size
« Reply #3 on: 2011-Jul-26 »
Thats because DB was using DirectX for the movie playing rather than the Windows Multimedia functions which is rather basic...


Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10689
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: PLAYMOVIE: Scaling Movie Size
« Reply #4 on: 2011-Jul-26 »
No rendering of movie to texture so far. I think that's pretty hard if not impossible for x-platform.
You *might* want to call ffmepg(.exe) to extract a single frame as jpg and load that? This might work in the desktop platforms at least. I always wanted to make an example for a basic video cutting app.