PDA

View Full Version : CLI support for Donald Graft's DGPulldown.


Prodater64
4th August 2005, 01:03
DGPD 1.2 by Prodater64

Donald Graft has not yet provided CLI support for DGPulldown and as 25 to 29.97 pulldown is very interesting and it would solve many problems with sync issues, I wrote a little app that gives CLI (or parsing parameter) support to DGPulldown. It means if you parse 25fps video stream name as parameter, DGPulldown will do its job and you will obtain a 29.97 flagged video stream. You can use it with original audio without change it.
You need DGPulldown.exe and DGPD.exe the litte app I wrote. A DGPD.bat file included is only an example of how to call DGPD.exe.
All files should be in same folder.

Parameters are, first, path to m2v or mpv file (I think DGPulldown also support programs streams, but not sure), second source and target fps as 23.976/29.97, 24|29.97 and 25:29.970. 23.976/29.97 performs usual pulldown, so you can replace usual pulldown.exe for DGPulldown. 25/29.97 performs new way to do pal to ntsc convertion without any async issue.

You can use custom values, but in should be allowed values. Program don't take care of this, so be carefull.
You can use any of "/", "|", "-" or ":" separators.

Examples: Call it from a batch file

start "DGPulldown CLI by Prodater64" /wait DGPD.exe "path_to_\film.m2v" "25/29.97"
start "DGPulldown CLI by Prodater64" /wait DGPD.exe "path_to_\film.m2v" "25|29.97"
start "DGPulldown CLI by Prodater64" /wait DGPD.exe "path_to_\film.m2v" "25:29.97"
start "DGPulldown CLI by Prodater64" /wait DGPD.exe "path_to_\film.m2v" "25-29.97"

start "DGPulldown CLI by Prodater64" /wait DGPD.exe "path_to_\film.m2v" "23.976/29.97"
start "DGPulldown CLI by Prodater64" /wait DGPD.exe "path_to_\film.m2v" "23.976|29.97"
start "DGPulldown CLI by Prodater64" /wait DGPD.exe "path_to_\film.m2v" "23.976:29.97"
start "DGPulldown CLI by Prodater64" /wait DGPD.exe "path_to_\film.m2v" "23.976-29.97"

I think you can call it from any script or programing language that can send parameters to the exe file.

Tested in Windows XP. (it would work in any w32 system).

DGPD (http://rapidshare.de/files/3757808/DGPD.zip.html)

Matthew
7th August 2005, 05:46
Thanks for this, I will likely use it :)

Would it be hard to support custom rates? I would think making -all- operations custom would be the way to go, if possible.

e.g. DGPD_PAL2NTSC.exe "path_to_film\m2v" "25|29.97" would check "custom" and fill in the 2 boxes with those 2 values.

neuron2
7th August 2005, 06:33
Donald Graft won't give CLI support to DGPulldown. Maybe your native language is not English, but won't is a bit strong. It implies that my position is that I'll never do it. The proper statement would be "Donald Graft has not yet provided CLI support for DGPulldown."

Prodater64
7th August 2005, 12:54
Maybe your native language is not English, but won't is a bit strong. It implies that my position is that I'll never do it. The proper statement would be "Donald Graft has not yet provided CLI support for DGPulldown."

You are right, english is not my native language, Im sorrry so much, Im beg your pardon.

Edited: I thought that "At the moment, and don't know for how many time, ..." was enough to point that you in a future (a rainy day :D ) will code that support.

Prodater64
7th August 2005, 13:03
Thanks for this, I will likely use it :)

Would it be hard to support custom rates? I would think making -all- operations custom would be the way to go, if possible.

e.g. DGPD_PAL2NTSC.exe "path_to_film\m2v" "25|29.97" would check "custom" and fill in the 2 boxes with those 2 values.

Maybe I dont explain it well.
It only does usual conversions.

2529 means 25|29.97
2329 means 23.976|29.97
24|29 means 24|29.97

Wit this you can do pal to ntsc conversions as discussed in main dgpulldown thread, and usual 23.976 to 29.97 pulldown.
24 is film fps that you can find in some video material and for that I included it.

Maybe I can add custom conversions support.

neuron2
7th August 2005, 15:40
Edited: I thought that "At the moment, and don't know for how many time, ..." was enough to point that you in a future (a rainy day :D ) will code that support. Thank you! Be aware that it rains a lot here. :)

Prodater64
7th August 2005, 21:11
@neuron2: :)

@Matthew: Working as you ask for, but I will upload it later.

Prodater64
8th August 2005, 01:30
Updated v. 1.2
Now supports all legal fps.

Matthew
8th August 2005, 04:15
Thanks for the update Prodater64, it's appreciated :)

Prodater64
8th August 2005, 04:20
Thanks for the update Prodater64, it's appreciated :)
Your welcome.

Zyphon
8th August 2005, 21:04
Great work Luis thanks for the update I great appreciate it also. :D