[SCRIPT][RELEASED] Extended Video Export
I have uploaded first alpha version of my script:
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.
Extended Video Export is an enhancement mod aimed at directors who want better export options from Rockstar editor.
How to install:
Just extract the ASI script and the DLL files into the game directory.
- 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.
Changes in v0.0.2alpha:
- Fixed crash in some resolutions/configurations.
Changes in v0.0.1alpha:
- Lossless video export
how to install it？
@yzhlzz Sorry, I totally forgot to include installation instructions. The main post is updated now.
@nightingale Nice, does it mean that i can render Videos into 4K when i record on 4K?
@nightingale This is a great idea, I do have a couple of questions.
- 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.
- Can you add an ini file option to specify the output path?
@LeeC2202 Thank you for your support.
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.
This is a planned feature, and will be available soon.
@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.
@LeeC2202 I'd suggest to install latest ffdshow-tryouts from here:
Anyways, I plan to support more exporting formats in the future. I will surely try adding Lagarith encoding support.
@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:
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.
Really appreciate it if you don't mind answering. Cheers.
@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.
Fantastic! I've asked a couple more Qs on main page so won't carry it on in here, but thanks for clarifying.
Really impressive when considering Rockstar never allowed you produce high quality renders to work with. Fraps was a sort of compromise but not without issues.
@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.
@LeeC2202 I'm sorry to hear that didn't work. Maybe you can re-encode the video using Lagarith binaries?
@nightingale That's possible, I will look further into it when I get more time.
I do think this is a great idea though, so I will definitely keep my eye on how this progresses.
If someone it is interested in see some differences between the different methods of export/record videos, check these links bellow:
02:09 Minutes long video
[60FPS/1920x1080 Resolution/Very High-Ultra graphics/High export]
- Rockstar Editor Default Export: http://prntscr.com/deavfj
- ShadowPlay: http://prntscr.com/deavxq
- Extended Video Export 0.0.4 [ALPHA]: http://prntscr.com/deawlr
- Rockstar Editor Default Export: http://prntscr.com/deaxz8
- ShadowPlay: http://prntscr.com/deaycn
- Extended Video Export 0.0.4 [ALPHA]: http://prntscr.com/deaxdy
- Rockstar Editor Default Export: http://prntscr.com/deazyv
- ShadowPlay: http://prntscr.com/deayts
- Extended Video Export 0.0.4 [ALPHA]: http://prntscr.com/deazgr
- Rockstar Editor Default Export: 49.9Mb
- ShadowPlay: 643Mb
- Extended Video Export 0.0.4 [ALPHA]: 3.37GB