OS/2 Mpeg2

MPEG-1 and MPEG-2 player for OS/2 PM with MMX, SMP and OS2ENDIVE support.

Restricted support for avi files (from linux xavtv program).


Download latest version (1.05 Jun 2 2002).

ChangeLog


Installation:

no installation requiered, only valid environment variable %HOME% (SET HOME=any_directory).


Usage:

mpeg2 [ options ] file [ file ... ]

For multipart mpeg files use wildcards (sorted alphabeticaly),

example: e:/video/*.vob

or signum plus (without any spaces)

example: e:/video/part1.vob+part2.vob+part3.vob

Basic options:

-a
keep aspect ratio.
-c#
audio channel, default first found (mostly 0). If channel missing in source file, only video output is active.
-d
disable DVD decryption (dvdcss library).
-f#
output frequency is set to # frames/sec (only for pure video files), default frequency from source (if available) or maximal.
-g
gray output (default color).
-l
print information to file mpeg2.log.
-oY422
OS2ENDIVE support (use only if OS2ENDIVE installed).
-r [#]
repeat #times (without number permanent).
-s #
window scaled # (half -s0.5 and so on).
-t [#]
set test level (1:only stream decoding, 2:decoding and color conversion).
-u
toggle output thread, default no sepparate output thread for uniprocessor machines and separate output thread for SMP machines.
-x
disable drop output frames (use only on fast machines).
-z
grab enable (runtime key g). Frames saved to files fr######.pnm, (DVD approx 1MB/frame).
-B
set border mode (full desktop, no scaling, black border).
-F
set full desktop mode ( -Fa keep original aspect ratio).
-G#
set Gamma correction for output (in range 0.1 to 10.0).
-I
indirect opuput (without DIVE, slow).
-X#
divide output frequency by # (-X0 drop MPEG B-frames decoding, use on slow machines).
Other input formats:
-j
jpeg (JFIF) file[s] ( separate frames or continuous stream without any header)
-m
pgm,ppm or raw rgb files (for raw files set width and height).
-M
YUV pgm or raw files (for raw files set width and height).
-W
set frame width for raw source file.
-H
set frame height for raw source file.
Runtime keys:
a
audio (un)mute.
g
grab frame to file (only if switch -z used).
q
quit.
v
video output disable (enable).
Requiered environment variables:
HOME=directory
user home directory (example: SET HOME=c:/home).
Optional environment variables:
DVDCSS_VERBOSE=level
verbosity level dvdcss library (file dvdcss.log),

0 ... disabled,

1 ... errors (default level),

2 ... errors and debugging informations.

See command line samples and FAQ.

Requiered software:

emx runtime package http://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip

OS/2 with DART (Direct Audio RouTines) and DIVE (Direct Interface Video Extensions) support (v.4)


Used:

derived code from mpeg2dec, a free MPEG-2 video stream decoder and ac3dec, a free Dolby AC-3 stream decoder (http://www.linuxvideo.org)

libdvdcss, a free portable abstraction library for DVD decryption (http://www.videolan.org)

pccl, a Portable C++ Classes Library for OS/2,Linux,Win32.


Other platforms:

Code is portable (part of pccl ), currently running on OS/2(primary platform,emx,gcc,watcom), Linux(without windows scaling,gcc), Win32(without direct output,bcc,mvc,watcom).


Bug reports:

pccl@volny.cz
When reporting bugs, please include the version number and date of mpeg2.

Updates:

http://www.volny.cz/pccl/mpeg2