Cutscene upscaling by themac

Improving the artwork in Warzone2100 - not for mod discussions
Post Reply
themac
Trained
Trained
Posts: 391
Joined: 17 Jul 2009, 19:14
Location: Germany

Cutscene upscaling by themac

Post by themac » 07 Feb 2020, 06:19

Hey all :)

Tonight I made some experiments with upscaling the intro video. The original footage is quite blurry but I did my best to keep some details, add some sharpness, remove compression artifacts and finally convert it from 25 fps to 60 fps via Smooth Video Project. The video itself has been processes twice via GigaPixel AI:

https://www.youtube.com/watch?v=Nz6TJkVwLdE

Greetings, themac

User avatar
montetank
Regular
Regular
Posts: 634
Joined: 14 Feb 2013, 00:05
Location: Montenegro

Re: Cutscene upscaling by themac

Post by montetank » 08 Feb 2020, 00:52

Yes-it looks waaaaayyy better and is smooth. :)
In case the WZ-game ends in a draw , the game winner will be determined by penalty shoot-out.

themac
Trained
Trained
Posts: 391
Joined: 17 Jul 2009, 19:14
Location: Germany

Re: Cutscene upscaling by themac

Post by themac » 08 Feb 2020, 02:50

Great. Feel free to use it if you like it. Here is the new video file for download >google drive< :)

User avatar
Tzeentch
Trained
Trained
Posts: 267
Joined: 14 Oct 2012, 14:24

Re: Cutscene upscaling by themac

Post by Tzeentch » 25 Apr 2021, 13:58

YT video unavailable.... would like to see a comparison. Your link has a 404 for the G drive as well.
If this looks great, and possibly smaller file size then why not replace all the cutscenes with your version?
I found online a LQ and HQ and the file size is vastly different -> https://sourceforge.net/projects/warzon ... 00/Videos/

Low = 169.6 MB
High = 964.3 MB

Infact... using ffmpeg under the hood I reckon I can do a better job of this, and since then we have h.265 encoding we can use.

pastdue
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 301
Joined: 13 Aug 2017, 17:44

Re: Cutscene upscaling by themac

Post by pastdue » 25 Apr 2021, 19:04

Tzeentch wrote:
25 Apr 2021, 13:58
Infact... using ffmpeg under the hood I reckon I can do a better job of this, and since then we have h.265 encoding we can use.
Due to licensing requirements, we likely cannot use non-royalty-free / patent-encumbered codecs like H.265 / HEVC.

User avatar
Tzeentch
Trained
Trained
Posts: 267
Joined: 14 Oct 2012, 14:24

Re: Cutscene upscaling by themac

Post by Tzeentch » 26 Apr 2021, 11:44

Oh yes my mistake, but x265 is a winner - "x265 is a free software library and application for encoding video streams into the H.265/MPEG-H HEVC compression format, and is released under the terms of the GNU GPL."

I'd like to give it a go, where can I find the original videos to play with? The main links to each of HQ, LQ and Standard contain a single .wz file which only looks to play one video natively after I rename to .avi

Also note when you look on the DL by week that you can see HQ is DL vastly more often than anything else.

"you need to compile rpl2avi, convert the original RPL files into the AVI format, then encode those to Ogg/Theora/Vorbis. Music is also in Ogg/Vorbis format."- from the FAQ. Perhaps including the original RPL files in source as a thought? As I don't see where those RPL files are or exist. Or even better the pure output from the rpl2avi command so I have the .avi(s) to work with directly.

themac
Trained
Trained
Posts: 391
Joined: 17 Jul 2009, 19:14
Location: Germany

Re: Cutscene upscaling by themac

Post by themac » 03 May 2021, 19:23

I made an upscale attempt again. Here it is :)
https://www.magentacloud.de/lnk/MfqAoIsm

pastdue
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 301
Joined: 13 Aug 2017, 17:44

Re: Cutscene upscaling by themac

Post by pastdue » 04 May 2021, 05:04

Tzeentch wrote:
26 Apr 2021, 11:44
Oh yes my mistake, but x265 is a winner - "x265 is a free software library and application for encoding video streams into the H.265/MPEG-H HEVC compression format, and is released under the terms of the GNU GPL."
The library may be open source, but the issue is the patents and licensing that cover playing content encoded in H.265. The actual video format is the problem, unfortunately.

User avatar
Tzeentch
Trained
Trained
Posts: 267
Joined: 14 Oct 2012, 14:24

Re: Cutscene upscaling by themac

Post by Tzeentch » 04 May 2021, 15:41

Ok so what you are trying to inform me is that WZ can only play sequences.wz if it is done a specific way? How does the game playback the videos currently? Is that what libsequence.so is used for?
Can we/I find an alternative drop in replacement to allow native playback of H.265? I'm sure something must exist.
"The videos are encoded from the uncompressed AVI files via ffmpeg2theora, using libtheora 1.1 beta1. The command used was: ffmpeg2theora --optimize -v10 -K65536 --pp de/tn:64:128:256 -c2" - this was how HQ has been done and 900MB+ seems very large for what it is.

themac
Trained
Trained
Posts: 391
Joined: 17 Jul 2009, 19:14
Location: Germany

Re: Cutscene upscaling by themac

Post by themac » 04 May 2021, 17:14

.wz files are .zip files. you can just rename the file extension. :)

pastdue
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 301
Joined: 13 Aug 2017, 17:44

Re: Cutscene upscaling by themac

Post by pastdue » 04 May 2021, 18:21

Tzeentch wrote:
04 May 2021, 15:41
Ok so what you are trying to inform me is that WZ can only play sequences.wz if it is done a specific way? How does the game playback the videos currently? Is that what libsequence.so is used for?
Can we/I find an alternative drop in replacement to allow native playback of H.265? I'm sure something must exist.
What I'm trying to say is WZ supports a video codec that has both (a) an open-source library for decoding and (b) is not patent-encumbered.

It does not matter what library you find for H.265 - H.265 itself is patent-encumbered. We can't use H.265 at this point in time, regardless of the decoding library.

User avatar
Tzeentch
Trained
Trained
Posts: 267
Joined: 14 Oct 2012, 14:24

Re: Cutscene upscaling by themac

Post by Tzeentch » 04 May 2021, 19:01

Aha understood now I get where the issue lies. Ok I'll drop the idea of using H.265. I have another solution for you! AV1 :lol2:

https://trac.ffmpeg.org/wiki/Encode/AV1

Thanks @themac, actually that is really obvious just renaming the file extension from .wz -> .zip then extracting...

I have taken the largest video "devastation" and I have found 2 important points just on bitrate.

* data bitrate overkill. Set at 2468 kbps, this can be better handled and dropped much lower.
* audio bitrate too high. Set at 499 kbps, for Stereo channel 128 bit is the highest required.

I did a quick test just dropping those values slightly and was able to reduce the file by 50% and both visuals and audio are completely fine. ( without changing anything else ) I can do all files, upload somewhere and you could even hand inspect them to be happy before replacing what is provided.

themac
Trained
Trained
Posts: 391
Joined: 17 Jul 2009, 19:14
Location: Germany

Re: Cutscene upscaling by themac

Post by themac » 04 May 2021, 19:04

Here you find my attempt to upscale the devestation movie: https://www.magentacloud.de/lnk/MfqAoIsm

User avatar
Tzeentch
Trained
Trained
Posts: 267
Joined: 14 Oct 2012, 14:24

Re: Cutscene upscaling by themac

Post by Tzeentch » 07 May 2021, 16:49

I have noticed another issue with all videos provided ( LQ and HQ ) . All videos have the left side partially cropped off. You can see this in the recent semi-walkthrough vs orig PS1 clips, as shown here https://www.youtube.com/watch?v=9OLqRfxQ_nM&t=360s. Best to start with the originals and work from there to upscale etc. I will get this all sorted out when time permits me. - Can anyone provide me with the PS1/Orig videos or point me to them?

https://github.com/Warzone2100/warzone2100/issues/1809 - for me.

Post Reply