View Full Version : DGindex suggestion
dimzon
2nd February 2006, 16:44
Dear neuron2. Is it possible to split DGIndex into 2 parts - stream parsing library (dll) and GUI for it (exe)?
In this case software developers can achieve better integration via direct dll invocation instead of running dgindex from CLI.
take look @ this post http://forum.doom9.org/showthread.php?p=779246#post779246 for explanation
Thanx!
Guest
2nd February 2006, 19:46
That would be a major undertaking for which I have neither the time, nor the energy, nor any interest in it.
buzzqw
2nd February 2006, 20:21
and btw i found no problem running the great dgindex with the already excellent command line interface
BHH
Rockas
3rd February 2006, 01:28
and btw i found no problem running the great dgindex with the already excellent command line interface
BHH
You are right... but there great features that can't be accessed from the CLI or if they can... they aren't documented :(
If they become available through cli... it will be so great :)
edit:
@neuron
are you accepting cli addons suggestions?
Guest
3rd February 2006, 06:09
are you accepting cli addons suggestions? Sure.
dimzon
3rd February 2006, 11:05
@Neuron2
Can you at least make DGIndex Out-Of-Process COM Server
Guest
3rd February 2006, 16:48
Can you at least make DGIndex Out-Of-Process COM Server Why would that be a desirable thing?
dimzon
3rd February 2006, 17:07
Why would that be a desirable thing?
I'm working on MeGUI now. And there are a prolem - we doesn't know film duration until DGindex will complete it's job. And we does'nt know demuxed audio file names and file count. It forces us to write ugly code to be executed after DGindex job ended to scan output foder after DGindex complete etc. And this ugly code creates a huge problems in MeGUI architecture. If you will provide us interface wich allows DGindex<->MeGUI communication it will help us to simplify and stabilize our code a lot! Using such integration we will be able to connect to DGIndex, force him to load VOB-files, obtain information about audio/video (duration, streams, streams propertires, delays, etc), override output file names for demuxed audio streams and create all requed encoding jobs at once and place them to jobList.
I hope you understand me (my english is poor)
stax76
3rd February 2006, 17:31
I've little need for automation (IDispatch) regarding StaxRip. You probably want precise duration values and I don't think you can get this withouit indexing! Furthermore I don't think code that picks up files and stuff from filenames is ugly because you need that code anyway, don't you?
dimzon
3rd February 2006, 17:58
You probably want precise duration values and I don't think you can get this withouit indexing!
Values shown via preview is enought.
Furthermore I don't think code that picks up files and stuff from filenames is ugly because you need that code anyway, don't you?
Really no:
(not actual code, just idea)
int delay1 = objDGIndex.GetAudioStreamDelay(1);
int delay2 = objDGIndex.GetAudioStreamDelay(2);
int duration = objDGIndex.GetDuration();
int audioBitrate = ...
int videoBitrate = ...
jobList.AddJob(new DGIndexJob("xxx.vob", "xxx.d2v", "stream1.ac3", "stream2.ac3"))
jobList.AddJob(new AudioJob("stream1.ac3", "stream1.aac", delay1, audioBitrate ))
jobList.AddJob(new AudioJob("stream2.ac3", "stream2.aac", delay2, audioBitrate))
jobList.AddJob(new VideoJob("xxx.d2v", "video.h264", videoBitrate ))
jobList.AddJob(new MuxJob("video.h264", "stream1.aac" , "stream2.aac", "film.mp4"))
in DGIndex job execution i will write something like this
objDGIndex.DisableAllAudioStreamsDemuxing()
objDGIndex.EnableAudioStreamDemux(1,true);
objDGIndex.EnableAudioStreamDemux(2,true);
objDGIndex.SetAudioStreamFileName(1,"stream1.ac3");
objDGIndex.SetAudioStreamFileName(2,"stream1.ac3");
objDGIndex.OnProgress += new ProgressHandler(...)
objDGIndex.SaveProject("xxx.d2v")
stax76
3rd February 2006, 18:06
Often people want to open some files, regardless of what application created that files and if those applications are integrated into MeGUI or not so you really need a routine that picks up files from a directory and delay from a filename.
Of course automation would be great but I think I know neuron2 good enough that I don't see this happening and I fully understand and respect his decision.
dimzon
3rd February 2006, 18:10
Often people want to open some files, regardless of what application created that files and if those applications are integrated into MeGUI or not so you really need a routine that picks up files from a directory and delay from a filename.
No. If you alredy create D2V project yourself you can add audio/video jobs separately (and initially proposed delay is getting from filename automatically in this case). But you does not need scan folder in this case etc
I'm speaking about "OneClick" mode. In this mode you choose IFO file , choose target file size, choose audio/video encoding option and press GO.
foxyshadis
3rd February 2006, 21:18
All of the automation suggestions save progressbar could be carried out as command line arguments. It's not like you have a constant back and forth going on, let alone object passing. The initial info request could return information via stdout or a file. (Although it's possible you might run out of command line space with all the demuxing, dunno.)
Rockas
3rd February 2006, 22:45
@neuron
the suggestions I had in mind for the cli are about the same posted by dimzon
obtain information about audio/video (duration, streams, streams propertires, delays, etc)
I think it would be very usefull to get that kind of data from the cli... after all we can demux the streams using it... why not have the info before that? :)
Another suggestion would be the Start/End point for cutting (by time... frames... you choose - even if it is just on the GOP level)... if the GUI does it why not the CLI? :)
I know I'm forgeting something... maybe I'll remember later :D
Rockas
3rd February 2006, 23:01
Yes... I know I was missing something.... The Average Bitrate :).
stax76
4th February 2006, 12:10
The initial info request could return information via stdout or a file.
Automation appear to be a better appoach.
I think it would be very usefull to get that kind of data from the cli... after all we can demux the streams using it... why not have the info before that?
Again, automation appear to be a better appoach. Regarding getting info, do you know MediaInfo.exe?
iNFO-DVD
4th February 2006, 13:03
I don't trust MediaInfo. I have had it give incorrect information on many videos that I have tried whereas DGIndex has always been spot on.
I'd love an option in DGIndex CLI where it would give me the video/audio info without indexing the whole thing. I could just run it as normal then kill the process after a second or two but I don't want to go down that route, not pretty.
I could then get all the required info for avi.NET if people didn't want the preview and just add jobs to the queue.
Rockas
4th February 2006, 14:21
Yes I know MediaInfo... blieve me... for now... you don't want to use it with VOB files :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.