Author Topic: DP2Demo2AVI 0.5  (Read 18560 times)

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
DP2Demo2AVI 0.5
« on: July 15, 2007, 12:14:45 PM »
Don't use this, it's shiiiiiiiiiiiiiiit.

I've spent the best part of today making a special script for the generation of DP movie makers that has sprung up recently. Due to the fact FRAPS takes a user to operate, and many retries to get the perfect shot, I've created an alternative, which does not require a user to control the process. Using default settings, this script will convert a dm2 file to a XviD .avi file at a selectable fps, resolution and bitrate, good settings for making a youtube video. You can leave this on and go out, there is no need to stop/start recording.

Features:
  • User-independent conversion
  • Good output format for YouTube
  • Free
  • Relatively easy-to-use
  • Can be used on a PC without DP installed
Known Bugs:
  • Half conversion
How to use
  • Run the easy installer.
  • Place demo in %dir%\dp\pball\demos
  • Place required map %dir%\dp\pball\maps
  • Place any extra required files in respective folders
  • Run DP2Demo2AVI from the start menu or desktop shortcut.
Contents of package:
  • Paintball2 Build016 stripped down w/ custom settings
  • mencoder from mplayerhq.hu
  • XviD codec from xvid.org
  • lame_enc
  • soundcapture by bleucanard
Planned Features:
  • Queuing/Multiple file conversions
  • Changeable export settings


    Notes
    All required files must be in directory or missing textures/sfx will appear in the conversion.
    DO NOT RUN MULTIPLE CONVERSIONS AT ONCE.

    Downloads:
    http://www.viciouz.co.uk/other/dp2demo2avi_0.5b.exe [20MB installer file]

    Enjoy! Feedback, criticism, and bug reports welcomed.

    UPDATED FOR 0.5
« Last Edit: April 03, 2013, 07:47:11 AM by ViciouZ »

y00tz

  • Autococker
  • Posts: 2742
Re: DP2Demo2AVI 0.1
« Reply #1 on: July 15, 2007, 02:05:54 PM »
Neat idea, if you learn how to add GUIs, will you remaster all the DP* stuff? I'd love to see it.

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Re: DP2Demo2AVI 0.1
« Reply #2 on: July 15, 2007, 02:43:26 PM »
V,

Have you checked the licensing of all of those progies?

Just checking..

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: DP2Demo2AVI 0.1
« Reply #3 on: July 15, 2007, 02:45:09 PM »
V,

Have you checked the licensing of all of those progies?

Just checking..
Yep. Mencoder, DP & XviD = open source, PictView32 and MAKEAVI.EXE are reditributable freeware.


Neat idea, if you learn how to add GUIs, will you remaster all the DP* stuff? I'd love to see it.
I'm working on it.

Anyway, for people who want to use this app, you might as well wait til tomorrow because i just worked out a fix that could reduce encoding time by up to 25%.

b00nlander

  • Autococker
  • Posts: 784
Re: DP2Demo2AVI 0.1
« Reply #4 on: July 15, 2007, 02:57:12 PM »
I've spent the best part of today making a special script for the generation of DP movie makers that has sprung up recently. Due to the fact FRAPS takes a user to operate, and many retries to get the perfect shot, I've created an alternative, which does not require a user to control the process. Using default settings, this script will convert a dm2 file to 320x240 XviD .avi file at 30fps, good settings for making a youtube video. You can leave this on and go out, there is no need to stop/start recording.

default settings? where can I change those?
I went ahead and tried it, the AVI file looks good, but very low resolution and no sound.  And, major problem: it only converted about half of the demo ... ::(

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: DP2Demo2AVI 0.1
« Reply #5 on: July 15, 2007, 03:03:10 PM »
The settings will be changeable in v0.2. Basically, if the resolution was 640x480, you'd need a pretty darn new PC with 40GB free space to use it.

I don't know about the half the demo problem... did you close the window half-way through? Did the window freeze at any point? Does the file skip about? Did you run out of disk space? You may have hit the animdump file limit. Try recreating the error please.

Unless jitspoe makes a sound dump feature soon, I don't really see how sound will be recordable without windows getting in the way. I'll see what I can do.

Cobo

  • Autococker
  • Posts: 1362
Re: DP2Demo2AVI 0.1
« Reply #6 on: July 15, 2007, 03:21:53 PM »
Cant you run some background process that records sounds?

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: DP2Demo2AVI 0.1
« Reply #7 on: July 15, 2007, 03:26:49 PM »
Yeah, but as I said, windows will get in the way, so If i was watching porn listening to the levellers while it worked, the sound would be fooked up.

y00tz

  • Autococker
  • Posts: 2742
Re: DP2Demo2AVI 0.1
« Reply #8 on: July 15, 2007, 03:42:58 PM »
That doesn't seem to accurately answer his question... But I understand.

Cobo

  • Autococker
  • Posts: 1362
Re: DP2Demo2AVI 0.1
« Reply #9 on: July 15, 2007, 03:44:38 PM »
Oh, no, I understood. I just didnt read the last sentence of the post before mine :P

b00nlander

  • Autococker
  • Posts: 784
Re: DP2Demo2AVI 0.1
« Reply #10 on: July 15, 2007, 04:27:53 PM »
Quote
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: BGR 24-bit)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using BGR 24-bit as output csp (no 0)
Opening video filter: [flip]
Movie-Aspect is undefined - no prescaling applied.
SwScaler: using unscaled bgr24 -> yuv420p special converter
Opening video filter: [expand]
Expand: -1 x -1, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
videocodec: XviD (320x240 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=320x240, sampled=320x240
xvid: CBR Rate Control -- bitrate=1024kbit/s
Selected video codec: [rawbgr24flip] vfm: raw (RAW BGR24)
==========================================================================
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...
ODML: vprp aspect is 4:3.
Writing header...
ODML: vprp aspect is 4:3.

but those probably don't have much to do with the shortened encoding.  I tried encoding the same demo again - again only half of it was converted.  17 GB space left, that shouldnt be the problem.
Could you convert a larger demo please and check the values during the encoding?
I had 28,000 anim jpg files for a 15 minute demo, animdump limit?... no idea what else I could do.  Maybe I'll try another demo tomorrow.
Oh, and I didn't touch the stuff while it was converting.  Btw, does it make use of multiple CPUs?

magalhaes

  • Autococker
  • Posts: 1256
Re: DP2Demo2AVI 0.1
« Reply #11 on: July 15, 2007, 09:59:47 PM »
I tried it with a 20min demo and worked perfectly.
The only thing is that it takes REALLY to much time.
I'm pretty sure it take more than half an hour.

Anyway, Good job.

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: DP2Demo2AVI 0.1
« Reply #12 on: July 16, 2007, 10:02:02 AM »
Currently, It only uses 1 CPU. I've also discovered a large flaw and it should cut encoding time by a quarter. No idea what the problem is with yours, b00n. (sadly.)

b00nlander

  • Autococker
  • Posts: 784
Re: DP2Demo2AVI 0.1
« Reply #13 on: July 16, 2007, 01:00:19 PM »
well, today I tried a different demo (double the size, ~1 MB), and...  first it put more than 30 GB on my disk and then it didnt even make the AVI
I hope you can fix that.
Oh, btw, this time it opened the game in Fullscreen (1280x1024) first, and then I went in the settings and changed it to 640x480, so that probably explains the amount of data. But why did it open in fullscreen?

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: DP2Demo2AVI 0.1
« Reply #14 on: July 16, 2007, 01:20:16 PM »
No idea at all. Were you using the paintball2.exe file at any point?
I am uploading now a new version which reduces encoding time 80% and includes sound and changeable settings! :D :D :D :D :D

edit:


Version 0.4!

Smaller, slicker, easier, quicker, customisable and less stuff to go wrong! Plus super-buggy sound.

http://www.viciouz.co.uk/other/dp2demo2avi_0.4.exe

b00nlander: try this one.

b00nlander

  • Autococker
  • Posts: 784
Re: DP2Demo2AVI 0.1
« Reply #15 on: July 16, 2007, 01:26:28 PM »
I did not touch a single file, and not paintball2.exe

looks like your bunch of programs thrown together are still quite buggy  ^^

and reducing filesize would be better than reducing encoding time :P

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: DP2Demo2AVI 0.1
« Reply #16 on: July 16, 2007, 01:30:44 PM »
and reducing filesize would be better than reducing encoding time :P

The game dumps in TGA... if jits could make it dump jpgs, then this would be even less likely to go wrong.

b00nlander

  • Autococker
  • Posts: 784
Re: DP2Demo2AVI 0.1
« Reply #17 on: July 17, 2007, 04:37:10 PM »
Quote
Reading anim40355.tga ooooooooooooooooo
Writing .\jpg\anim40355.jpg  ooooooooooooooooo

Frames converted.
Encoding to XviD...
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from yuv422p to yuv420p using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
SwScaler: 640x480 -> 640x480
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.

it did, in fact, create the demo.  but only 2/3 of it, because after that, some maximum for the TGA files was reached if I remember correctly. Also, the movie's quality is bad because of the jpg files :P  can you not increase the jpg's quality or convert to something better? I'd rather have a larger than a bad quality movie (or at least have a choice :P)

y00tz

  • Autococker
  • Posts: 2742
Re: DP2Demo2AVI 0.1
« Reply #18 on: July 17, 2007, 04:54:32 PM »
The max TGAs is like 9,999.  Wow.

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: DP2Demo2AVI 0.1
« Reply #19 on: July 18, 2007, 12:38:08 AM »
It's actually mencoder's jpg encoding, the older way takes much longer but hads better quality. Use 0.2.