• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Play Videos in Warcraft: mp4 to w3x converter

Status
Not open for further replies.
Level 8
Joined
Nov 20, 2011
Messages
202
What does this tool?

The tool takes some mp4 file and convert's it into a map. So if you start the map you can watch the movie ingame.
The ingame resolution is 96*48 with full color depth.

How to use?

Just download the tool below and select a mp4 file you want to convert. Now select a save location and press convert.

Other stuff:

-You need java to run the converter and at least 1GB Ram
-To long videos can crash wc3 because the mapscript is to heavy
-If there is no conversion process or it stops before end the mp4 file is damaged
-The conversion process can take even on good computers a few minutes
-Don't start wc3 with -opengl, if you do you won't see anything
-Use the arrowkeys to position the cammera, don't move the cam to low, otherwise everything gets black.

Demo Video:

L]


Download
 
Last edited:
Level 8
Joined
Nov 20, 2011
Messages
202
I wonder what use can I find for it... it doesn't seem to be so much useful if the video becomes a map in itself... it would be better if someone can make a tool that will actually allow you to play a movie inside a map...

Well the main problem is, most parsers can't handle this realy big generated jass files, so i injected the mapscript directly. But i plan a version where you can generate a wurst package which got some simple api.

Overall this is not intended to be useful, as muzzel already said ;)
 
Someone beat you to it long long ago. I remember back on WC3Search hearing people who encoded a music video into a WC3 map. Sure it was not as high quality as yours but it was certainly a lot smaller.

I'm guessing you're referring to the bad apple - wc3 make?
http://www.youtube.com/watch?v=lffyYhxzFBk

Although, it wasn't a system. Plus, this one supports color (according to bhusta's video).
 
Level 8
Joined
Nov 20, 2011
Messages
202
Someone beat you to it long long ago. I remember back on WC3Search hearing people who encoded a music video into a WC3 map. Sure it was not as high quality as yours but it was certainly a lot smaller.

Not so fast. First of all the bad apple map was just desinged for bad apple, this means just 2 colors instead of 16.581.375. So ofc the mapscript is smaller.

My tool also uses a kind of codec, so if you convert a 10h video which just got white frames the map will be pretty small. The filesize depends realy hard on the movie, not just the length matters.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
Not so fast. First of all the bad apple map was just desinged for bad apple, this means just 2 colors instead of 16.581.375. So ofc the mapscript is smaller.

My tool also uses a kind of codec, so if you convert a 10h video which just got white frames the map will be pretty small. The filesize depends realy hard on the movie, not just the length matters.
Which is what we expect over 7 years later...
 
Level 13
Joined
Mar 6, 2008
Messages
852
If this converter would just create code and there would be an importable system, it wouldn't be as "useless" as it seems to be in its current state.

For example anime maps could have some kind of video at the beginning of a game whereby pre-load systems are running.
 
Last edited:
Level 8
Joined
Nov 20, 2011
Messages
202
So teamcolors would mean 16 different colors, but i got 16581375.

I use images with a size of 128*128, so the borderglitch will just appear on the top and on the right side, so i can create a raster with the size 96*48 (4300 images / pixels). This images i recolor on each frame.
 
Level 8
Joined
Nov 20, 2011
Messages
202
You could reduce the fps and increase the resolution, imo.

Well this is not so easy...

More resolution would mean a bigger filesize and even atm the filesize is pretty big.

But even if we ignore the filesize for the moment. Increasing the pixel amount is not so easy. The map got a size of 256*256 and the cammera distance is 10000. If zoom out even farther everything gets black.

An other possibilty is to create smaller pixels for example 64*64. But this is also a problem because the Borderglitch would appear now in each direction.

So why i don't use a transparent border, to prevent the borderglitch? Images with a alpha channel are slower than images without.

As you can see this is not as easy as it looks. But muzzel told me some cool way, and iam sure it will work.

Iam also looking for some better way/place to store the huge frame data. The mapscript is a realy bad place for this.
 
Status
Not open for further replies.
Top