• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 11:12
CET 17:12
KST 01:12
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket12Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA12
StarCraft 2
General
RSL Season 3: RO16 results & RO8 bracket SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
A cwal.gg Extension - Easily keep track of anyone soO on: FanTaSy's Potential Return to StarCraft Data analysis on 70 million replays [ASL20] Ask the mapmakers — Drop your questions FlaSh on: Biggest Problem With SnOw's Playstyle
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile [Game] Osu! Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2163 users

VirtualDub multi-process script complete...

Blogs > x89
Post a Reply
x89
Profile Blog Joined July 2010
United Kingdom276 Posts
August 19 2010 03:27 GMT
#1
Want to use your 4 core computer effectively?
Here's some code I whipped up

Run vdub and edit the variables to reflect your file locations, but if you have a file full of AVIs that are 4GiB that Fraps outputs this will run 4 instances of conversion at the same time.

Essentially it means you'll transcode in 1/4 of the time, each ~2 minute capture takes me about 440 seconds to transcode to a nice avi, I have some filters to reduce the resolution (need to experiment with more later) but if you have Perl and the modules installed and run this you'll find nothing faster at making great fast threaded transcodes of your Fraps castings.

I warn you, I have a quad core (Phenom II 940BE) and it's killed my computer more than anything I've done before. DO NOT go above the amount of cores your computer has, you'll probably die.

I actually wanted real time transcoding as I made the captures but I can't work the -r and -w options (check if file is read / writable) with Windows, it just seems to fail and opens the file and dies.

Anyway I thought any of you casters / programmers (not progamers, horribly close those two words) might find this script handy.

[image loading]

As you can see, with my settings, each thread will use almost 800MiB of RAM and 100% of one processor. If you're lucky enough to have one of the 6-core procs out there and 6GiB of RAM then you'll get beautiful speeds.

You do have to disable GPU optimizations in vdub unfortunately as your GPU simply can't do it. It would be possible to do one thread with GPU processing, I may do that just for the slight improvement in one thread.

Hope someone else finds a use for this! It does mean 400 seconds for 8 minutes of files, and this is HDD to the same HDD and it's only a Samsung F1, nothing special!

I'll keep working on the real-time transcoding, and I intend to add features to use blip.tv's FTP features to upload on completion as well as joining of the AVI files, that can most likely be done with more tuning though.

I wrote the script as legibly as I possibly could in Perl, it shouldn't be hard to understand. You will need the Paralell::ForkManager module installed.

***
Hallowed are the Ori.
T.O.P. *
Profile Blog Joined January 2009
Hong Kong4685 Posts
August 19 2010 03:44 GMT
#2
Why not just compress with a multi threaded codec like x264vfw?
Oracle comes in, Scvs go down, never a miscommunication.
x89
Profile Blog Joined July 2010
United Kingdom276 Posts
August 19 2010 03:49 GMT
#3
On August 19 2010 12:44 T.O.P. wrote:
Why not just compress with a multi threaded codec like x264vfw?

Initially I wanted real time transcoding, as in capture, as soon as the capture file is done, transcode it. So I just worked on it from there.

No point in changing now I have something that works perfectly and I know inside-out.
Hallowed are the Ori.
Please log in or register to reply.
Live Events Refresh
Next event in 15h 18m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
BRAT_OK 88
StarCraft: Brood War
Britney 50472
Calm 4797
Rain 2640
BeSt 938
Mini 748
Stork 605
EffOrt 559
Larva 490
Light 461
firebathero 272
[ Show more ]
ZerO 270
hero 157
Rush 153
Leta 68
Mind 67
Sharp 66
zelot 40
Pusan 39
ToSsGirL 33
Backho 27
scan(afreeca) 27
HiyA 16
JulyZerg 14
Terrorterran 13
Hm[arnc] 13
ivOry 3
Dota 2
Gorgc6653
qojqva2238
Dendi731
Counter-Strike
oskar111
Other Games
singsing1788
B2W.Neo1390
FrodaN899
hiko693
crisheroes405
Lowko360
Hui .334
RotterdaM218
DeMusliM166
Mlord161
KnowMe125
QueenE114
XaKoH 50
Trikslyr43
ZerO(Twitch)12
Dewaltoss0
Organizations
Dota 2
PGL Dota 2 - Main Stream20567
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3427
• WagamamaTV382
• Ler73
League of Legends
• Nemesis4588
• Jankos1443
• TFBlade1114
Upcoming Events
RSL Revival
15h 18m
Classic vs MaxPax
SHIN vs Reynor
herO vs Maru
WardiTV Korean Royale
19h 48m
SC Evo League
20h 18m
IPSL
1d
Julia vs Artosis
JDConan vs DragOn
OSC
1d
BSL 21
1d 3h
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
1d 15h
Wardi Open
1d 21h
IPSL
2 days
StRyKeR vs OldBoy
Sziky vs Tarson
BSL 21
2 days
StRyKeR vs Artosis
OyAji vs KameZerg
[ Show More ]
OSC
2 days
OSC
2 days
Monday Night Weeklies
3 days
OSC
3 days
Wardi Open
3 days
Replay Cast
4 days
Wardi Open
4 days
Tenacious Turtle Tussle
5 days
The PondCast
5 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-16
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.