Posted: Sun Jul 31, 2005 2:28 am Post subject:
VQA Encoder v0.5 beta 2
Finally, all three tools are united in one executable...
I've provided a user interface that should work, but probably has a few bugs.
You'll need ALLEG40.DLL and MSVCR71.DLL, these two were required by the previous versions so you can find them there. If it asks for something else, let me know...
EDIT: I'm providing the beta 2 version here, replacing the previous version.
I'm planning on kicking this version up to v1.0 when all the bugs are fixed as I can't think of anything else significant to implement...
Only some small updates to the old VQA encoder and UGM2VQA converter part. I noticed the latter could screw up the last few frames on occasion. QUICK_EDIT
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Sun Jul 31, 2005 10:26 am Post subject:
Hmm... this is odd... I started it to encode a movie, and it simply doesn't do anything at all...
Also... I noticed the background color of the movie always turns out purple... this not only affects the fill color of movies smaller than 320x200, it also affects the filler lines in C&C95 streching. Needless to say, this looks pretty bad. an't you make sure the background color is ALWAYS black?
(The exact same problem existed in the CPS encoder from the old Mix Manager)
palette.png
Description:
Fill color mess. Now, imagine this with a purple line every other line of pixels, and you got the C&C95 effect...
There's also some weird errros in the colors.
First of all, for C&C movies, set the Key value to 8, and Blocks to 2000 (or if 320x200 up to 3500).
That image you sent looks very much like the result of a true color image being mapped to a generic palette the graphics library I used creates in such cases. I can't say anymore without actually having a few input images you made. What format did you use? Did you read the readme for the 0.4 version, it also applies here, specifically the part about changing palettes. QUICK_EDIT
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Sun Jul 31, 2005 10:39 am Post subject:
Ahh crap... I accidently saved the frames in hi-color PCX instead of the 256 color palette they had >_<
Right... I'll take a deeper look into it.
Though another weird error I noticed was the sound dropping away halfway through the movie... you got any idea what might cause that?
The wav file I used is 22050hz, 16 bit, mono. _________________ QUICK_EDIT
Most probably an incorrect framerate. If the original video you extracted audio from was at say 30 fps and you set the VQA framerate to 15, obviously you have slowed down the video by a factor of 2 and it will naturally run out of sound data halfway through.
Setting the framerate in the encoder DOES NOT convert the frame rate, if you wish a target framerate of 15 fps, you need to drop frames in this case, this can be done with VirtualDub and RAD Video Tools.
It's a beginner's error, I already had this same discussion with TShpyer QUICK_EDIT
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Sun Jul 31, 2005 10:59 am Post subject:
No, no... it actually only played half of the wav file I gave. I got the framerate correctly.
459 frames at 15 FPS, sound file was 30 seconds long. _________________ Last edited by Nyerguds on Sun Jul 31, 2005 11:11 am; edited 3 times in total QUICK_EDIT
That error doesn't tell me much.
People, I need to know what formats you used, encoding settings and stuff like that. Saying it doesn't work doesn't help at all.
For chrissakes, don't make me ask for extended info!
As for this particular error, my guess would be on the avi file, which codec is it? QUICK_EDIT
well it worked for me fine again, no problems, its alot easyer to use then the cmd version (i like that tho, the fun on waiting to see if it came out right ) and i like it where it goes straght to VQA aswell. workss good. now we just wait for the AVI with direct sound input , good work again QUICK_EDIT
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Sun Jul 31, 2005 7:57 pm Post subject:
This is amazing. I managed to create a perfect RA1 format VQA of a RA1 movie that only existed for the PSX version
http://web.syr.edu/~jjia/WWW/animation.htm
(first file, second row)
The biggest work was getting the frames from that movie... _________________ QUICK_EDIT
Even getting the frames can be as simple as a couple of mouse clicks with RAD tools, especially since it remembers input settings, such as palette settings...
Once you get into it, it can be done in a second QUICK_EDIT
This is amazing. I managed to create a perfect RA1 format VQA of a RA1 movie that only existed for the PSX version
http://web.syr.edu/~jjia/WWW/animation.htm
(first file, second row)
The biggest work was getting the frames from that movie...
Could you post more things of the PSX version?
Myself I would like to see the briefings of Carville. _________________ Please, read the signature rules of the forum. QUICK_EDIT
That error doesn't tell me much.
People, I need to know what formats you used, encoding settings and stuff like that. Saying it doesn't work doesn't help at all.
For chrissakes, don't make me ask for extended info!
As for this particular error, my guess would be on the avi file, which codec is it?
i dont know anything at all about codecs!
all i know is that it's a avi file created by 3ds max. and it's 230 frames long. _________________ Singer-Songwriter Christie Isaac QUICK_EDIT
You can check what codec it is by right-clicking on the file, selecting properties, and clicking on summary. It will be listed as 'Video compression' _________________
Ii dont know anything at all about codecs!
all i know is that it's a avi file created by 3ds max. and it's 230 frames long.
Then it's probably uncompressed avi, especially if it's a huge file. 3ds max doesn't specifically ask for a codec, IIRC.
It also appears to produce an alpha channel and that would be my guess for the reason it's not working - 3ds max is probably writing 32 bit RGBA data instead of 24 bit RGB, the latter appears to be the only uncompressed format that works...
Reencode the movie into xvid or divx, and try again.
Also, you're not telling me enough again... Is the movie within 640x400 resolution or is it perhaps much larger? Framerate?
On a side note, I think I've come across an internal limitation of C&C Gold. I encoded a small clip of 1500 frames and created a new palette every 16 frames and the VQA worked fine in the players. C&C Gold, however crashed seconds before the movie's end.
I did a little research and found out that the game supports a maximum number of 100 palettes in a single VQA. This most likely has to do with the fact the VQP is preloaded and they can get large, so they limited the amount of memory it can have. If your VQP turns out larger than 3.13 MB, you're in for trouble...
I don't think you'll ever use up all 100 palettes like I did, especially since it impacts the VQP size largely, but I figured a warning is in order... QUICK_EDIT
Yeah, the progressar is somewhat erratic. It goes forwards, but at the same time its constantly jumping forwards and backwards. Apart from that though, this is an amazingly excellent and easy to use program! Thanks for putting all this work into it! _________________
There's nothing erratic about the upper progressbar, it has to do with the fact that if the encoder finds so called empty cells on each pass (if you remember this from the first versions of the encoder), it has to do some steps all over again and that's why the progress jumps backward. I could've frozen it in the current position in that case, but this is a better indicator that something's actually happening, i.e. the app hasn't frozen or something... QUICK_EDIT
OK, I've uploaded a new version, v0.5 beta 2, you can find it in the first post, I replaced the old one there.
New features are UGM input support as requested as well as AVI sound input. You might still encounter problems with some audio formats, I've had trouble with variable bitrate mp3 soundtracks, but the rest should work.
There's still the problem of not supporting all the uncompressed AVI video formats properly, but that's a known and old issue.
The encoder now automatically counts the number of frames in the input image sequence so you don't have to set it manually.
That's it for now, if there aren't any major problems, I'm planning on releasing this as version v1.0 of the encoder.
Report problems here or at my email, as usual. QUICK_EDIT
One (And I think the only) advancement that I can think of would be the ability to, with an image sequence, set the correct framerate based on an input audio file. Oh, and a help file with the contents of the readme file integrated into the program might be nice as well.
But seriously, this is amazing work! And it encodes so fast! This is going to be extremely well-used by the time I'm done with my Xaeon Mod campaign. _________________
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Mon Aug 08, 2005 5:33 am Post subject:
I can see the filesize of mods and mod-campaigns suddenly raising sky-high _________________ Last edited by Nyerguds on Mon Aug 08, 2005 7:03 pm; edited 1 time in total QUICK_EDIT
i see, but i dont like mod launchers. and i have managed to find a good codec for converting AVI's and most of my movies come out under 9mb
Hmm... By good codec you mean AVI codec or VQA encoding settings? I hope you understand the output VQA file size depends very little upon the input AVI size. If you set a bad codec for an AVI, you'll end up with a bad quality source for the encoder. You should always maximize the input quality of the AVI file, even if it means huge files and let VQA Enc and its options set the resulting file size.
The output VQA can only come close to the input AVI quality, if the input is crappy... well, you get the picture.
This is similar to what I've seen some folks doing with mp3 files - recompressing them into a higher bitrate thinking it will produce a better quality file. It won't. Once you apply lossy compression to a file, information is irretrievably lost. QUICK_EDIT
i was useing that DivX Codec, i had huge AVIs of 700mb, so i use DivX the make them to around about 9-12mb. but i thought the AVI size had to be small so that the VQA was not big oh well. QUICK_EDIT
The only parameters that determine how large a VQA will be is the video resolution, framerate and blocks and key values.
The encoder needs raw frames anyway so it decompresses the AVI file and in the end the frame size is the same, whether you input the uncompressed AVI or compressed AVI, the only difference is in how the decompressed divx video quality will be. Feel free to use a higher quality divx/xvid, it won't hurt the encoder at all.
Another codec that I find very useful, it's lossless and can reduce the uncompressed size AVI to about 1/2 or 1/3 of the original size is the HuffYuv codec. With it you can cut down on the avi size and retain the same visual quality.
In the end, it doesn't actually matter all that much which codec you use because the VQA blockiness will overwhelm everything anyway... QUICK_EDIT
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Tue Aug 16, 2005 11:53 am Post subject:
hmm... this seriously isn't working at all...
I opened my task manager, and t even said it used 0% CPU... and the UGM file stayed just a couple of kb, without any further increase of filesize.
I was able to perfectly make the movie with the old method though.
One small detail bothers me though... when there's a palette switch within the sequence of 8 frames, some of the frames well be messed up because they got the wrong palette.
Can't you make a method in which you can make several UGM files for each part of the movie (with dfferent palettes), and then combine those to one VQA?
[--removed the image--] _________________ Last edited by Nyerguds on Wed Aug 17, 2005 5:28 am; edited 1 time in total QUICK_EDIT
hmm... this seriously isn't working at all...
I opened my task manager, and t even said it used 0% CPU... and the UGM file stayed just a couple of kb, without any further increase of filesize.
I was able to perfectly make the movie with the old method though.
One small detail bothers me though... when there's a palette switch within the sequence of 8 frames, some of the frames well be messed up because they got the wrong palette.
Can't you make a method in which you can make several UGM files for each part of the movie (with dfferent palettes), and then combine those to one VQA?
I noticed you use the old beta version, if you look at the first post, you'll find that I've uploaded the newer beta 2 version, which also remaps frames that have differing palettes (if they aren't on a 8 frame boundary) to the current palette. That fixes the issue a bit although visual outcome will vary with how much palettes differ.
I specifically noted, several times, that you should change palettes on an 8 frame (if KEY is 8, which it should be for C&C/RA1 movies) basis. That is: only changing palettes each 8,16,24,32,etc frames. If the palette is changed in the middle of a frame group, the encoder will do its best to remap the colors. Due to the nature of the VQAs it isn't possible for 8 frames to have each its own palette and making different UGM files for UGM parts won't do the trick. Even a couple of C&C movies show what happens when you change palette in the middle of a key sequence, IIRC the NOD movie with the cyberspace soldiers braking into the ion cannon system is one of those, you can at one point se the colors graying out momentarily. Also I believe AKIRA.VQA, ion cannon striking a nod base shows a similar thing.
Get the new version and see how it works out.
Also, a little friendly advice for posting dialog screenshots like this one. 150 kb JPEG for an image like that? Use PNG, man! Take a look at the size of the dialog screen I posted in the first post, less than 8 kb and it's LOSSLESS! Jpeg isn't cut out for images like this, even GIF would be a better option.
Indulge me, I'm still on 56k... QUICK_EDIT
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Wed Aug 17, 2005 5:19 am Post subject:
Well, not as if I could choose where a sudden colour change in the movie occured... one frame was dark, and the next a bright yellow flash occured, that faded to white
I managed to fix it by removing a few frames from the fade-in at the beginning of the movie though.
I did download the new version... but it seems I stupidly forgot to unrar it
And, uhm... just a note there... PNG is loads heavier than jpg _________________ QUICK_EDIT
Well, not as if I could choose where a sudden colour change in the movie occured... one frame was dark, and the next a bright yellow flash occured, that faded to white
I managed to fix it by removing a few frames from the fade-in at the beginning of the movie though.
And, uhm... just a note there... PNG is loads heavier than jpg
Sudden color change is one thing, sudden PALETTE change is a whole different thing. Do not confuse the two. There is nothing preventing you from changing colors sudenly from frame to frame, as long as the individual colors belong to the same palette (at least on an 8 frame boundary).
You can choose when new palettes are calculated with Bink Video Tools and convert your input AVI into proper image sequences.
Oh, and, what exactly do you mean with PNG a lot "heavier" than JPG? Did you even bother to compare the file sizes of the two formats and their quality? Granted, JPEG is much better suited for natural looking images and smooth color gradients, but Windows dialogs sure don't belong into such a category. QUICK_EDIT
And png images usually have about 150% or more of the filesize of a jpg with the same dimensions.
It all depends on the content you're encoding. If it's photorealistic renderings or natural images, of course JPEG is better suited for the task. I am simply stating that when posting Windows screenshots like that, you'll get a MUCH smaller size and better quality with PNG than JPEG. Compare your 160 kb screenshot to my 7.7 kb screenshot (granted yours is twice the horizontal size, but nonetheless) and you get the picture. In the end JPEG blurred out the text if you look a bit closely.
Different formats exist for different tasks and it's key to pick the one that suits best for the purpose.
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Thu Sep 15, 2005 2:16 pm Post subject:
Right... this thing is really awesome. Right now I'm involved in a small project to convert all new movies of the PSX version of RA1 ('Retaliation') to VQA format.
There's briefings for CS and AM missions, and movies of the AM units. Really amazing _________________ QUICK_EDIT
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Mon Dec 26, 2005 10:56 am Post subject:
I haven't done any updates afaik.
I tried re-downloading the encoder, but even the old command line version gives the same error
[edit]
oh wait... Dawn of War contains MSVCR71.DLL... maybe that could be the problem?
[edit again]
I re-downloaded msvcr71.dll from the url in the readme, but the error still pops up
[edit yet again]
The 2 DLL's are the same version. I compared them with a file comparison tool, and there's no difference... so it's not the DLL's
Meh. I've been considering reinstalling my XP anyway. If after the reinstall, I get the same error trying to convert that same set of frames that started this mess, I'll just throw them out the window, reinstall XP again and work on other vids. _________________ QUICK_EDIT
Joined: 24 May 2004 Location: Flanders (Be) Posts:300000001
Posted: Mon Apr 03, 2006 12:29 pm Post subject:
Seems that reinstalling some codecs mysteriously fixed it.
Anyway... is there a way to simply implement a VQA as frames input? I mean, just making it so that you select a VQA, and a WAV file, and merge the 2 together to a new VQA? That would be really handy, since I'm uncensoring the german movies, and basically it's nothing more than pasting the (edited) german sound stream on the English movie.
Isn't that the same as doing it from ugm files, or am I mistaken?
[edit]
Also, could you make a function to only write a VQP for an existing
VQA movie? (like, if you enable AVI sound when selecting a VQA as
input)
I found a bunch of C&C movies (from the Sega saturn version, and a
very old & awesome C&C1 preview movie) which don't have VQP's. Up
until now I made these VQP's by reconverting the VQA, but that seems
like a lot of trouble... _________________ QUICK_EDIT
When I attempt to convert my AVI movie I get the result you see in the third pic, the first pic is what it should look like and the 2nd is what the settings I used are.
Any ideas on what I'm doing wrong?
I did convert the video into 15 fps
VQA SETTINGS.JPG
Description:
Filesize:
42.07 KB
Viewed:
70657 Time(s)
vlcsnap-353966.jpg
Description:
Filesize:
37.6 KB
Viewed:
70653 Time(s)
FAILED_VQA_JPEG.JPG
Description:
Filesize:
56.79 KB
Viewed:
70653 Time(s)
_________________ People belive what the media tell me to believe, and I tell the media what to believe-Kane QUICK_EDIT
When I attempt to convert my AVI movie I get the result you see in the third pic, the first pic is what it should look like and the 2nd is what the settings I used are.
Any ideas on what I'm doing wrong?
I did convert the video into 15 fps
Hm... What player are you using to view the result? Is that an ingame screenshot (if so, what game) and if it's from one of the players, which one?
Is the source avi file small enough you could upload it somewhere for me to take a crack at? QUICK_EDIT
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum