Broken Sword I & II - Enhanced cutscene project - Update
Moderator: ScummVM Team
Broken Sword I & II - Enhanced cutscene project - Update
I was very glad to see that the current release included better looking cutscenes for these two games. These DXA cutscenes, however, still don't look that good to me. Therefore, I'd like to take a crack at filtering and encoding them, then post the results here for you guys to evaluate. So, is there a way for me to extract them?
Last edited by Phreddy on Wed Aug 08, 2007 1:06 pm, edited 3 times in total.
- eriktorbjorn
- ScummVM Developer
- Posts: 3561
- Joined: Mon Oct 31, 2005 7:39 am
Re: Can I extract the Broken Sword I & II cutscenes from
The RAD Video Tools can be used to extract the individual frames and the sound from a Smacker file. Apart from their web site, this is also briefly described in the ScummVM tools README, the part about encode_dxa.Phreddy wrote:I was very glad to see that the current release included better looking cutscenes for these two games. These DXA cutscenes, however, still don't look that good to me. Therefore, I'd like to take a crack at filtering and encoding them, then post the results here for you guys to evaluate. So, is there a way for me to extract them?
Here's a preliminary attempt with the first Smacker file I extracted:
http://www.bestsharing.com/files/1Q8UkQ ... e.mp4.html
It's encoded with x264 and Vorbis, so you'll need ffdshow or CCCP in order to play it back. Check it out and tell me what you think.
http://www.bestsharing.com/files/1Q8UkQ ... e.mp4.html
It's encoded with x264 and Vorbis, so you'll need ffdshow or CCCP in order to play it back. Check it out and tell me what you think.
- spookypeanut
- ScummVM Developer
- Posts: 159
- Joined: Tue Sep 12, 2006 9:35 am
- Location: St Albans, UK
- Contact:
Don't want to rain on your parade or anything, but dxa is a lossless compression format, so you won't be able to improve on the quality...Phreddy wrote:Here's a preliminary attempt with the first Smacker file I extracted:
http://www.bestsharing.com/files/1Q8UkQ ... e.mp4.html
It's encoded with x264 and Vorbis, so you'll need ffdshow or CCCP in order to play it back. Check it out and tell me what you think.
http://en.wikipedia.org/wiki/Lossless_data_compression
(I'm sure any devs can correct me if I'm wrong...)
And anyway, for a true comparison you should make your video at the same resolution. And use the intro video, much easier to get to it in scummvm
- eriktorbjorn
- ScummVM Developer
- Posts: 3561
- Joined: Mon Oct 31, 2005 7:39 am
I thought he was trying to touch up some of the compression artifacts of the original movies. Though to be re-encoded as DXA movies for ScummVM to use (if that is the purpose) each frame still cannot use more than 256 colours, and it can't be larger than 640x480 pixels.spookypeanut wrote: Don't want to rain on your parade or anything, but dxa is a lossless compression format, so you won't be able to improve on the quality...
spookypeanut: like eriktorbjorn said, my intention is to remove the artifacting inherent in the source files like macroblocking and banding.
eriktorbjorn: since the previous versions of the cutscenes were MPEG2s, I assumed that ScummVM could read any format so long as had the appropriate DirectShow filters installed (my end goal was to create 1280x800 Lagarith (lossless) video with FLAC audio), is that not the case?
clem: thanks for the encouragement . I know this was an easy scene, my next sample will be the intro to the first game, which has tons of blocking. Hopefully it will end up nice .
eriktorbjorn: since the previous versions of the cutscenes were MPEG2s, I assumed that ScummVM could read any format so long as had the appropriate DirectShow filters installed (my end goal was to create 1280x800 Lagarith (lossless) video with FLAC audio), is that not the case?
clem: thanks for the encouragement . I know this was an easy scene, my next sample will be the intro to the first game, which has tons of blocking. Hopefully it will end up nice .
nope, ScummVM has (had?) libmpeg2 built-in - directshow isn't platform-independent - so no .avi or other stuff therePhreddy wrote:eriktorbjorn: since the previous versions of the cutscenes were MPEG2s, I assumed that ScummVM could read any format so long as had the appropriate DirectShow filters installed (my end goal was to create 1280x800 Lagarith (lossless) video with FLAC audio), is that not the case?
plus, with dxa support in there are plans to phase out mpeg2 support
- eriktorbjorn
- ScummVM Developer
- Posts: 3561
- Joined: Mon Oct 31, 2005 7:39 am
As clem said, ScummVM uses libmpeg2 to decode them. ScummVM contains code to convert the frames from YUV-something to RGB. The re-encoding turned the original 256-colour frames into 16-bit colour, so ScummVM has to draw them to the "overlay" (same as the ScummVM GUI), with a fallback mechanism to draw them as 8-bit graphics the "normal" way.Phreddy wrote:eriktorbjorn: since the previous versions of the cutscenes were MPEG2s, I assumed that ScummVM could read any format so long as had the appropriate DirectShow filters installed (my end goal was to create 1280x800 Lagarith (lossless) video with FLAC audio), is that not the case?
Graphics drawn the normal way (game graphics, DXA movies, ...) are go through the scaling mechanism (e.g. 2x, 3x, HQ2x, etc.), while graphics drawn to the overlay do not, so the MPEG2 movie player has its own, primitive scaling for the 16-bit case.
All in all, it's a pretty nasty hack. The main obstacle to adding DXA support to the Broken Sword engines was that they still had to be able to play the MPEG2 movies. (I wanted the players to still share as much code as possible.) If/when it's dropped, I shan't miss it one bit.
Even with the hack, there's no support for movies larger than the game's own graphics, I'm afraid. In this case, 640x480 pixels.
Sorry for taking so long before an update. Here are a couple of comparative screenshots of how Broken Sword 1's intro looks like:
The yellow smudges on the left of the second after pic are due to filtering issues I'll correct soon. An x264 encode will be uploaded shortly .
[edit]
Here it is:
[link removed, new one on page 2]
The yellow smudges on the left of the second after pic are due to filtering issues I'll correct soon. An x264 encode will be uploaded shortly .
[edit]
Here it is:
[link removed, new one on page 2]
Last edited by Phreddy on Wed Jul 18, 2007 1:02 am, edited 3 times in total.
- spookypeanut
- ScummVM Developer
- Posts: 159
- Joined: Tue Sep 12, 2006 9:35 am
- Location: St Albans, UK
- Contact: