View Full Version : DVD2AVI_Nic 0.2 Alpha
Nic
25th December 2004, 20:50
http://nic.dnsalias.com
I wrote this a long long time ago. Now trying to clean up some of the software I've written. Plus unreleased stuff. I used this alot to make DVD Rips.....
This probably has a lot of bugs in it, and will probably be unuseful to most of you. But I like it :) (It needs updating).
But it may be useful in the coding sense...As D2V Creation code is all in there, basic demuxing/decoding of video streams using libmpeg2, etc
It does work in general though (for me at least)...If there's any interest i'll update it and write a quick guide for doing a DVD Rip with it :)
Anyway, a mini xmas present for those that followed it's development all those moons ago :)
Cheers + Happy Christmas,
-Nic
d'Oursse
25th December 2004, 22:13
i must be blind, because i don't see the link in your site (espacially in the dvd2avi section) :confused:
Nic
25th December 2004, 22:51
Must be a cacheing thing...it's definitely up:
direct link: http://nic.dnsalias.com/DVD2AVI_NIC.exe
-Nic
d'Oursse
25th December 2004, 23:37
thanks ;) no source code available ?
Nic
25th December 2004, 23:53
Yup, of course. Try getting it through a proxy and you'll see the actual site...The source is at:
http://nic.dnsalias.com/DVD2AVI_NIC_src.zip
(it's horrifically messy, because of the number of times i've rewritten bits in a hurry...sorry :D )
-Nic
zeus163
26th December 2004, 02:37
Sweet! I tried this out on a short *.ts file I just made and it opens it right up! I love that. Before I either had to demux the .ts file in ProjectX (demux) or HDTVtoMPEG2 (create another ts stream). Then I could open up the demuxed file or new .ts file in DGDecode. I have a Motorolla DVR from Comcast and I use the firewire to record to my laptop. Some of the channels I capture Project X does not like, then I move over to HDTVtoMPEG2. Hopefully, with your new DVD2AVI I can now save myself a step for d2v creation and audio demuxing.
I'm not super savvy at this, so I'm still playing around with scripts to convert to HD (I use one that I saw Scharfi's_Brain mention), but would you use the DGDecode.dll with the d2v files in avisynth or your mpeg2dec3.dll in the script?
Probably a really bad question, but just curious.
Edit--I just answered my own question. The avs file that your DVD2AVI created used the dgdecode.dll. I'll use that one. My caps from Discovery HD open up fine in VDUBMod with the avs file, but the ESPN caps I just tried hang the program up as soon as I try to open them up. DVD2AVI has no problem with them, but the created .d2v file or .avs file seem to hang up. Not sure why. More playing around.
I just did a small 1 minute cap off of one of the indemand HD stations. The file is correctly recognized by DVD2AVI with a framerate of 29.970. I add the d2v file to my script and it seems to work, but then CCE is complaining that the framerate is wrong. I'm sitting there thinking what is wrong, so I pull the file back into vdubmod. It tells me that the framerate is now 29.900. I then opened the file up in hdtvtompeg2 and created a new .ts file. Then pulled that into dgdecode, created the d2v, and added that to the script. That script is recognized with the right framerate.
I'd love to be able to use this version as it saves me the step of having to run the file through hdtvtompeg2 as it opens up the files without any problems.
Thanks for the program. I think if I can get these problems ironed out (or it's me the user--completely possible) then this will be great.
Josip Tosic
26th December 2004, 11:09
Woohoo!
:thanks:
Nic
26th December 2004, 12:25
@zeus163: Could you send me one of the D2V Files that comes out at 29.900 that dvd2avi_nic creates...
-Nic
Josip Tosic
26th December 2004, 14:00
AR error calculation: While left mouse button is down (dragging one of the "width" sliders) one error percentage is displayed and when I release the button another percentage is displayed. Don't think this was the case with the old alpha version.
"Estimated Video Length" in File/File Properties... doesn't really work and it's kind of hard to encode a movie if you don't know how long it is. :)
Implement a priority setting so DVD2AVI_Nic wouldn't hog all the CPU. I have to use Task Manager to lower the priority for the process.
Hangs when I try to go past the end of the video with "playback" controls, encode a two-pass AVI, save a D2V file... In fact, when I add two M2V files, the first one will cause the crash when I try to go past it's end and to the other file beginning. I'm guessing something wrong with DGDecode implementation.
Shortcuts for frequently used menu items (DVD rip, BeSweet settings...).
Save settings for muxing, BeSweet settings...
FPS detection; two trailers for "The Fellowship of the Ring" (only video stream, no audio) are 29,97 FPS but D2V file says "29000" - DGDecode detects the correct frame rate. I've attached two D2Vs; they'll need to be cleared by the staff first.
Nic
26th December 2004, 14:55
AR error calculation: While left mouse button is down (dragging one of the "width" sliders) one error percentage is displayed and when I release the button another percentage is displayed. Don't think this was the case with the old alpha version.
I'll look into that...
"Estimated Video Length" in File/File Properties... doesn't really work and it's kind of hard to encode a movie if you don't know how long it is.
Well, it's impossible to know in most cases. Without scanning the whole file. So i'm not sure what the solution is to that, without creating the D2V file first. I'll think about it, but any suggesions I'll take on board.
Hangs when I try to go past the end of the video with "playback" controls, encode a two-pass AVI, save a D2V file... In fact, when I add two M2V files, the first one will cause the crash when I try to go past it's end and to the other file beginning. I'm guessing something wrong with DGDecode implementation.
Don't get exactly what you mean by this. Playback controls? You mean inside DVD2AVI_Nic? Or is this when you are actually encoding or viewing the AVS/D2V in something like VirtualDubMod. I'll try to look into it.
Shortcuts for frequently used menu items (DVD rip, BeSweet settings...).
I'll add some, easy to do.
Save settings for muxing, BeSweet settings...
Something I've been meaning to do for a while (easy, but boring ;) )
FPS detection; two trailers for "The Fellowship of the Ring" (only video stream, no audio) are 29,97 FPS but D2V file says "29000" - DGDecode detects the correct frame rate. I've attached two D2Vs; they'll need to be cleared by the staff first.
Because I don't mod this forum I can't validate them...if you can send them to nic@nic.dnsalias.com that would be great :)
Cheers,
-Nic
Josip Tosic
26th December 2004, 16:08
Originally posted by Nic
Well, it's impossible to know in most cases. Without scanning the whole file. So i'm not sure what the solution is to that, without creating the D2V file first. I'll think about it, but any suggesions I'll take on board.
D2Vs needs to be created anyway; I wouldn't mind it if you scanned the added files immediately.
Don't get exactly what you mean by this. Playback controls? You mean inside DVD2AVI_Nic? Or is this when you are actually encoding or viewing the AVS/D2V in something like VirtualDubMod. I'll try to look into it.
Controls inside DVD2AVi_Nic; four buttons in the lower-right corner ("[ < > ]").
I can use the slider to go near the very end of the file, then if I click the ">" button to go to the very end DVD2AVI_Nic crashes. Tried this with two NTSC M2V files, one NTSC VOB file, and one PAL M2V file ("The Fellowship of the Rings" trailers and "The Two Towers" trailer and the Extended Edition DVD).
The same thing happens when I add two trailers to the project and jump to the time where the first trailer ends and the second starts; when I step forward/backward over the "joint" DVD2AVI_Nic crashes.
xixi2000
26th December 2004, 16:18
support 1280¡Á720 wmv?
zeus163
26th December 2004, 17:30
@Nic--Mail sent to you. This is the D2V that was created from last night's cap.
Thanks.
opsis81
27th December 2004, 04:25
Well done Nic for this release!
I have found a version of your DVD2AVI a year ago (I don't remember from where) and I've used it some times.I really liked it but it supported only avisynth 2.0 and YUY2.
Why you keep having mp2 audio encoding support?I don't think anybody would encode xvid with mp2 audio for example.It would be great if you could replace it with AAC encoding.
Since your DVD2AVI is created for DVD rips it would great if you could add credit support.Some people don't use XviD and can't use XviD zones.
It also would be great if you could mp4 muxing with mp4box.I don't think it would be very difficult because it's a commandline tool and you already have support for OGMuxer and mkvmerge.
I wouldn't even dare to suggest batch encoding!:)
Cyberia
27th December 2004, 18:06
@Nic - Nice job! Is it your intention that this project be canabalized and incorporated into other projects (DGMPGDec) rather than become a fork in the tree? Thats how I read your original post. If so, doubly thanks!
Nic
27th December 2004, 22:38
@Cyberia: People can do what they want with the code, if they find parts of it useable....It's a thing in it's own right. :)
@opsis81: Excellent suggestions. I may leave MP2 in (people could use DVD2AVI_Nic for easy VOB->MP2 output (without doing any video). But I'll definitely try and add AAC & MP4 support soon.
@Zeus: Thanks :)
I think I've fixed the crash at end of file bug and the 29.000fps bug. Find the latest version at:
http://nic.dnsalias.com
Cheers,
-Nic
ps
For the confident that don't want to download a full version to update everything. The latest Executable can be found at http://nic.dnsalias.com/DVD2AVI.zip (just overwrite the old executable)
Wilbert
27th December 2004, 23:22
@Nic,
Could you add 4:2:2 support to your dvd2avi version?
Sample can be found here:
http://forum.doom9.org/showthread.php?s=&threadid=85251&highlight=422
http://perso.wanadoo.fr/maewanto/Rambo_PAL_0720x0608.mpg
(MPEG-2 4:2:2P@ML file at 18 Mbps / encoded with a Vela board from a Digital Betacam PAL Tape)
I guess you can also make those streams with CCE ...
Nic
28th December 2004, 13:33
@wilbert:
4:2:2 Is very much on my to-do list. (it's an easy fix, when I wrote this code libmpeg2 didn't support 4:2:2, it does now though, so just need to upgrade)
-Nic
bond
30th December 2004, 22:44
nic, if you are interested you also might want to look at adding support for avc-in-mpg to your tool (this has been standardised by mpeg and is already used by moonlight and mainconcepts avc implementations)
you can find a final draft for the specs here (http://www.itscj.ipsj.or.jp/sc29/open/29view/29n5232t.doc)
Nic
4th January 2005, 17:49
@wilbert:
Hi, I just added code to display correctly 4:2:2 in DVD2AVI_Nic. But now after testing DGDecode doesn't appear to support 4:2:2 ?! Is that the case? DGIndex displays the 4:2:2 file correctly, but when playing with DGDecode it displays wrong...
Anyone else found this?
-Nic
Wilbert
4th January 2005, 21:12
But now after testing DGDecode doesn't appear to support 4:2:2 ?! Is that the case?
I'm so sorry for not mentioning that. Yes, apperently. I don't have the source nor can I find it to check (and Neuron's homepage is not accessible ...).
Nic
4th January 2005, 21:35
DGDecode is only failing to do the colorspace conversion though. It's decoding correctly, so it should be a pretty simple fix to make DGDecode output YUY2 from 4:2:2
-Nic
Wilbert
4th January 2005, 23:22
Do you have the source of DGDecode?
Nic
5th January 2005, 00:00
Mirror mirror on the wall:
http://nic.dnsalias.com/dgmpgdec1012.zip
http://nic.dnsalias.com/dgmpgdec1012src.zip
:)
-Nic
Cyberia
5th January 2005, 00:03
I don't have the source either (though I feel I should)
I am looking for it, let me know if someone finds it first. I will post it if I find it.
Not to be nitpicky, but shouldn't the GK people be distributing the DGIndex source, since they are distributing the DGIndex binaries?
Nic
5th January 2005, 00:07
@Cyberia: Not really as long as they can provide the source on demand I think....And I'm sure len0x has copies lying around (like we all probably do somewhere) But lets not get into a GPL debate :)
Leak
5th January 2005, 09:05
Originally posted by Cyberia
Not to be nitpicky, but shouldn't the GK people be distributing the DGIndex source, since they are distributing the DGIndex binaries?
Well, the GPL says you must make the sources available on request. That most people just put them up on the server right next to the binaries is probably because they don't want to handle each request on it's own... :D
len0x
5th January 2005, 12:19
GK installer doesn't even have its own sources :) Its just the size is really an issue (I don't want to double it just to include sources of all programs its using).
Wilbert
5th January 2005, 22:55
DGDecode is only failing to do the colorspace conversion though. It's decoding correctly, so it should be a pretty simple fix to make DGDecode output YUY2 from 4:2:2
The mod by Tritical works fine. Great work!
dragongodz
6th January 2005, 00:42
Not really as long as they can provide the source on demand I think
theres actually more to it than that, Doom9 and i had a big discussion about this a looooong time ago. :)
Its just the size is really an issue (I don't want to double it just to include sources of all programs its using).
sorry but size is not the issue, following the GPL is. the source code does not need to be included with the binaries but need to be able to be downloaded aswell(such as in a seperate archive). you could however provide links on your webpage and in a text file with the binary to the websites that do have the source code(such as the programs original website). i dont think most people would complain about that.
Nic
6th January 2005, 10:27
I hate to quote myself but:
But lets not get into a GPL debate
Can we stick to that please, go find another thread to talk about it if you wish...but lets keep this about DVD2AVI_Nic and related issues. Thanks :)
dragongodz
6th January 2005, 12:10
gee Nic sorry to derail this thread.
go find another thread to talk about it if you wish
the perfect place for anyone wanting to discuss GPL further
http://forum.doom9.org/showthread.php?s=&threadid=85156
hopefully that should end anymore GPL debate here.
Guest
8th January 2005, 01:19
Can someone explain in simple language what the 4:2:2 issue is and how to duplicate it?
What is the "mod by Tritical" that works fine?
Thank you.
Cyberia
8th January 2005, 01:33
Here (http://forum.doom9.org/showthread.php?s=&threadid=80061) is the thread about Tritical's recent contribution to DGDecode.
Also, Nic made a transport stream related fix for DGIndex here (http://forum.doom9.org/showthread.php?s=&threadid=85209).
Both have said they are willing to add these to the main DGMPGDec (if you are)
Guest
8th January 2005, 01:46
There's a reference to a "4:2:2 input problem". Is this just the issue about upsampling based on the progressive flag, or something else.
I warn you guys there are some nonobvious issues with doing the progressive/interlaced upsampling thing. It has to be done right.
Cyberia
8th January 2005, 05:20
@neuron2 - on the previous page of this thread, Wilbert provided a test mpg file in 4:2:2 and apparently DGMPGDec could not process this file.
That's the "4:2:2 input problem"
Tritical added 4:2:2 input support, and postprocessing. Additionally, he added:from Tritcals changelog
4.) Upsampling to 4:2:2 from 4:2:0 based on progressive_frame flag. Uses new
upConv parameter of mpeg2source().
- example mpeg2source(upConv=true)
*NOTES: it will only work if input is 4:2:0, if input is anything else
then the upConv parameter is ignored
also, he added a method to set the iPP flag based on the progressive_frame flag.
Davidf57
27th March 2005, 16:26
Nic, I really like this program, great for 2 pass with xvid, one minor issue thou :( , I can't work out what parameters are needed in the audio conversion dialog for besweet ac3 to ac3. I have tried all sorts of combinations to no avail... any help would be great
this is the sort of thing I am trying to do--
-core( -input "original.ac3" -output "new.ac3" ) -azid( -g 5db ) -ac3enc( -b 224)
this is how it looks in a delphi gui for ac3 conversion
argv: Array [1..argc] of String = ('AC3448_224','-core(','- input','ac3input', 'output' , 'new.ac3', 'logfile','besweet.txt',')','-azid(','-g','5db',')' , '-ac3enc(','-b','224','-6ch',')');
Nic
27th March 2005, 18:35
@David: Glad someone is using it. Should have finished it, never had time. The BeSweet version used may be quite old. May not have supported AC3 back then. By all means try and update the BeSweet.dll and ac3 dll and see if it works. But I doubt it.
-Nic
guada 2
27th March 2005, 23:08
Hello, Nic :)
The man constructs itself with the fruit of the mind.
It is important to progress as Neuron2 says it.
I haven't try your utilitarian but, I wish you good luck for the continuation.
To soon
Note: sorry for my english
Davidf57
28th March 2005, 00:34
Originally posted by Nic
By all means try and update the BeSweet.dll and ac3 dll and see if it works. But I doubt it.
-Nic
Did that and you are right, didn't work :)
Its at times like these I wish I had put a little effort into C++ programming. Considering how well the program works I'm surprised its not used by a lot of people.
guada 2
28th March 2005, 01:10
Nic I made a small test with your utilitarian:
- a D2v project + avs (RAS),
- similar with Dgindex bêta 5.
GK accepts the D2v of Dgindex but not yours. Why, whereas Dgindex bêta 5 recognize it in "Load Project"?
It is necessary to make any manipulation so that your file is accepted, or that your D2v file is not supported by GK.
Nevertheless your AVS file passes without problem.
Thank you
Note: sorry for my english
Davidf57
28th March 2005, 03:10
Nic,
After playing around a bit I realised that the program was actually converting AC3 to AC3 with the following parameters
-core( -input ac3input -output g:\video\test.ac3 ) -azid( -g 6db ) -ac3enc( -b 224)
What happens is that auto muxing doesn't work as the file name isn't recognised( an empty file is created with a .z extension if I don't use -output in the besweet command line).
Would it be possible in the audiocontrol code to look at the command line and if -output parameter is present put the file name into the nandub batch file (mux.jobs). If I had a clue about C++ i would attempt it myself but such is life :).
Anyway at the moment I'm just rerunning nandub manually after editing the batch file and it works fine. If someone could do the mod it would be great, either way i'm happy so thanks for a great little utility.
guada 2
28th March 2005, 15:23
Hello Nic,
I think that you have the intention to integrate other types of files in your utilitarian.
Is it in the extension of LOLI.J
guada 2
31st March 2005, 20:56
Hello Nic,
I know that you work very hard on the project of quenc.
The least of the things would be to assure one "SERVICE MINIMUN".
Whatever, but just a Discreet Look, for it is not asked too much.
I wish you good luck.
Nic
31st March 2005, 23:21
@David: Thanks for the info, maybe i'll get chance to do a quick update :)
@guada: I'm sorry I really can't understand what you're trying to say. So i'm not really sure what to reply :(
-Nic
ps
If french is your first language as I guess it is (if it's the Lyon in France ;) ), feel free to post in both english and french (the post always needs to be in english to adhere to board rules, but you can post the same thing in your native language as well)
guada 2
1st April 2005, 12:33
Hello Nic :) :)
2 traductions français / anglais
2 translations French / English
French
Je te remercie Nic, c'est une bonne nouvelle pour moi et pour les "autres". Je crois que j'ai de la chance.
Merci et à bientôt. ;)
English
Thank you Nic, it is a good news for me and for the "others". I believe that I have luck.
Thank you and see you later. ;)
Davidf57
4th May 2005, 08:33
I finally decided to attempt a mod to your dvd2avi program and was going ok until this-
Linking...
LINK : fatal error LNK1104: cannot open file "libguide.lib"
Error executing link.exe.
Creating browse info file...
Not having a clue about c++ I thought I had done well getting nasm to work :) then the error above had me totally lost as I can't find the libguide.lib file anywhere on my system am I missing something ?
what I tried to do was change this one line in DVD2AVIDlg.cpp from
fprintf(jobfile, "VirtualDub.audio.SetSource(\"%s\");\n", zVDubTemp);
to
fprintf(jobfile, "VirtualDub.audio.SetSource(\"%s\");\n", "tmp.ac3");
am I just dumb or did I almost get there ????
Hmmm, that might be a Intel Compiler error. You can try ignoring the lib(s) (Project->Settings->Link Category:Input then add it to the ignore list). Or try downloading the Intel Compiler (it has a free 30 day trial).
There is no need to use the Intel Compiler so I'm not sure entirely why that is popping up.
Cheers,
-Nic
I just used your DVD2AVI on a vob set that DGindex was choking on, to creat a d2v. Thank you very much, because it worked perfectly :). It will save me hard work for this movie, no doubt :)
Can you please make a bug report for the VOB that DGIndex is "choking" on? Thank you.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.