Author Topic: Demos To Avis  (Read 4405 times)

February 14, 2004, 05:28:57 PM
Read 4405 times

Satiagraha

  • Marine

  • Offline
  • ****

  • 960
    • View Profile
    • http://
Yes, I know, there has beed some old topic on this, but I'm too lazy to go rumaging through the LM Forum to find it.

Teh big question: How does one convert a Half-Life demo (.dem) to a standard video file (.avi)?  What programs are needed, and where can I find them (links help ^_^ )?  It'd be nice if someone wrote a quick tutorial type of response on this topic/concept/process... *eyes esuna :rolleyes: *

We are the shadow that comes in the night and says "ARRR!"
"yarrr I'm gaybeard the butt pirate, and I've come to plunder yer booty!" -TAK

February 15, 2004, 06:11:13 PM
Reply #1

Leaderz0rz

  • Legacy Reserved
  • Fade

  • Offline
  • **

  • 421
    • View Profile
    • http://
basicaly what it does is make 30bmps a second of your demo, and puts them all in a folder, then you get a video editing program to put all those bmps together and save it as an avi. I forgot the command, but if you google search like Half-Life .dem to .avi or somthing you should find it.

February 20, 2004, 04:11:35 PM
Reply #2

Satiagraha

  • Marine

  • Offline
  • ****

  • 960
    • View Profile
    • http://
Ahah! Finally! I ran through the whole process!

There's a command called "startmovie x y" where x is the name and y is the framerate. Then I used Adobe Premiere's "Import File" and their "Numbered Stills" option and it worked beautifully :D (Besides the uncompressed video being 400MB for 15 seconds of footage at 30fps. But hey, that's why god created DivX, isn't it?)

We are the shadow that comes in the night and says "ARRR!"
"yarrr I'm gaybeard the butt pirate, and I've come to plunder yer booty!" -TAK

February 26, 2004, 01:12:27 PM
Reply #3

Grimm

  • Legacy Reserved
  • HA Marine

  • Offline
  • *****

  • 1005
    • View Profile
    • http://www.livejournal.com/users/grimmus
Could you, Satiagraha, or anybody else that converts demos to avi, elaborate a bit more on this?

I've been getting more friends interested in Natural Selection recently, and some of them who don't know what the game looks like or how it plays are still skeptical. I thought 'what better way than showing them a movie of an actual match to get them into it?'. When I get home today (at school at the moment), I plan on playing a few games and recording demos, so I'd like to convert those eventually and burn them to a disk (or disks if need be).

February 27, 2004, 03:29:06 PM
Reply #4

Satiagraha

  • Marine

  • Offline
  • ****

  • 960
    • View Profile
    • http://
I certainly can, Grimm.


Converting HL Demos (.dem) to video files (.avi) using Half-Life and Adobe Premiere:
 (NOTE: This doesn't not include sound as I'm not sure how to extract it from demo files without using a Creative Labs SoundBlaster Live or better and it's associated software)
Explanations of what each step does are in purple
  • Step 1:
     Run HL and join a game, create a game, or run a map.
  • Step 2:
     Type 'record x', where x = the desired name of your demo file, into the HL console.
  • Step 3:
     Close console and perform the desired content of your demo.
  • Step 4:
     When you have finished all you want in your demo, open console and type 'stop'.
  • Step 5:
     Type 'disconnect' in console, and then type 'playdemo x' in console, where x is equal to the name of your demo file without the .dem extention. You should now see the content of the demo file which you just recorded
  • Step 6:
      Quickly type 'startmovie y z' in console, where y is = the desired name of numbered still images that this command will produce and where z is = the frame rate of the still images (IE. '[span style=\'color:green\']startmovie mydemo 30' will create 30 still images for every second of the demo run while this command is active. The images will be outputed into your mod folder labeled mydemo0001.bmp, mydemo0002.bmp, mydemo0003.bmp, etc.)[/span]
  • Step 7:
     Let HL run until the demo finished or type 'stopdemo' if you wish to end it before the demo plays completely. Exit HL when finished.
  • Step 8:
     Run Adobe Premiere. Click on New Project in the File menu. Go to Import -> File under the File menu and check the box at the bottom of the window that pops up that says "Numbered Stills". Select the first still frame which you want to start your video with and click the Open button. The "Numbered Stills" option tells Premiere to look for other images labeled in series after the selected image and that they all go together as an animation.
  • Step 9:
     Click and Drag the imported file (which is now a video file of all your frames) to your timeline.
  • Step 10:
     Go to File -> Export Timeline -> Movie...  and click on the Settings button. Under the General section of the settings window, make sure that File Type has Microsoft AVI selected and that Range has Entire Project selected. Don't bother checking the "Export Audio" box (because the still images don't have any audio), but make sure that the "Export Video" box is checked.
  • Step 11:
     Under the Video section, you can choose your compression codec (I use DivX 5.1.1) and you can select your framerate. Make sure your framerate matches the framerate at which you recorded your still images when you used the 'startmovie y z' command (z is the framerate).
  • Step 12:
     You can play around with the various settings, and when you're done, click OK, and then tell it where to render the video to and what to call it. (ex: C:\Half-Life Demos\mydemo.avi)
  • Step 13:
     You now have a (hopefully) working AVI video file of your demo!
Because getting Audio is a bit more restriced, that's why you see a lot of demo videos that have music in the background instead of the game sounds.

If you want slow motion, there are 2 types (one's easier, one's harder, but better)
A. You can simply use Premiere and break up the section that you want to be slow-mo and right-click and select "Speed..." (has to be on the Video 1 track). Set the speed of the part you want to 50%. Remember, you can preview your video without having to render it by using the play controls that are under the preview window
B. Let z = 60 in your 'startmovie y z' command. In Premiere, when you have the video of your stills on your timeline, break up the part you want to be slow-mo, and set the speed of everything else to 200%.

NOTE: The Break tool is the farthest to the upper-right of the 8 square tool buttons on in the Timeline window (Pictured Below)

Can't Decide?
Method A's slow-mo will technically be running at 15fps (30fps + 50%Speed = 15fps) and thus will look a bit choppier.
Method B will produce a much smoother and more accurate slow-motion video because it's running at 30fps in slow-mo (60fps + 50%Speed = 30fps = normal video framerate).
I personally recommend Method B because it looks better :p

The Break Tool:



Hope this helps ya, Grimm, and anyone else who want's to know ^_^
« Last Edit: August 12, 2004, 05:00:57 PM by Satiagraha »

We are the shadow that comes in the night and says "ARRR!"
"yarrr I'm gaybeard the butt pirate, and I've come to plunder yer booty!" -TAK

March 07, 2004, 11:26:46 PM
Reply #5

Cold-NiTe

  • Skulk

  • Offline
  • *

  • 58
    • View Profile
    • http://home.comcast.net/~grain_silo/my_sig.jpg
Honestly this deserves a sticky its so well thought out.

EDIT:  Or should I say a "Tarball" ?
« Last Edit: March 07, 2004, 11:27:20 PM by Cold-NiTe »

Full Metal Alchemist + FFXI
www.yzzerdd.com - For everyone who remembers that Episode of Aqua Teen Hunger Force.  Yes.  It DOES exist.

March 08, 2004, 03:00:38 PM
Reply #6

Loke The Sleek Peruvian

  • Legacy Reserved
  • Fade

  • Offline
  • **

  • 287
    • View Profile
    • http://
Thank you very much. For that you get 15% of sleekness. Enjoy!
I am Sleek.

Are you?



Quote
Only in peru would you consider being closer to satan 'winning'... INCA HAX FOR THE WIN!

March 14, 2004, 07:40:59 PM
Reply #7

Satiagraha

  • Marine

  • Offline
  • ****

  • 960
    • View Profile
    • http://
Quote
you get 15% of sleekness
Horrah! I'm sleeker than Lito :p (of course, almost everyone is sleeker than Lito...)

Seriously, I hope any Demo-ers find this helpful

We are the shadow that comes in the night and says "ARRR!"
"yarrr I'm gaybeard the butt pirate, and I've come to plunder yer booty!" -TAK