• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 12:43
CEST 18:43
KST 01:43
  • 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
TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Chinese SC2 server to reopen; live all-star event in Hangzhou17Weekly Cups (Oct 13-19): Clem Goes for Four2BSL Team A vs Koreans - Sat-Sun 16:00 CET6Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)80
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 13-19): Clem Goes for Four Chinese SC2 server to reopen; live all-star event in Hangzhou Weekly Cups (March 17-23): Clem Bounces Back DreamHack Open 2013 revealed
Tourneys
RSL Season 2 Qualifier Links and Dates $1,200 WardiTV October (Oct 21st-31st) SC2's Safe House 2 - October 18 & 19 INu's Battles #13 - ByuN vs Zoun Tenacious Turtle Tussle
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers
Brood War
General
Is there anyway to get a private coach? SnOw's Awful Building Placements vs barracks BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion BSL Season 21
Tourneys
[Megathread] Daily Proleagues 300$ 3D!Community Brood War Super Cup #4 [ASL20] Semifinal B Azhi's Colosseum - Anonymous Tournament
Strategy
Current Meta Roaring Currents ASL final [I] Funny Protoss Builds/Strategies BW - ajfirecracker Strategy & Training
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Dawn of War IV ZeroSpace Megathread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
Things Aren’t Peaceful in Palestine US Politics Mega-thread The Chess Thread Russo-Ukrainian War Thread Men's Fashion Thread
Fan Clubs
The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Series you have seen recently... [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023 Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
The Heroism of Pepe the Fro…
Peanutsc
Rocket League: Traits, Abili…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1614 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
OSC
16:00
Masters Cup #150 Qual 1-2
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
LamboSC2 478
ProTech91
BRAT_OK 51
MindelVK 14
Codebar 1
StarCraft: Brood War
Calm 4162
Rain 3966
Flash 2614
Bisu 1973
Jaedong 886
Mini 697
Soma 539
EffOrt 492
firebathero 462
Light 413
[ Show more ]
Stork 400
ZerO 326
Snow 227
Zeus 222
Soulkey 212
Hyun 174
PianO 86
Rush 77
Barracks 63
Movie 55
Mind 52
Killer 45
Sharp 43
zelot 32
Free 27
Shinee 22
Terrorterran 16
ajuk12(nOOB) 16
Rock 15
scan(afreeca) 14
Sacsri 11
SilentControl 9
HiyA 7
Mong 1
Dota 2
qojqva4897
Dendi1474
420jenkins549
LuMiX0
Counter-Strike
allub140
FunKaTv 43
Other Games
FrodaN662
ceh9380
B2W.Neo351
Liquid`VortiX246
Skadoodle186
Beastyqt168
ArmadaUGS99
KnowMe70
Trikslyr65
C9.Mang056
Mew2King53
ZerO(Twitch)17
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• HeavenSC 38
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2942
• WagamamaTV509
League of Legends
• Nemesis3623
• Jankos1964
• TFBlade520
Upcoming Events
Tenacious Turtle Tussle
6h 17m
The PondCast
17h 17m
OSC
19h 17m
WardiTV Invitational
1d 18h
Online Event
1d 23h
RSL Revival
2 days
RSL Revival
2 days
WardiTV Invitational
2 days
Afreeca Starleague
3 days
Snow vs Soma
Sparkling Tuna Cup
3 days
[ Show More ]
WardiTV Invitational
3 days
CrankTV Team League
3 days
RSL Revival
4 days
Wardi Open
4 days
CrankTV Team League
4 days
Replay Cast
5 days
WardiTV Invitational
5 days
CrankTV Team League
5 days
Replay Cast
6 days
CrankTV Team League
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 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.