Video clips in WADs?

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Video clips in WADs?

Postby Woolie Wool » Thu Jul 07, 2005 2:55 pm

Is it possible to play an actual video clip in a wad? There's a setting in the options menu called "movie volume". This would be interesting for something like the Lord of the Rings TC idea that pops up in my head every couple of weeks.
User avatar
Woolie Wool
Oh, bugger!
 
Joined: 15 Dec 2003

Postby Enjay » Thu Jul 07, 2005 3:17 pm

Not from a wad, no, but from a file on your HD, yes. Zdoom can play any movie file format that Windows Media Player can. In fact, what it actually does is put Zdoom on hold, start a dedicated instance of media player, play the movie, then return to Zdoom. You can run it using ACS or from the console.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
Joined: 15 Jul 2003
Location: Scotland

Postby Lexus Alyus » Thu Jul 07, 2005 3:40 pm

That's pritty cool if someone can make rendered scenes... could be great for enhancing a story in away that cant' be done in Doom.

:twisted:
User avatar
Lexus Alyus
I may be back...
 
Joined: 15 Jul 2003
Location: Nottingham, UK

Postby Bio Hazard » Thu Jul 07, 2005 3:51 pm

Hmm, Since ZDoom just passes the file off to WMP, pesumably with the arg being the file. Couldn't ZDoom create a temporary file and write the contents of the video file lump to it and pass that off to WMP?

There is probably a better way to do it, like passing it a pointer to the location of the lump in the wadfile, but you probably can't do that with WMP...
User avatar
Bio Hazard
Lord of the Lord of Nitpicking.
 
Joined: 15 Aug 2003
Location: ferret ~/C/ZDL $

Postby Nash » Thu Jul 07, 2005 4:15 pm

The movie feature would be a lot more useful if ZDoom plays the movie inside ZDoom's window itself rather than open a Windows Media Player window...

For those who play ZDoom in full-screen can enjoy the movies in full-screen...
User avatar
Nash
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Postby Enjay » Thu Jul 07, 2005 5:17 pm

Nash wrote:For those who play ZDoom in full-screen can enjoy the movies in full-screen...


Not sure what you are saying there, but to be clear, if you play Zdoom fullscreen, then the movie is played fullscreen. It doesn't just pop-up a small WMP window. It's WMP that is showing it, but it is fullscreen. Or were you saying it's only people who use full screen that can see the movies in fullscreen?

The only problem I have had in the past is that when switching between the programs, Zdoom hung. Hasn't happened for a long time. Mind you, I haven't played many movies in Zdoom recently either.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
Joined: 15 Jul 2003
Location: Scotland

Postby Nash » Thu Jul 07, 2005 6:55 pm

Well, what I was saying was, the movie should be drawn WITHIN ZDoom's window, instead of actually calling WMP...

You know, like a built-in movie codec in ZDoom... so the only app that's running will be ZDoom, instead of ZDoom and WMP.
User avatar
Nash
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Postby skadoomer » Thu Jul 07, 2005 8:24 pm

the only reason it was added was because of direct draw. I think its a bit too much to ask for it to be changed since nobodys using it to begin with.
skadoomer
 
Joined: 05 Sep 2003

Postby Enjay » Thu Jul 07, 2005 8:45 pm

As I recall, Randy included it as the result of a specific request for a certain project. Randy (understandably) wouldn't say which project but the smart money was on Daedalus at the time. However, that has since been released and no video. :?
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
Joined: 15 Jul 2003
Location: Scotland

Postby randi » Fri Jul 08, 2005 2:00 am

To clear up a misconception: ZDoom does not start Windows Media Player to play the video. Rather, it uses DirectShow. So does Media Player. DirectShow is a media library provided by Windows that any program can use. Windows Media Player is probably the most common program you will see using it, but the two are not one and the same.

The video code also originates from a time before VMR when the only way to show video was to open another window to do it. If somebody is serious about using it, I could see what needs to be done to make it render directly into ZDoom's window. Otherwise, it's not worth the effort.

And I can't remember which project I was thinking of when I added it, either.
User avatar
randi
Site Admin
 
Joined: 09 Jul 2003

Postby Lexus Alyus » Fri Jul 08, 2005 2:02 am

A lot of older games ported from console use this method (I presume). Games like Resident Evil would appear to open a new window and shoe the movies... it was only just noticable, but every PC game I've played that had movies have done the same, so IMO, if people knew how to render scenes then this method would be really effective.

The program that mouse uses for her sprites is pritty simple to use and can render full scenes... I wonder if LWM knows about thos feature? Maybe she does but can't render scenes? I dunno...

http://www.doga.co.jp/english/

That's the program mouse uses for her sprites, it's pritty good and amaizing for beginners. It's kind of like lego for 3D rendering (that's what mouse said, I used the program and agree :D). Saying that, it still requires skill to create what mouse has created. I'm very tempted to buy the full version cus you can achieve some really good effects.

:twisted:
User avatar
Lexus Alyus
I may be back...
 
Joined: 15 Jul 2003
Location: Nottingham, UK

Postby Enjay » Fri Jul 08, 2005 4:52 am

randy wrote:To clear up a misconception: ZDoom does not start Windows Media Player to play the video. Rather, it uses DirectShow.


Aha! Thanks for clearing that up. I've been blabbering about it using WMP for years now. :)

I could see what needs to be done to make it render directly into ZDoom's window. Otherwise, it's not worth the effort.


Well, the feature has been there for years now, and not a single project has been released that uses it. I have used it here at home, but even then, not enough to justify your time unless you really want to spend time on it.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
Joined: 15 Jul 2003
Location: Scotland

Postby Woolie Wool » Mon Jul 11, 2005 1:13 pm

I thought of an awesome intro for a Space Marine vs. Space Marine "mutiny" wad--a rendered cutscene of a futuristic Washington D.C on an overcast day with fires smoldering here and there and a tattered American flag on the Capitol. The music would be the theme from Terminator 2, and when it kicks up in volume, the title would appear, followed by the names of the people who made the wad. The camera would move around the war-torn city and would zoom in on the flag atop the Capitol as the music ends.
User avatar
Woolie Wool
Oh, bugger!
 
Joined: 15 Dec 2003

Postby Chris » Tue Jul 12, 2005 2:30 am

Just to note, video playing is Windows-only. Although for Linux, I could try invoking an mplayer slave process using ZDoom's active window, I'm not totally sure how easy that will be to find the right command-line switches.
User avatar
Chris
... the Chris guy...
 
Joined: 17 Jul 2003

Postby Bio Hazard » Tue Jul 12, 2005 2:41 am

"xine -pfhq %s"?

It should: play immedately, fullscreen, not sure, quit when done the file named %s

But of course thats not MPlayer ;)
User avatar
Bio Hazard
Lord of the Lord of Nitpicking.
 
Joined: 15 Aug 2003
Location: ferret ~/C/ZDL $

Next

Return to Editing

Who is online

Users browsing this forum: Deimus, Google [Bot] and 5 guests