[SCRIPT][RELEASED] Extended Video Export

I have uploaded first alpha version of my script:https://www.gta5-mods.com/scripts/extended-video-export
This script have been tested only on game version 1.0.350.1, but should work with other versions of the game.
Please feel free to send requests/bug reports in this thread.

How to install:
Just extract the ASI script and the DLL files into the game directory.

Current Features:

Lossless export: whenever you export a video via Rockstar Editor, this script exports a lossless version of the same video to the current user's video folder. The video's pixel format is YUV 4:2:0 with FFV1 encoding.

Is the codec you use fixed in stone? I ask that because Sony Vegas is really picky about importing videos if it doesn't like the codec. I use Bandicam for recording but I have to use the Lagarith codec to make the videos compatible with Vegas.

I chose FFV1 for its good compression ratio and for its compatibility with main video players and editing software. I already know that Adobe AfterEffects support this format, and since Sony Vegas can use ffdshow decoders, it should be able to support it too. I would really appreciate if you test it and inform me if it worked.

@nightingale I got the usual "None of the files dropped on Vegas Movie Studio HD Platinum could be opened" error. That's a common thing with Movie Studio, it's a pain to get things in a format it will read.

@nightingale I almost installed those codecs but to be honest, it would be a set of codecs for just this game and I'm not a great fan of many codecs on a system... especially in my development OS anyway.

I have a Windows 10 install (on a dual-boot) that is pretty much disposable, so I'll try those codecs in there later and let you know how I get on.

There's also an x264 codec which is an open source alternative to h264 that I installed because Bandicam's h264 is incompatible with Vegas as well. That's by the people who made VLC I believe.

Sony are just a pain with codecs, they always have been... I only use it (Movie Studio) because it was a cheaper alternative to Premiere, for those rare occasions I have to make a video.

Video quality did look good though when I played it back through MPC-HC.

@LeeC2202 Can you check whether Vegas supports "huffyuv" input files? Lagarith is forked from huffyuv so it should be able to decode huffyuv files too.
You can find a couple of huffyuv video samples here:http://web.eee.sztaki.hu/~kla/mpv2/

I don't want to insult your intelligence here Nightingale but this isn't just making a lossless file from the exported MP4 render file is it?

How exactly can a script mod create a lossless file from recording the game engine? Sounds a bit too good to be true, considering they only make available MP4 in Rockstar Editor. Does it take a very long time compared to normal Editor MP4 export?

Someone had poked around before trying to mod Rockstar Editor and it was deemed almost impossible / locked off.

@FixingG00D As I replied to your comment on the mod page, Rockstar Editor uses Windows Media Foundation API to encode videos. All I do is to hook media foundation functions and capture the input frame sent to the encoder and encode it myself. The input frame is already decimated from RGB24 to YUV 4:2:0, but other than that there is no data loss in the process.

Yeah each frame takes a bit longer to encode, and when all the frames are rendered in the editor, it takes a couple of seconds to finalize the video. Overall it takes longer, but it's still pretty fast for a lossless encoder.

It is also possible to encode the original RGB24 frames, but that takes much more effort and I don't think it's worth it. The YUV 4:2:0 frames look good enough (in my eyes) for now.

@nightingale I tried this in my Windows 10 install with the ffdshow codecs and with either 32 or 64 bit, Vegas refused to import the video, giving the same error.

Downloaded one of the huffyuv output video samples from that page and got the same problem.

I wasn't sure if it was something to do with the YUV2 setting because I have the Lagarith codec set to RGB but even after changing it to YUV2, Vegas still imports them fine. So whatever Lagarith is doing, Vegas is happy with it. If you read around the net though, you will see endless stories of people having problems with Vegas Movie Studio and importing files.

The UI for Movie Studio is great, the editing is great but the file format handling is probably some of the worst out there. Even Windows Movie Maker would load files Vegas wouldn't.