home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Club Elmshorn Atari PD
/
CCE_PD.iso
/
pc
/
1200
/
CCE_1233.ZIP
/
CCE_1233
/
MPLAYER.132
/
MPLYR_EN.DOC
< prev
next >
Wrap
Text File
|
1996-09-16
|
15KB
|
393 lines
****************************************************************************
M_PLAYER.PRG DOCUMENTATION Version 1.30
(developed from AVI_QT.PRG V1.10)
****************************************************************************
Quick Time (MOV) and AVI player (with sound), and a FLI/FLC player
G E N E R A L C O N S I D E R A T I O N S
*******************************************
What it can do:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Can play three types of animations:
- *.MOV (Quick Time)
- graphics with CVID compression only
- sound mono/stereo, 8/16 bits with TWOS or RAW format
- switch for image-sound synchronisation
- switch for sound
- *.AVI (Video for Windows)
- graphics with CVID and CRAM16 compression (not CRAM8)
- sound mono/stereo, 8/16 bits with TWOS or RAW format
- switch for image-sound synchronisation
- switch for sound
- *.FLI/FLC
- graphics only
- 3 speeds
Looking at all the CD's I've got, 74% of the .AVI or .MOV animations can be
played with M_PLAYER. If I add the files where I can hear the sound (graphics
not supported) or see the images (sound not supported) it's 92% of all my
animations. Not bad, and I am adding more formats all the time.
Hardware required:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
- Falcon 32768 color mode and plenty of RAM
- TT + NOVA, 32768/256 color modes and plenty of RAM
- TT + Crazy Dots 2 32768/256 color modes and plenty of RAM
Why not a STE?
¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Sorry, but I use some instructions or addressing modes which require a 68030.
Why not with 16 or 256 colors with my Falcon?
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Those graphics modes use bit-planes, and it's hard to manage... I've choosen
the True color mode because 1pixel=1word in memory, that's easy! But I am
working on 256-colour compatability for the next version.
Why 'plenty of RAM'?
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Lots of RAM is necessary when sound is played; manydeo-only MOV or AVI
files should be playable on most machines since images are read from the
disk one by one and immediately displayed. This means only one frame at a
time is read into RAM.
For sound, the only way I found to keep the replay speed correctly in sync
with the animation was to load the whole sound first, then play it (DMA
sound!) while loading the frames. This way, I get no sound-cuts.
Damn!, I've got 16Mb of TT RAM, and DMA sound can't be played from it!
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Well, you should set the 'TT Load' and 'TT Malloc' flags of the program to
keep the largest possible amount of ST RAM free. TT RAM is then used to load
the remaining sound data if it doesn't all fit into ST RAM. While playing,
this data is then copied into ST RAM by blocks till the end of the animation.
A copy of 1.5Mb takes 0.5sec. You may get some small gaps in the sound while
it is being copied across.
R U N N I N G T H E P R O G R A M
*************************************
The files:
¨¨¨¨¨¨¨¨¨¨
M_PLAYER.PRG ; the program V1.30
M_PLAYER.RSC ; the resource file (put into the same folder!)
MPLYR_EN.DOC ; English documentation (Merci Dave B.!)
MP_ICONS.RSC ; 4 icons made by Julien C. for your desktop
(can someone make a german translation?)
Running:
¨¨¨¨¨¨¨¨
You can double-click on it (you'll get the fileselector). You can also drag
and drop one animation on it (the fileselector will be skipped).
First dialog:
1) The first line indicates the type of file selected
2) The green box gives information about the video data (size,
number of frames, compression) and if the compression is supported or
not. If you have selected a sound-only file, you will get a message
saying 'No graphics found'. This dialogue also indicates whether the
video format is supported or not. If it is not supported, M_PLAYER
will still play any sound data that may be present, but there will be
no video
3) The orange box gives information about the sound (frequency,
resolution, channels). Some frequencies and resolutions (4bits) are not
supported. Sometimes you'll get the 'Supported' message but you get no
sound: this means that the system has run out of memory. If there is no
sound data present, You will get the message 'No Sound'. The file will
still play but it will be in video only.
4) The 'Play Sound' box selects/deselects sound playing (subject to
sound data being present of course!).
5) The 'Synchronize' box selects/deselects synchronization between
sound and video (subject to sound and video data both being present
of course!).
6) 'Max speed' is a switch for FLI/FLC files to display frames with
no delay between them.
7) 'Long delay' is a switch for FLI/FLC files to increase the delay from
normal to long when 'Max speed' is not set.
8) 'Information...' gives information about the program and it's
author. Please remember the program is shareware - registering for
the very modest shareware fee will support further development.
9) 'Go!' starts the animation. If sound data needs loading, playback
will be delayed and you will see a dialogue box saying 'Loading
sound...'.
10) 'Cancel' does just that.
Statistics:
¨¨¨¨¨¨¨¨¨¨¨
At the end of an animation, a BOX with statistics is displayed, if the movie
was only a sound file, this box is skipped. The following information is
given:
* Total frames: the number of video frames in the file.
* Frames displayed: the number of video frames actually displayed
(100% without sound synchronisation, sometimes less with synchronisation
on because some frames have been skipped to 'follow' the sound data).
* Total time: the duration of the animation in seconds.
* Average: number of frames actually displayed every second.
Program ending:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
If you've started with a fileselector, you'll be back in it after every
animation. You must choose 'cancel' from the selector to quit. With drag and
drop, you'll return automatically to the desktop.
How to stop an animation?
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Press the 'Control' key.
S O M E Q U E S T I O N S
***************************
How was it done?
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Dieter Fiebelkorn sent me his own work (in 'C') that could display CVID frames
from an .AVI or .MOV file. I made the translation into ASM, then added the GEM
interface, DMA sound, synchronisation and the NOVA and Crazy Dots 2 support.
Development History.
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Version 1.1:
The .AVI file parsing has been totally re-written to use the 'idx1' section
and get the sound more easily.
Version 1.2:
The FLI/FLC format is supported and the synchronisation has been improved with
some files (fewer frames skipped).
Version 1.22:
All files can be played in 256 colors mode (with a graphic card). That was
only possible with files in CVID format before. Note that video display in 256
colour mode is in mono only.
Version 1.30:
Crazy Dots 2 and Falcon compatability added.
Development Tools.
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
I used ASSEMBLE (Brainstorm), the fastest and the best assembler I've ever seen.
S U N D R Y B I T S
********************
The size of the program
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Dieter's version builds a very large table (512k, to convert CVID colors into
16 bits) each time it is launched. Because this needs floating point routines
(if no 68882 is present), I prefered to include this table directly onto the
disk (versions 1.00 to 1.20).
But, I found that 530Kb was a bit big on the disk and into memory (for
instance, a CRAM16 movie doesn't need it). So I took back Dieter's method and
now this table is built in memory only if required, and so does not need a
coprocessor. That's what the delay is between the main dialog and 'Loading sound...'.
Frequencies
¨¨¨¨¨¨¨¨¨¨¨
MAC or PC files have mainly use one of 3 frequencies: 11kHz, 22kHz or 44kHz.
When M_PLAYER loads the sound, it makes a frequency conversion to get 12,5kHz
or 25kHz or 50kHz which are the DMA frequencies (each 8 bytes per block, it
repeats the last byte, so getting 9 bytes and that's all).
Bugs?
¨¨¨¨¨
Yes, possibly! M_PLAYER may crash when:
- The fileselector is used with a CD ROM (I've got ICD+Metados).
Fix: Drag and drop the movies onto the program's icon.
- The animation is larger than the screen (you should try, maybe
it won't crash for you).
Fix: Try using a virtual screen.
- Extendos is running.
Fix: Don't know.
- Turbo Veille is running.
Fix: Don't know.
Please report any problems, bugs and development suggestions to the UK shareware
co-ordinator, (address at the end of this text) who will pass them on to the
author.
Thanks for their bug reports to:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
- Pascal R. (Pierrevert, France, Falcon 4Mo)
- Julien C. (Méron, France, Falcon 4Mo)
- Hervé P. (Paris, Falcon 4Mo)
- Dave B. (Stony Stratford, England, TT 20Mo + Crazy Dots 2)
Please remember that:
************** T H I S P R O G R A M I S S H A R E W A R E *************
From version 1.4, M_PLAYER is shareware. Unregistered versions are limited to
monochrome display. To get the best from M_PLAYER, register the program, get
32768 colour mode and prepare to be amazed. They said it couldn't be done!
If you want to register, please send £7 (seven UK pounds) or equivalent to
the UK support co-ordinator:
Dave Brook
22 Woolrich Gardens
Stony Stratford
BUCKS MK11 1JX
ENGLAND
email: register@mbha.demon.co.uk
You will get your key a short time later. It is unquestionably the best seven
quid's worth of shareware you will find, and it helps to ensure further
development of this great program. Registered users will get routine upgrades
free of charge. Wherever possible, upgrades and keys will be distributed by
email, so please include your postal and email address as well as your name on
your registration request.
S O M E T E S T S
*******************
Here is my system:
TT 32MHz, 2 Mo ST RAM, 16 Mo TT RAM, NOVA 32768 colors, CD-ROMx2 68030-cache
is ON and the program runs into TT RAM. My screen mode is 640x480x32768.
Most of those animations are taken from CDs sold with French magazines, so If
you're not French you won't be able to find them easily. But these tests will
give you an idea of the possible speed.
- AVI tests:
These were done before I added the sound. So the results are without
synchronisation so they are displayed at maximum speed. With synchro-
nisation, I get a minimum of 90% of frames displayed.
CD Atari Compendium
Path: FILES\MISC\JAGUAR\AVI, size 160x120.
file | total time | frames/s
----------------+--------------------+---------
DEFENDER | 9,6 | 26.5
HIGHLAND | 24.6 | 25.9
IRON2 | 16.9 | 25.9
PENGUINS | 5.9 | 25.4
PITFALL | 12.5 | 26.2
RAYMAN | 11.8 | 25.8
ULTRA | 9.9 | 25.4
WMCJ | 9.8 | 25.8
----------------+--------------------+---------
CD Loisirs CD n15
MYTHES\VIDATA, size 368x276
file | total time | frames/s
----------------+--------------------+---------
AVLEVFR | 70.2 | 15.0
----------------+--------------------+---------
PC Fun CD FUN n17
root, size 320x240
file | total time | frames/s
----------------+--------------------+---------
PCF17 | 6 | 13.9
----------------+--------------------+--------------
- MOV tests:
Files are synchronised, sometimes frames must be skipped
because the display is too slow. The size is always 320x240.
PC Fun CD FUN n17
path GUIGNOLS
file | frames displayed/total | frames/s
----------------+------------------------+------------------
JOHNNY | 78/111 | 10.6 (good)
TAPIE | 59/87 | 10.1 ( " )
VILLIERS | 18/42 | 6.5 (sometimes frozen)
----------------+------------------------+------------------
GEN 4 CD n°87
path CLUBEURO\VIDEOS
file | frames displayed/total | frames/s
----------------+------------------------+------------------
DEFI | 277/279 | 6.8 (good)
----------------+------------------------+------------------
path VIDEO
file | frames displayed/total | frames/s
----------------+------------------------+------------------
G4NEWS | 4851/5376 (6 minutes!) | 13.5 (good)
G4TDN3D | 1523/3060 | 7.4 ( " )
G4RSCI | 3462/3844 | 13.5 ( " )
G4TBM | 1561/2136 | 10.9 ( " )
1G4RPAN | 1905/2358 | 11.8 ( " )
G4INTRO | 246/496 | 7.5 (good)
G4PCON | 291/577 | 7.5 (good)
----------------+------------------------+------------------
Well, this is the END...