Hi,
As i 2-pass encode alot of things similarly in generally the same way, i am in the midst of creating my own program to automate much of the things that would be required to be manually entered/done in gordian knot.
Insofar as doing this, i have successfully managed to demux an mpg to .d2v and .mpa/.ac3 (not tech part of the gknot process) - to generate the AVS File as i require it, to use besweet to conver to mp3 as required and to generate most of the vdub job file that would be needed, thanks to the gknot.log
My Current Issues Are The Following:
ISSUE 1 - Target Filesize --> Stats .first/secondpass files
Firstly, i wish to have a 'target size' for the final output - now having looked around, ive noticed that this option is apparent in the actual 2nd-pass xvid settings.
This leads to my observation of the .firstpass and .secondpass files generated by vdub - which, by looking at them, appear to be reg keys either which im assuming it inputs into the registry at the relevant times.
Looking at these files myself, i note that the ones which ar enot 0 (dont havea hexadecimal of 0000000) are, and of concern to me are:
"bitrate"=dword:000002bc
"desired_size"=dword:0007bc15
"target_size"=dword:000a2800
"fps"=dword:00000002
"audio_rate"=dword:00000080
now looking at the first, i see this is 700 - whcih was the default what was in the XviD settings config - but not shown - so im not surei f htis is redundant for these purposes
the second thing, 0007bc15 correctly indicates the correct, initial, target filesize - as shown int he XviD dialog in kbytes
the last 3 im unsure of their purpose, or where they have been generated.
ISSUE2 - Target Filesize --> Changing VIDEO Target Size Within The Process Itself to ensure a correct final size.
Now throughout the process i see 2 areas where the target filesize is possibly changed, these are:
1) After The Audio File Has Been Converted To MP3 --> This is easy as its simple to get the mp3 filesize, and merely find the difference between the total final avi size and that MP3, i.e if our target is 400, and the mp3 is 50, the video target becomes 350
2) After The First Pass, as a result of the IVTC, issues arise re frame numbers. Looking at the log something liek this occurs:
6:18:27 PM: Encoded: 78616 Frames.
6:18:27 PM: Speed: 66.581 Frames per Second.
6:18:27 PM: WARNING: Number of counted frames differs from settings!
6:18:27 PM: WARNING: Settings: 98271
6:18:27 PM: WARNING: Counted: 78616
6:18:27 PM: WARNING: Difference: 19655
6:18:27 PM: Correcting Bitrate...
6:18:27 PM: Original Bitrate = 1274 k(=1000)Bits/s
6:18:27 PM: Now encoding at 1594 k(=1000)Bits/s
6:18:27 PM: New target size = 510476 Kb
Now im unsure of the affect of these, because im unsure exactly how XviD's "target size" will work, and whether the bitrate needs to be set?
Further, i also noticed that in the original XviD 1st pass dialog (when accessed via gknot) there was no target size, presumabely because the 1st pass is just collecting statistics (essentially, as my understanding)
ISSUE 3 - SetCompData param in vdub
Now lookign at the job files gknot generates for the first pass, importantly for me, i note the following - which is re the xvid codec:
Which i am again unsure of.Code:VirtualDub.video.SetCompData(3532,"AgAAALwCAAAMygcAQzpcRW5jb2RpbmdcUHJvamVjdF8xXEJpZy5Mb3ZlLlMwM0UwNi5zdGF0cwBCAGkAZwAuAEwAbwB2AGUALgBTADAAMwBFADAANgAuAHMAdABhAHQAcwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAEAAEFkdmFuY2VkIFNpbXBsZSBAIEw1AABtAHAAbABlACAAQAAgAEwANQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAChVc2VyIGRlZmluZWQpAABmAGkAbgBlAGQAKQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAABkAAAAZAAAAAEAAAAKAAAAAQAAABQAAAAAAAAAAAAAAAUAAAAPAAAADwAAAAAoCgAAAAAAAQAAAAEAAAAeAAAAAAAAAAIAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAYAAAABAAAAAAAAAAEAAAAAAAAALAEAAAAAAAABAAAAHwAAAAEAAAAfAAAAAQAAAB8AAAABAAAAAgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAzwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==");
----------------------------------------------------
Conclusion/Summary
Basically where im at in this whole process is this:
I have:
the .d2v file
the correct .avs
the converted .mp3
the target filesize for the video file (as a difference of the total final avi filesize and the MP3)
Concerns:
I have predominately the whole first/second pass job files for virtualdub, with the exception of VirtualDub.video.setCompData paramater, as discussed above
I Am Able To Generate The .firstpass .secondpass files - except i am not entirely sure of theyre use (I think that the .firstpass gets insertedi nt he registry just before the firstpass, and the .secondpass just before the secondpass) - and also of those paramaters discussed above,.
Any assistance would be greatly appreciated.
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
looking for s/w that can recreate an MP4 file at slower playback speed
By ginahoy in forum EditingReplies: 9Last Post: 11th May 2021, 06:37 -
How can I recreate the Godfather films in Chronological order?
By Red_Dreams in forum DVD RippingReplies: 4Last Post: 21st Nov 2009, 13:46 -
Increasing volume in GKnot
By Fire Foxer in forum EditingReplies: 6Last Post: 7th Aug 2009, 08:08 -
logo supplementation in GKnot
By Fire Foxer in forum EditingReplies: 0Last Post: 5th Aug 2009, 13:31 -
Recreate DVDR menu or edit code?
By ScannerWA in forum Authoring (DVD)Replies: 4Last Post: 24th Oct 2008, 15:54