Log in

View Full Version : D2VCreateCLI v3


Amnon82
17th April 2006, 12:47
http://img526.imageshack.us/img526/1456/d2vccli4ch.png

D2VCreateCLI is based on D2VCreate v3 you can find in my newest AutoQ2 build. Older Version here (http://forum.doom9.org/showthread.php?t=109756).

D2VCreateCLI by Amnon82

This is the CLI version of D2VCreate.
You can use it to create a D2V file and get the informations of it.


v3:

* initial release
* Commands: -dgindex=<string> -exit -vob=<string> -log=<string>
* D2VCreateCLI logfile format v3
* DGIndex 1.46 added
* example.bat added
* Download D2VCreateCLI v3 (http://home.arcor.de/autoq2_amsoft/files/releases/D2VCreateCLIv3.7z)

Amnon82
17th April 2006, 15:52
First in app log:

_____________________________________________________________________________
D2VCreateCLI v3 - (C) 2006 by Amnon82
_____________________________________________________________________________

Call: D2VCreateCLI -vob="I:\Delphi\D2VCreateCLI\test\test.vob" -log="I:\Delphi\D2VCreateCLI\test\test.log" -dgindex="I:\Delphi\D2VCreateCLI\DGIndex\DGIndex.exe"

==Parameters==

-vob is set
>> VOBINPUT = I:\Delphi\D2VCreateCLI\test\test.vob
-log is set
>> logfile = I:\Delphi\D2VCreateCLI\test\test.log
-dgindex is set
>> dgindex path = I:\Delphi\D2VCreateCLI\DGIndex\DGIndex.exe
-exit isn't set

Parameters count: 3

_____________________________________________________________________________
Starting creating d2v file. Please relax ;)
_____________________________________________________________________________

16:50:18 - 17.04.2006 >> I:\Delphi\D2VCreateCLI\test\test.d2v deleted
16:50:18 - 17.04.2006 >> Start D2VCreate v3
16:50:18 - 17.04.2006 >>
16:50:18 - 17.04.2006 >> Executing DgIndex
16:50:18 - 17.04.2006 >> DgIndex commands: -IA=2 -FO=2 -OM=2 -AIF=[I:\Delphi\D2VCreateCLI\test\test.vob] -OF=[I:\Delphi\D2VCreateCLI\test\test]
16:50:18 - 17.04.2006 >> Wait until DgIndex created your D2V file ...

_____________________________________________________________________________

16:50:43 - 17.04.2006 >> Coded # : 10260
16:50:43 - 17.04.2006 >> Frames : 10260
16:50:43 - 17.04.2006 >> Frame Rate : 25.000000 fps
16:50:43 - 17.04.2006 >> Video Type : PAL
16:50:43 - 17.04.2006 >> Frame Type : Interlaced
16:50:43 - 17.04.2006 >> Aspect Ratio : 16:9
16:50:43 - 17.04.2006 >> Audio : DD 3/2 448
16:50:43 - 17.04.2006 >> Frame Size : 704x576
16:50:43 - 17.04.2006 >> Profile : main@main
16:50:43 - 17.04.2006 >> Frame Struct : Frame
16:50:43 - 17.04.2006 >> Field Order : Top
16:50:43 - 17.04.2006 >> Audio : DD 3/2 224
16:50:43 - 17.04.2006 >> Audio : DD 2/0 224
16:50:43 - 17.04.2006 >> Colorimetry : ITU-R BT.709

_____________________________________________________________________________

16:50:43 - 17.04.2006 >> D2VCreate v3 finished

Amnon82
17th April 2006, 16:32
logformat v3:

_____________________________________________________________________________
D2VCreateCLI v3 logfile - (C) 2006 by Amnon82
_____________________________________________________________________________
Format v3 by Amnon82

*frames=10260
*fps=25.000000
*videotype=PAL
*frametype=Interlaced
*aspectratio=16:9
*audio=DD 3/2 448
*framesize=704x576
*profile=main@main
*framestruct=Frame
*fieldorder=Top
*audio=DD 3/2 224
*audio=DD 2/0 224
*color=ITU-R BT.709

If you guys want more formats plz post them ;)

Capt.Video
18th April 2006, 00:27
Thanks 82! I replied to your PM, please let me know if I have your permission as discussed. I will elaborate more in this thread the intended use for this CLI (along with details at my upcoming web site) if I have your blessing.

Great work, keep it up!!

Andrew

Capt.Video
18th April 2006, 00:30
BTW, how do I specify a VOB chain? (EG: VTS_01_1.VOB VTS_01_2.VOB VTS_01_3.VOB) Does it have to be VOBs or can I specify MPEGs?

What I was really after, was a CLI to parse the D2V (IE: A CLI enabled version of D2VParse) that was *already* generated by DGIndex.

If you can expand on these points it would be of great help!

TIA,
Andrew

Capt.Video
18th April 2006, 00:35
If you guys want more formats plz post them ;)
Audio delay?

Amnon82
18th April 2006, 21:20
D2VCreate is the way to get the infos. D2VParse has problems to detect the fieldorder, so D2VCreate is your choice.

If you want to play with D2VParse, I've no problem to code this also as CLI. I can also add a function to readout the infos of a created d2v-file. I must see if I can do this with the D2VCreate-Source without using the D2VParse-way.

Normaly you can readout the audio delay by adding the audiofiles into a edit or something else (string) and cut out the values you need. This you have also to do with my created log-file.

What language you code? Maybe I can help you by give you my delphi-sources. D2VParse-source you can download form my page.

To specify a VOB chain is easy. Simple add VTS_01_1.VOB. All other VOBs will be autoadded :D

So your call will be like this:

D2VCreateCLI -vob="C:\input\VTS_01_1.VOB" -log="C:\logs\movie1.log" -exit

btw. -dgindex="path of dgindex\DGIndex.exe" is not a must. If you don't enter the -dgindex-switch the version I added get started if you keep the folder-structure.

Capt.Video
18th April 2006, 21:59
Does it have to be VOBs or can I specify MPEGs?
The target for this is mainly MPEG2 source... such as DVD and DirecTivo (and other PVR) files...

So... Ill need to open such as "tivovideo.mpg", etc., in addition to VOBs. Actually, DVD 2 Divx is just the added bonus of the project. :-)


Thanks again!!
Andrew

Amnon82
18th April 2006, 22:40
I'm using the -AIF=[file1] switch of DGIndex. So a VOB chain will be autoadded. MPG-files I didn't tried. There is also a second switch (-IF=[file1,file2,file3,...]) with this you can add different files. Maybe I'll add a option to write the DGIndex commands.

ATM the commands are these:

'-IA=2 -FO=2 -OM=2 -AIF=['+VOBINPUT+'] -OF=['+D2VFILENAME+']'

If you only need the fieldorder you can use dgparse with this command: dgparse d2v_file. You can find it in the DGIndex-Package. I'm trying to fix the routine in D2VParse (PFF/TFF).

Capt.Video
19th April 2006, 01:57
If you only need the fieldorder you can use dgparse with this command: dgparse d2v_file. You can find it in the DGIndex-Package.
Every package of DGI Ive downloaded does *not* have the support executable dgparse in it, though I know the recent release of DGI has it built in.

Do you have a link, by chance, for which I can download an older package with dgparse.exe??

And yes, the primary need is field order (to properly assign TDeint filter).

Any thing else I need I can actually get from mediainfo with -F switch.

Thanks again!!
Andrew

Capt.Video
19th April 2006, 02:12
Humm... Ive got DGParse 1.3.0 (from DGI 1.3.0), you think it would work okay with 1.4.7b6??

Ive run it on a few D2Vs (147b6) that I still had the source of, and it appears to function properly, and so far yielded the right field order...

Andrew

Amnon82
19th April 2006, 08:48
Normaly it should work. I'm still going on to do it also with my tools :D

Capt.Video
19th April 2006, 16:43
Ever Forward!