Home| What is Steam| Community| News| Cyber Cafés| Forums| Support| Stats

Go Back   Steam Users' Forums > Steam Game Discussions > T - Z > Team Fortress 2
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-05-2009, 02:41 PM   #1
SevenNights
 
Join Date: May 2009
Reputation: 0
Posts: 7
XviD codec crashes my TF2 when creating a movie

Hello there.

So, I've been trying to get into the TF2 movie busyness, getting them demos and 'tubing them. I've followed this guide, which has been tremendous help: http://forums.steampowered.com/forum...d.php?t=934312

But here's the thing: Whenever I try to make an .avi using the XviD codec, my TF2 inexplicably crashes. I already had the k-lite pack, and after downloading the cccp pack the problem persisted. I tried installing just the XviD codec, it still crashed. Host_framerate 30, no editing, 1 smoothing, 1280x720 resolution, WINDOWED MODE.

Can anyone direct me as to why the hell this is happening? It's not only me that's having this problem, as I see a whole bunch of other people complaining as well.

Halp!

Last edited by SevenNights : 11-05-2009 at 04:31 PM. Reason: even moar info
SevenNights is offline   Reply With Quote
Old 11-05-2009, 03:17 PM   #2
KK_reborn
 
Join Date: Apr 2005
Reputation: 19
Posts: 3,013
I can't help you with this but I can recommend using XFire to create your movies. It's easy as clicking two buttons. The movies are then yours to do what you wish with them, they can even be uploaded to your own XFire profile.
KK_reborn is offline   Reply With Quote
Old 11-05-2009, 03:27 PM   #3
Hamish
 
Join Date: Jan 2009
Reputation: 0
Posts: 31
Firstly, make sure your in windowed mode.
If the problem persists then you could try rendering out to a lossless codec like Lagarith then encode to whatever codec you please in a video editing package.

But your problem does sound like you're not in windowed mode, try that first. If it still doesn't work, then go for FRAPS or XFire even though the frames may not be stable.
Hamish is offline   Reply With Quote
Old 11-05-2009, 04:07 PM   #4
Laggy1.2.3
 
Join Date: Sep 2009
Reputation: 28
Posts: 497
Download the PLDX config, save your movie as targas and set your FPS at 30, then virtual dub. I will make a tutorial later.
Laggy1.2.3 is offline   Reply With Quote
Old 11-05-2009, 04:17 PM   #5
exconvict
 
Join Date: Aug 2009
Reputation: 10
Posts: 225
why do people insist on making TF2 encode the video?

startmovie <moviename> is the command you want

A targe sequence will be generated along with a .wav file. Use this to make a movie and compress it however you like. Using TF2 to encode the video is a terrible idea, as can be seen here and in many other threads.
exconvict is offline   Reply With Quote
Old 11-05-2009, 04:38 PM   #6
SevenNights
 
Join Date: May 2009
Reputation: 0
Posts: 7
Hey replies! Awesome and thanks, guys!

I am actually in windowed mode, from the very start. Forgot to mention it, sorry.

@exconvict: Doesn't that method create a zillion TGA files that take up tons of space? I also have a couple of friends that have trouble synching the audio with the video afterwards. Any tip as to how fix/prevent desynching?

Also, I look forward to your tutorial, Laggy1.2.3. I really need all the help I can get at this phase.

If all else fails, I may try X-Fire like KK_Reborn sugested. Althought I really, really, REALLY wanted to get this codec working first!
SevenNights is offline   Reply With Quote
Old 11-05-2009, 06:19 PM   #7
exconvict
 
Join Date: Aug 2009
Reputation: 10
Posts: 225
Quote:
Originally Posted by SevenNights View Post
Hey replies! Awesome and thanks, guys!

I am actually in windowed mode, from the very start. Forgot to mention it, sorry.

@exconvict: Doesn't that method create a zillion TGA files that take up tons of space? I also have a couple of friends that have trouble synching the audio with the video afterwards. Any tip as to how fix/prevent desynching?

Also, I look forward to your tutorial, Laggy1.2.3. I really need all the help I can get at this phase.

If all else fails, I may try X-Fire like KK_Reborn sugested. Althought I really, really, REALLY wanted to get this codec working first!

Yes, it creates quite a few tga files. The size isn't absurd or anything, maybe 15GB or so. The general game plan is this:

Create a config called video with the following code in it:
Code:
sv_cheats 1
host_framerate 60
cl_drawhud 0
tf_weapon_criticals 0
cl_showfps 0
net_graph 0
clear
echo "sv_cheats 1"
echo "host_framerate 60"
echo "cl_drawhud 0"
echo "tf_weapon_criticals 0"
echo "cl_showfps 0"
echo "net_graph 0"
echo "-------------------------------------------------------------------------"
echo "-------------------------------------------------------------------------"
echo "-------------------------------------------------------------------------"
echo "Don't forget to set:"
echo "DXLevel"
echo "viewmodel"
echo "particles"
echo "should have launch options:"
echo "      -sw -w 1280 -h 720 -noborder -dxlevel 95"
echo "Next step:
echo "      -startmovie <moviename>"
echo "      -playdemo <demoname>"
Before you start up tf2, put in the following launch options:

Code:
-sw -w 1280 -h 720 -noborder -dxlevel 95
and make sure these are removed:

Code:
-full
Launch tf2 and type exec video and then set your viewmodel and FOV settings. (viewmodel_fov 54 and fov_desired 90 are standard). Afterwards type startmovie <moviename> in console. Then playdemo <demoname>

Walk away from your computer while it chugs away (slowly) and creates a load of targa files + 1 .wav.

After this you take the targa sequence and load it up into virtualdub or any other similar video editing program. Some people create an uncompressed avi (which is ginormous) and then drop it into more advanced video editing programs. I personally do a .mov or .avi compression with virtual dub and then drop it into Adobe AfterEffects. Once the avi is created, just delete the targa sequence.

Last edited by exconvict : 11-05-2009 at 06:21 PM.
exconvict is offline   Reply With Quote
Old 11-06-2009, 03:10 PM   #8
SevenNights
 
Join Date: May 2009
Reputation: 0
Posts: 7
Well, targa sequence came out fine, but for some reason I simply can't create an .avi with virtualdub. No doubt I'm screwing up somewhere...

I first selected open video file and selected the first image file. Then I went to video/framerate em set the framerate to 60. Then I went to audio and selected the .wav TF2 created. Finally I went to file and "saved as an .avi". And the results were scary. The colors went inverted all over the place. EVERYONE WAS BLUE! And the video seemed to stop playing at random intervals. Basicaly, it looked corrupted.

Any idea why this happened?

Last edited by SevenNights : 11-06-2009 at 03:11 PM. Reason: typos, etc
SevenNights is offline   Reply With Quote
Old 11-06-2009, 03:16 PM   #9
Hug_an_Emo
 
Join Date: Feb 2009
Reputation: 29
Posts: 1,374
I just used a different codec and it worked fine. Try all of them and find one you like. Dealing with all those targas in a pain.
Hug_an_Emo is online now   Reply With Quote
Old 11-06-2009, 03:17 PM   #10
ardysqrrl
 
Join Date: Feb 2009
Reputation: 49
Posts: 1,238
if you don't have a lot of hard drive space you probably shouldn't work with video
ardysqrrl is online now   Reply With Quote
Old 11-06-2009, 03:21 PM   #11
SevenNights
 
Join Date: May 2009
Reputation: 0
Posts: 7
I have like 150 free gigs, so it's not space. It's not memory either (4gbs).

I already tried all other diferent codecs and, quite frankly, they all suck. They either create a giant .avi file with crappy quality, or a MASTADONTIC, TITANICAlLY MASSIVE file, with ok quality.

Last edited by SevenNights : 11-06-2009 at 03:23 PM. Reason: moar typos
SevenNights is offline   Reply With Quote
Old 11-06-2009, 03:22 PM   #12
leahcim
 
Join Date: Dec 2007
Reputation: 51
Posts: 915
Quote:
Originally Posted by SevenNights View Post
Well, targa sequence came out fine, but for some reason I simply can't create an .avi with virtualdub. No doubt I'm screwing up somewhere...

I first selected open video file and selected the first image file. Then I went to video/framerate em set the framerate to 60. Then I went to audio and selected the .wav TF2 created. Finally I went to file and "saved as an .avi". And the results were scary. The colors went inverted all over the place. EVERYONE WAS BLUE! And the video seemed to stop playing at random intervals. Basicaly, it looked corrupted.

Any idea why this happened?
You probably want 30fps not 60fps (source writes out 30 frames per second...I don't know whether that is configurable, but I presume it's the default. It doesn't write out frames as though you are playing the game for real, at a variable rate or based on v-sync settings etc, though - completely different kettle of fish)

Then you want to choose 'compression' from the video menu and select xvid from the list of codecs (standard windows dialogue), and click 'configure' to configure the xvid settings.

I usually choose "Target quantizer" (if you see a Target bitrate button, press that button and it changes to target quantizer) and I choose either '2' - which will be a biggish file, but excellent quality or '4' which will still be good but have more compression. "6" is passable if you really want to compress. Higher than that and the quality will suffer.

If you prefer you can just set a target bitrate.

If you want to compress the audio as well, you need to choose "full processing mode" from the audio menu, and then you can select 'compression' as for video above, and it's a similar process of choosing the codec from the list and configuring it.

Then "save as avi" should create a 30fps movie with the sound perfectly synced. If it doesn't go into the options menu in virtualdub, choose preferences, choose 'images' from the left. Enter 30.0000 where it says "Default frame rate" and then from Video / frame rate set it to "no change"

Last edited by leahcim : 11-06-2009 at 03:36 PM.
leahcim is offline   Reply With Quote
Old 11-07-2009, 03:14 AM   #13
SevenNights
 
Join Date: May 2009
Reputation: 0
Posts: 7
http://www.youtube.com/watch?v=o88tGD2Biy8

YES! It finally works! Perfect quality in a very small file! Thank you for all your help guys, especially exconvict and leahcim! You guys are going in the credits on my first prodution.

Can't give rep yet, probably due to my newbieness, so here's imaginary rep. And cookies!

For future record, one of my problems were using the 64bit version of virtualdub. Apparently is doesn't handle very well codes (since codecs are 32bits), while some didn't appear at all. So, virtualdub 32bit must be used.
SevenNights is offline   Reply With Quote
Old 11-07-2009, 08:17 AM   #14
immensewok
 
Join Date: Sep 2009
Reputation: 0
Posts: 2
I had a lot of crashes with "startmovie foo avi". Turning off multicore support fixed it.
immensewok is offline   Reply With Quote
Old 11-07-2009, 09:04 PM   #15
leahcim
 
Join Date: Dec 2007
Reputation: 51
Posts: 915
Quote:
Originally Posted by SevenNights View Post
YES! It finally works! Perfect quality in a very small file! Thank you for all your help guys
You're welcome.
leahcim is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


All times are GMT -8. The time now is 05:52 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site Content Copyright Valve Corporation 1998-2009, All Rights Reserved.