Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
How To Batch Process Xvid Two Pass?
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
DPRoberts
Posted: Jan 22 2010, 10:30 PM


Newbie


Group: Members
Posts: 6
Member No.: 26862
Joined: 22-January 10



Just discovered the queue batch process, it is awesome!

I have a VB program that can read AVIs from a folder and it will create a .jobs file for me. It includes doing a First and then a Second pass for the Xvid codec. It works OK, but I have to precreate one job and then it will duplicate. Enough background.

How can I load BOTH passes into the "Batch Wizard" for multiple files? Or is this even possible? Can it be done using a VCF or some other scripting?

Also side note -- Does anybody have the breakdown of the "VirtualDub.video.SetCompData" string for Xvid? I know how to fake some of it, but would like to do better.

DPR
 
     Top
dloneranger
Posted: Jan 23 2010, 12:54 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



It's the state from the video codec's settings - in the windows sdk or on msdn you can have a look at the video for windows functions - look for 'Video Compression Macros' if you're interested

Specifically, its the data returned by ICGetState for that codec, (in the job it's encoded in base64 I think)
You could take a look at the virtualdub source to check for sure though

How easy it is to translate to VBasic ??
For c++ the info's in Vfw.h


The quick way of faking it, is to manually set up a few jobs in virtualdub and then just copy the required lines out of the .jobs file (pass1, pass2 etc)

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
DPRoberts
Posted: Jan 23 2010, 04:22 AM


Newbie


Group: Members
Posts: 6
Member No.: 26862
Joined: 22-January 10



Thank You very much, I will look into it soon.

You hit the nail on the head, I have 5 basic setting I use. When I start a new set of videos, I have a script that will output 5 samples and I choose the best one based on size and quality. Then I use that one to do the rest.

I just finished 5 seasons of Dick Van Dyke, now I have 9 seasons of Perry Mason, 2 seasons of Addams Family, 5 seasons of I Love Lucy, any other show not done by ASD, etc.... I have over 500 to recode.

Now that I know how to use the "Queue Batch" for saving the WAVs, I will work much faster.

TY,
DPR
 
     Top
dloneranger
Posted: Jan 23 2010, 10:43 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Check the help file for command line parameters, you can run virtualdub or vdub in a variety of ways help-advanced operation-commandline operation
(vdub is the cmdline interface for use in a bat file)
eg this would start an instance of virtualdub that loads a jobs file and starts running it automatically
cd \progs\virtualdub\
VirtualDub.exe /slave "D:\NewVids.jobs"

if you wanted to edit the jobs list that was being worked on, start a second virtualdub like this
VirtualDub.exe /master "D:\NewVids.jobs"

If you save the settings - 1st pass xvid , 2nd pass xvid etc as .vcf files from the file menu you can use them to add into that job file

The /p flag tells VirtualDub to add a batch job using the current settings and the given source and destination filenames. The /b flag adds jobs to process an entire directory into another.
virtualdub /master "D:\NewVids.jobs" /s "d:\mySettings.vcf" /p "source.avi" "dest.avi" /x


Virtualdubs job control has 2 modes for job files - local and shared
Use the shared mode if you run multiple instances, as in local mode 2 instanced can overwrite the job file

I have 2 shortcuts for virtualdub on the desktop, 1 is master where I set things up and the other is slave that does all the work
I set my shortcut parameters for virtualdub to this (it loads my default settings and picks direct copy mode as video default, then sets newjobs.jobs as my queue)
"D:\VirtualDub\VirtualDub.exe" /s "C:\Users\Public\Documents\DivX.vcf" /cmd "VirtualDub.video.SetMode(0)" /master "D:\NewVids.jobs"
and the slave to this (starts virtualdub, which works it's way through newvids.jobs)
"D:\VirtualDub\VirtualDub.exe" /slave "D:\NewVids.jobs"




--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
3 replies since Jan 22 2010, 10:30 PM Track this topic | Email this topic | Print this topic

<< Back to Newbie Questions