Supported video codecs in SCUMMVM

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
dooplex
Posts: 36
Joined: Thu Apr 02, 2009 2:17 pm

Supported video codecs in SCUMMVM

Post by dooplex »

For .smk (Smacker) videos the only way to make them a bit smaller is by using encode_dxa.exe from the SCUMMVM Tools Package, which encodes these files to the .dxa format. Especially for "The Feeble Files" .dxa is still to big to fit on my small SSD.

I'm not perfectly sure, but I think that i remember that the Broken Sword video pack available from the SCUMMVM site was encoded as .mp2 (MPEG2). This files should have been smaller, MPEG2 being a lossy video codec and all (though I'm not sure, if they were actually smaller).

Now, is MPEG2 still supported? Maybe even something better?

And if so, which tools are to recode .smk or .dxa/.fla to another format?
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

No, support for MPEG2 videos has been dropped, for several reasons. As far as I know, DXAs are not that much smaller than SMKs. The only supported video formats for Feeble Files are the original Smacker video files, and the DXAs. You can always try and find the 2CD version, which misses some videos but it's much smaller overall
dooplex
Posts: 36
Joined: Thu Apr 02, 2009 2:17 pm

Post by dooplex »

I read a bit about how the DXA format works, and, in theory, it should be possible to resize the images from the SMK files to a smaller size and encode them to DXA then.

F.e. if you half each dimension (width/height) of the images, the encoded DXAs should 1/4 in size. But how would this play out in SCUMMVM? I better ask before I do all the work :-).
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

The game movies have been created for certain dimensions. If you resize them to other dimensions, they will probably not fit their intended places (though, this could theoretically work for full screen movies). If you do want to try this for full screen movies, try converting one movie first (e.g. the intro) and see if it works. The Oracle videos probably can't be resized, though.
dooplex
Posts: 36
Joined: Thu Apr 02, 2009 2:17 pm

Post by dooplex »

Another possibility would be resizing the images to half of their size, then resizing them back to their original size. The resulting images would be the right size, but would actually contain only a quarter of the information.

As far as I know, DXA uses the same algorithm as ZIP to compress the images, and ZIP should be able to handle this case, too. I'll do some experiments and post on it later...

BTW, what are the Oracle videos? Sorry, haven't played the Feeble Files, yet. It lay around for years until, a few days ago, it picked up my interest again.
dooplex
Posts: 36
Joined: Thu Apr 02, 2009 2:17 pm

Post by dooplex »

Just a quick question:

Is the DXA format used in SCUMMVM different from the DXA format implemented in ffmpeg? I.e. could I also use ffmpeg to recode video files for SCUMMVM?
User avatar
clone2727
Retired
Posts: 1611
Joined: Fri Jun 09, 2006 8:23 pm
Location: NJ, USA

Post by clone2727 »

dooplex wrote:Is the DXA format used in SCUMMVM different from the DXA format implemented in ffmpeg? I.e. could I also use ffmpeg to recode video files for SCUMMVM?
While ffmpeg does support dxa, AFAIK it only has a decoder and not an encoder.
dooplex
Posts: 36
Joined: Thu Apr 02, 2009 2:17 pm

Post by dooplex »

I've just checked, and you're right about that - ffmpeg only supports decoding a DXA file.

Is there any other (command line) tool which supports encoding of DXA besides encode_dxa from the SCUMMVM tools? I want to do some modifications to image quality/size.
Post Reply