Using mJPEGfPlay
Sequence preparation and keyboard controls.
Sequence Preparation
Building a sequence with FFmpeg.
A sequence is a directory with image files, optional audio files, and its metadata file. These can be prepared in any order.
Image Files
Using [FFmpeg], convert a video in.mkv
into image files 1.jpg
, 2.jpg
, …
with:
$ ffmpeg -i in.mkv -cmp rd -dct faan -mbcmp rd -mbd rd -precmp rd -subcmp rd -trellis 2 -huffman optimal -q:v 16 %d.jpg
The above should result with the best possible output under quality (-q:v
) 16. FFmpeg's JPEG encoder quality setting ranges from 2 (best) to
31 (worst).
You can use -r
and -s
to set the output size and
rate respectively.
While we recommend JPEG, Java--and mJPEGfPlay in turn--also supports reading PNG, (W)BMP, and GIF images. However, a sequence must stick to a format, manually specified by its metadata file.
Optional Audio Files
Also using FFmpeg, convert the same video into PCM with:
$ ffmpeg -i in.mkv 1.wav
Up to eight simultaneous audio streams are supported with separate files
1.wav
, 2.wav
, …, 8.wav
. Only the first
stream will be used as a timing pilot.
Metadata File
A metadata file metadata.edencfg
can be made with mJPEGfPlay under File→New….
Keyboard Controls
Controlling most of mJPEGfPlay with your keyboard.
- xPlay/Resume
- zPause
- qStop
- sFast Rewind
- dFast Forward
- ←Step Backward
- →Step Forward
- [Jump To Start
- ]Jump To End
- \Jump To Frame…
- aTrickplay
- =Raise Volume (+10%)
- -Lower Volume (-10%)
- ↑Next Track
- ↓Previous Track