Broken Sword I & II - Enhanced cutscene project - Update

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

Impressive work overall Phreddy, kudos :)
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3561
Joined: Mon Oct 31, 2005 7:39 am

Post by eriktorbjorn »

Phreddy wrote: [edit]I loaded the intermediary file in RAD Tools, used the "Smack It!" option and it came out awful:
I haven't checked what you mean by awful, but I'm pretty sure that Smacker uses lossy compression. In other words, making a new Smacker movie will probably do a pretty good job of re-creating the compression artifacts that you worked so hard to get rid of. (Wikipedia's article about Smacker says that "[t]he compression rate can reach 1:12, but most of the quality is lost due to pixelation".)

DXA uses lossless compression, so all the details are preserved. It works best if each frame is as close as possible to the one that comes before it. If your filtering has caused shifts in the colours between frames, it could potentially mean that the DXA encoder won't be able to do a good job.
User avatar
john_doe
ScummVM Developer
Posts: 117
Joined: Fri Nov 04, 2005 8:25 pm
Location: Stuttgart, Germany

Post by john_doe »

The encoder uses the Smacker file just to get the number of frames and framerate.
You don't even have to create a new Smacker file.
So I'd just convert the cleaned up video (Avi I assume) to 8-bit PNGs (the RAD Tools can do that), rename the PNGs to match the Smacker filename and run encode_dxa with the original Smacker file and the new PNGs.
The resulting DXA probably won't look as good as the cleaned up video since the DXAs are palette-based where the Avi is probably true-color. Still, the videos would look much better than the Smacker originals.
User avatar
Phreddy
Posts: 32
Joined: Thu Jun 28, 2007 12:50 am

Post by Phreddy »

I meant to convert to DXA, not Smacker :oops:. Blame it on a brain fart :p. I had a rough day yesterday and went to bed right after work, but expect the DXA version today.
User avatar
Phreddy
Posts: 32
Joined: Thu Jun 28, 2007 12:50 am

Post by Phreddy »

Ok, I now made an actual DXA encode. My SCUMMVM folder is in a drive I can't access right now, so I can't try it for myself. Therefore, I ask that you test it for me. Here is the download link:

http://rapidshare.com/files/66851197/intro.dxa.html
User avatar
john_doe
ScummVM Developer
Posts: 117
Joined: Fri Nov 04, 2005 8:25 pm
Location: Stuttgart, Germany

Post by john_doe »

The DXA works in the standalone player.
But I see that all frames use the same palette, which is bad, since there are artifacts now caused by the color reduction.
If possible, you should try to let each frame have its own palette.
User avatar
Raziel
ScummVM Porter
Posts: 1541
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Post by Raziel »

john_doe wrote:The DXA works in the standalone player.
But I see that all frames use the same palette, which is bad, since there are artifacts now caused by the color reduction.
If possible, you should try to let each frame have its own palette.
I was going to describe long and boring which you pinpoint with your few lines, thanks :-)

It's VERY good in moving scenes, the artifacts there have been reduced to a minimum,
compared to the original (dxa from ScummVM's website, that is) but as john_doe stated
MANY little artefacts are now spread over the entire movie, making it look worse than
the one we have now, especially on steady scenes it looks like a step back.

Still, great work, keep on :-)
User avatar
Phreddy
Posts: 32
Joined: Thu Jun 28, 2007 12:50 am

Post by Phreddy »

Thanks for the feedback, it's much appreciated :).

john_doe, is this:

Image

what you're suggesting (the highlighted section was not set in this attempt)?
User avatar
john_doe
ScummVM Developer
Posts: 117
Joined: Fri Nov 04, 2005 8:25 pm
Location: Stuttgart, Germany

Post by john_doe »

Yes, that's looks right and should produce better-looking results.
User avatar
Phreddy
Posts: 32
Joined: Thu Jun 28, 2007 12:50 am

Post by Phreddy »

Here's another version, this time made using john_doe's suggestion:

http://rapidshare.com/files/67074868/intro.dxa.html

Hopefully it looks better, as it now takes almost 64MB :shock:. By the way john_doe, I couldn't find the standalone DXA player you were talking about and the ffdshow version I downloaded today doesn't have DXA decoding. Where ca I download this standalone player?


[edit:I'm a rude dumbass, aren't I?] Thanks for the compliment and encouragement, md5 :).
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3561
Joined: Mon Oct 31, 2005 7:39 am

Post by eriktorbjorn »

Phreddy wrote: Hopefully it looks better, as it now takes almost 64MB :shock:.
I haven't looked at this one, but in the one before that you could see that the backgrounds weren't entirely stable: Parts of them shifted slightly between frames. That probably contributed to the increase in size compared to the "original" DXA file.

If the palette is re-generated for each frame, you probably can't even be sure that the parts with the exact same colour are represented by the same value in two consecutive frames.

Ideally, the background should remain static, and the palette should only change when new colours are introduced into the picture. Of course, ensuring that is probably quite a bit of work.
User avatar
Phreddy
Posts: 32
Joined: Thu Jun 28, 2007 12:50 am

Post by Phreddy »

Uniformizing/stabilizing the colors on contiguous frames might be doable by simply making a new lossless encode with an extra filter. While I find out which settings to use, please take a look at this 64MB version.
User avatar
Raziel
ScummVM Porter
Posts: 1541
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Post by Raziel »

Gets better and better, keep on, Phreddy

As eriktorbjorn said, the background is still very unstable

Most noteable on the first scene left and right from the Eiffel Tower,
other than that it's awesome :-)

Can't wait to get my hands on the finished version
User avatar
Phreddy
Posts: 32
Joined: Thu Jun 28, 2007 12:50 am

Post by Phreddy »

Here's a new version with the new filterchain and new palette creation set to "every 2 frames":

http://rapidshare.com/files/67715436/intro.dxa.html

Hopefully the changes made for a better-loking result.
User avatar
Raziel
ScummVM Porter
Posts: 1541
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Post by Raziel »

It gets better :-)

This time the background noise shows up only every two or three seconds

The problem is, the raven isn't animated anymore (stuck on the sky)
unless there's fade-in and fade-out of the credits...

Overall really looking good, keep on
Post Reply