• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:08
CEST 07:08
KST 14:08
  • 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
Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway13
Community News
SC4ALL $6,000 Open LAN in Philadelphia7Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues24LiuLi Cup - September 2025 Tournaments3Weekly Cups (August 25-31): Clem's Last Straw?39Weekly Cups (Aug 18-24): herO dethrones MaxPax6
StarCraft 2
General
#1: Maru - Greatest Players of All Time Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues Team Liquid Map Contest #21 - Presented by Monster Energy Classic Games #3: Rogue vs Serral at BlizzCon What happened to Singapore/Brazil servers?
Tourneys
RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament SC4ALL $6,000 Open LAN in Philadelphia LANified! 37: Groundswell, BYOC LAN, Nov 28-30 2025 LiuLi Cup - September 2025 Tournaments
Strategy
Custom Maps
External Content
Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast
Brood War
General
BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ BSL Team Wars - Bonyth, Dewalt, Hawk & Sziky teams ASL20 General Discussion alas... i aint gon' lie to u bruh...
Tourneys
[ASL20] Ro16 Group B SC4ALL $1,500 Open Bracket LAN CPL12 SIGN UP are open!!! [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile General RTS Discussion Thread Borderlands 3
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
Effective ED Solutions for Better Relationships US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Games Industry And ATVI
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1490 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 4h 52m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 192
Livibee 43
StarCraft: Brood War
Sea 7678
sSak 97
ToSsGirL 62
Noble 54
Dota 2
LuMiX1
League of Legends
JimRising 653
Counter-Strike
Stewie2K502
Coldzera 275
semphis_36
Other Games
summit1g7206
shahzam619
C9.Mang0354
WinterStarcraft308
XaKoH 182
ViBE85
Organizations
Other Games
gamesdonequick1210
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH211
• practicex 32
• Sammyuel 6
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Diggity5
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1152
• Stunt498
Upcoming Events
RSL Revival
4h 52m
Maestros of the Game
8h 52m
ShoWTimE vs Classic
Clem vs herO
Serral vs Bunny
Reynor vs Zoun
Cosmonarchy
10h 52m
Bonyth vs Dewalt
[BSL 2025] Weekly
12h 52m
RSL Revival
1d 4h
Maestros of the Game
1d 11h
BSL Team Wars
1d 13h
Afreeca Starleague
2 days
Snow vs Sharp
Jaedong vs Mini
Wardi Open
2 days
Sparkling Tuna Cup
3 days
[ Show More ]
Afreeca Starleague
3 days
Light vs Speed
Larva vs Soma
LiuLi Cup
4 days
The PondCast
5 days
Korean StarCraft League
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
SEL Season 2 Championship
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
Chzzk MurlocKing SC1 vs SC2 Cup #2
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL Polish World Championship 2025
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
SC4ALL: StarCraft II
EC S1
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 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.