Broken Sword I & II - Enhanced cutscene project - Update
Moderator: ScummVM Team
- eriktorbjorn
- ScummVM Developer
- Posts: 3561
- Joined: Mon Oct 31, 2005 7:39 am
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".)Phreddy wrote: [edit]I loaded the intermediary file in RAD Tools, used the "Smack It!" option and it came out awful:
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.
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.
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.
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
http://rapidshare.com/files/66851197/intro.dxa.html
- Raziel
- ScummVM Porter
- Posts: 1541
- Joined: Tue Oct 25, 2005 8:27 am
- Location: a dying planet
- Contact:
I was going to describe long and boring which you pinpoint with your few lines, thanksjohn_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.
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
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 . 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 .
http://rapidshare.com/files/67074868/intro.dxa.html
Hopefully it looks better, as it now takes almost 64MB . 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 .
- eriktorbjorn
- ScummVM Developer
- Posts: 3561
- Joined: Mon Oct 31, 2005 7:39 am
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.Phreddy wrote: Hopefully it looks better, as it now takes almost 64MB .
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.
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.
http://rapidshare.com/files/67715436/intro.dxa.html
Hopefully the changes made for a better-loking result.