PDA

View Full Version : Dvd2xcd


Emp3r0r
1st October 2002, 06:22
http://jvance.com/albums.aspx?pic=dvd2xcdoct.png (http://jvance.com/hitme.aspx?url=http://jvance.com/albums.aspx?pic=dvd2xcdoct.png)

Well, I've made some progress with dvd2xcd but I could use some help. Anyone interested (C# knowledge a plus although C++ is good too)?

BTW: the program creates AVS files so far ;)

Latexxx
1st October 2002, 16:09
Always interested, but I don't know how I could help you (I don't have vc.net)

Emp3r0r
1st October 2002, 22:10
Well, your right that I'm using VS.NET but what I'm not sure you know is that a program called sharpdevelop exists as opensource @ sf.net which means developing in C# is 100% free.

http://www.icsharpcode.net/OpenSource/SD/default.asp

stax76
1st October 2002, 22:27
sharpdevelop looks promising, I did't know there is a form designer, the latest version I have is 0.88. I have only VB .NET Standard so I'm happy sharpdevelop is becoming better very fast. I think I will get me the latest version and a C# tutorial

Emp3r0r
2nd October 2002, 01:28
soon as I get a chance to clean and comment the code I'll see if I can't make a #develop project available for everyone.

Latexxx
2nd October 2002, 10:34
Looks great and it isn't too big for my 56k modem. Unfortunately the powersupply of my computer is currently broken and I can't test it right away.

If I'm not wrong this thing needs also a compiler from mono ( http://www.go-mono.com/c-sharp.html ) or from microsoft (.net framework sdk).

Emp3r0r
7th October 2002, 02:17
Think of it as a very premature technology preview just to give yall something to play with and report to me how slow C# code runs :p

DVD2XCD currently can:
- open d2v files
- play d2v files
- smart crop
- resize
- title frame
- choose credits for xvid
- save as AVISynth Script
- create AVI's (OGM's soon!)

DVD2XCD will eventually:
- have a different name (soon)
- support all YV12 AVISynth filters
- open vob's (nic's mpegdecoder)
- create XCD's (mode2cdmaker)
- create OGM's (ogmuxer)
- encode (VFW?)
- process credits
- do a compressibility test
- create audio (BeSweet) (already got code for this)
- download chapter data
- add subtitles support
- handle plugins

*you must have XP SP1 or NET Framework (http://download.microsoft.com/download/.netframesdk/Redist/1.0/W98NT42KMeXP/EN-US/dotnetredist.exe)
*you must have DirectX 8.1 or better.
*you must have AVISynth 2.5 alpha (http://avisynth2.sf.net) installed with a plugin (in plugin dir) that supports "mpeg2source" command

Download DVD2XCD 1.0.1066.38957 (http://jvance.com/hitme.aspx?url=http://jvance.com/files/DVD2XCD (1.0.1066.38957).zip) (129 KB)

Use this thread to discuss, thanks.

Emp3r0r
7th October 2002, 02:21
Oh yea, sources still need some cleaning and commenting.

cjv
7th October 2002, 09:20
Looks very, very cool..great work!! And the speed is more than acceptable on my P4 1.4. I've been meaning to hack together some utils in C# just for fun, but I've just been too busy..I'd love to check out the source, though. (VC.NET)

Opened up a d2v file no problem, preview works great, avs generator all works great. I couldn't manage to get a 640x272 resolution, (kept wanting to give me 640x288) but I admit I didn't give it a fair shot.

Anyways, its really late, I'll definately play around with it more tomorrow.

cjv

Emp3r0r
7th October 2002, 17:28
Opened up a d2v file no problem, preview works great, avs generator all works great. I couldn't manage to get a 640x272 resolution, (kept wanting to give me 640x288) but I admit I didn't give it a fair shot.

Ya, this is known issue and what fixes that is called "Smart Crop All" which I will add very soon. You can simulate "Smart Crop All" by adding crop to the top and bottom until it goes from 288 height to 272 height. Thanks for testing.

PS: credits code is currently disabled.

cjv
7th October 2002, 22:32
Got the 640x272 working now. You mention comp. tests..do you plan to have a built-in comp. test for XviD? I know its not hard to do manually, but it would be a useful time saver. That, combined with a built in ogg muxing, chaptering, and XCD will make this a really modern tool.

One suggestion, don't know if you plan it, but I always find that listing most recently opened files in the File menu saves time when conducting many tests...and also remembering last dir visited when you go to File->Open.
Ha, don't mind me..I think this tool has great potential!

cjv

Emp3r0r
7th October 2002, 22:54
In response to cjv
I hope to add all the things you speak of. Recently I've been using the DVD2XCD in conjuction with dvd2avi and virtualdub to do Xvid encodings. The things I want to focus on adding next are possibly changing the registry settings in Xvid control panel to save myself time from copy and pasting the credits and size value in. I'd also like to update the calculator's combo boxes and enable the button that will import audio file(s) size. Those things, plus SmartCropAll will actually make the tool useful (for me anyway). Thanks again for testing.

Emp3r0r
9th October 2002, 21:50
I uploaded a new test version:Download DVD2XCD (http://forum.doom9.org/showthread.php?postid=190915#post190915)
This version has an updated calculator with working combo boxes and ability to select mulitple audio files to calculate total audio size. It also remembers the last four files opened and the last directory opened. The AVISynth script has been updated to append file size and credits information for use with VirtualDub and XviD.#sample script generated by DVD2XCD
source=mpeg2source("C:\poa.d2v").crop(2,60,-3,-60)
source=source.BicubicResize(640,272,0,0.5)
return source.freezeframe(0,0,1498)

# video size: 744 MB, 761423 KB, 922 kbps
# creditsA: start=0 end=0
# creditsB: start=153436 end=162117

UPDATE: fixed resizing method, binary updated

Emp3r0r
10th October 2002, 00:49
Download DVD2XCD (http://forum.doom9.org/showthread.php?postid=190915#post190915)
I finally enabled Smart Crop All, although it is a bit stupid :rolleyes: because sometimes it doesn't fix AR Error as expected. I plan on cleaning the code in the crop object and hopefully it'll be 'dumb' free :D

Nic
11th October 2002, 10:11
Hi Emp3r0r,

The new version of MPEGDecoder.dll (which should be released over the weekend), can be used as an external DLL to get YUY2 MPEG frames too without AviSynth. I hope this will be of some use to you :)
(it also returns info like resolution, number of frames, fps, etc)

Sorry for not getting back to you sooner,

-Nic

Koepi
11th October 2002, 10:21
@Nic,

hey, that sounds great! This way mpeg2enc can be made a mighty app without avisynth - just take the resize algorithms from it, maybe 2 smoothers, a crop.... and there we have a real mighty encoder ;)

Well, I think feeding AVS is still more flexible ;) But the idea is somewhat tempting...

Best regards,
Koepi

P.S.: I sent you the new standalone decoder installer to your everw...-address! :)

Emp3r0r
11th October 2002, 19:16
The new version of MPEGDecoder.dll (which should be released over the weekend), can be used as an external DLL
@Nic: Great, I'll take a look at it ASAP. Unfortunatly I'll be heading home to see my parents this weekend and will miss going to the football game here in Auburn. (Big game vs. Arkansas) So I probably won't have a chance (access to my rigs) to take a look until Monday.

@Koepi: Never used mpeg2enc, I'll go take a look.

Actually, I'd love to just make DVD2XCD a frontend for other's great work (ie: avisynth, besweet, ogmuxer, mode2cdmaker, etc..), so what I'd really like to see is a way to encode to xvid via command line.
simple example:
avi2xvid -firstpass -search 6 -quant h263 -log out.stats -input in.avs -output out.avi

is this possible?

PS: also it would be convienient for posting the xvid settings(commandline) used for testing.

raistlin2k
21st October 2002, 22:22
Hi Emp3r0r!

Just want to tell you that you should add following point to the list of items your tool will eventually do:
-transform DVD-menu to XCD-menu (aka CLX-M)

[Toff] already started work on a tool for that job some time ago (first version I got on 8th of september), perhaps we can merge it into yours later on?!?
BTW, [Toff] called his tool also DVD2XCD, so I think i would be good to find a new name for your tool to avoid chaos.;)

I want to apologize that I didn't finish the specs as I wrote here (http://forum.doom9.org/showthread.php?s=&threadid=31282&perpage=20&highlight=xcd&pagenumber=4) on 3rd of October, unfortunately, the new year of study seems harder than I thought, but I will work hard to finish specs ASAP.

See ya
Raist

Emp3r0r
22nd October 2002, 01:51
great, name change won't be a problem, now finish those specs :D

raistlin2k
24th October 2002, 09:28
It's done, specs are finished, download them in the thread I posted above.

Raist

BTW, I start to learn working with VS.net now, so I hope I can help soon.

Emp3r0r
3rd December 2002, 02:53
Ok, I'm sorry I never released the source before but now that there is interest in .NET code I hope we .NET developers can get together and replace outdated gknot. DVD2XCD already replaces it for me, but that is only because it can make avi's from an avs script with options that I use. I hope everyone can either request features, add features, or take what they need from the program as long as they follow the terms of the GNU. Enjoy

Sources (http://jvance.com/hitme.aspx?url=http://jvance.com/files/DVD2XCD sources.zip)
Binary (http://jvance.com/hitme.aspx?url=http://jvance.com/files/DVD2XCD (1.0.1066.38957).zip)

shahmat
8th December 2002, 20:58
While checking out the source and figuring out how you work the cropping code (good work on that, BTW), I found a little problem with your project code. Specifically, when opening a video file, you give the option to open a d2v, vob, or avi file. However, D2X opens everything through MPEG2Source, so you get a script error if you try to open a straight AVI file. I would have fixed it for you and posted a patch here but my head is still spinning after looking through all your code. (Whatever possessed you to create toolbox forms PROGRAMMATICALLY?!?! :eek: )

I wish I could find a decent book on C#...

Nic
9th December 2002, 11:56
replace outdated gknot.

Strong words ;) & dont worry theWEF is already well into doing that himself ;)

-Nic

Emp3r0r
9th December 2002, 23:24
@shahmat: yea, your right. It is soo sloppy I kind of regret releasing the code but I did it in hopes of someone like you possibly helping me do things better. In fact, I want to start over from scratch now that I have a better idea of what is going on but I don't have the time (Finals). Specifically, I want to figure out a way to support AVISynth filters graphically in an extensible/plugin style. Maybe we could collaborate.

@nic: heh, I know those are strong words, but I only say them because I used to ONLY use gknot for my backup needs... now I don't have to. gknot is a wonderful wonderful program and I wish theWEF as much success on his next project.

@all: I've learned how to create multiple threads for piping output from command line programs so I intend adding avs2avi, ogmuxer, besweet support ASAP. Anyone wanna help?

shahmat
10th December 2002, 00:19
Well, I am working on what amounts to a GUI for Avisynth scripts and I could use some help with the video cropping/resize/preview code... ;)

stax76
10th December 2002, 01:31
would be nice if both of you would be a little more precise about your concepts, there is also another guy, I didn't remember his name, who is working on a GUI for AviSynth. I wonder what would that look like.

Gaia
11th December 2002, 11:38
Nice idea but because it's .NET no thanks. I am not going to ever download NET framework. Main reason why people don't use these new all-in one ripping programs is because they are all developed in .NET. There are so many people who don't have XP and are not going to download that NET framework crap. It's huge file for 56k users and i once tested early version of it and it screwed up my system.

I know C# is lot easier than C++ but this way your software will never be widely used.

I don't mean to bash anyones work but still... No offence to anybody :)

stax76
11th December 2002, 12:47
There are so many people who don't have XP and are not going to download
that NET framework crap. It's huge file for 56k users and i once tested
early version of it and it screwed up my system. I know C# is lot easie
than C++ but this way your software will never be widely used.

it seems you don't no nothing about .NET technologies, .NET strategy,
.NET and Windows future, so why you say crap to something you don't no
nothing about?

Gaia
11th December 2002, 13:45
Believe me, i study last year at the university, i know a lot about .NET and have done some basic programming with it.

I really don't care about Window's future as long as i keep using my old trusty 98se at home .NET is somenthing i could't care a less. If you would take a look at Microsoft's future plans about Windows,.NET and Internet you wouldn't call it a great thing. I just can't believe how someone can think .NET is great. I use windows only for encoding and i have second system with Linux installed. I use it for everything else.

This is not right place to bash anything so i am not going to tell specific reasons why i hate .NET so much. Just don't believe all the hype, .NET itself is not a bad thing but just look at how Microsoft acts.

Anyway no wars, don't get angry. Lot's of prefessional people how works in Information Technology business shares this opinion.

shahmat
11th December 2002, 19:19
You do know about Mono (http://go-mono.com), right? The open-source version of the .NET framework for Linux? The one that should, when finished, run C# apps compiled on Windows machines without alteration? (Sorta like what Java was supposed to do...)



Anyway, just my 2¢. I wish I could work more in C++ but right now I can develop an app, debug it, and release it in much less time in VB. The only reason I use .NET is because if MS goes to .NET in the future, I'll have to learn how to program for the framework or risk not being able to get a decent coding job. That's why I'm coding ASE in .NET, sort of as practice and to learn some of the ways VB have changed since VB6. If I can find some decent literature I'll try learning C# so I can use some of the more advanced stuff in the framework.

Emp3r0r
11th December 2002, 23:19
I've added some shortcut keys to make things go faster. There are some other changes but I can't remember them off the top of my head. I'll be adding better AVS2AVI support next week and follow that up with ogmuxer support. There is still many many things to accomplish so remember it is still alpha software. But here is a guide to get you started in case you want to test or get involved with the development.


DVD to XCD Guide

Step 1: Rip the DVD
Recommended Software : DVD Decrypter (http://www.dvddecrypter.com)

• Blah blah blah
• Bloo Blah blah

Resulting File(s): 1 or many VOB video files, 1 or many AC3 audio files, 1 IFO file

Step 2: Create Frame Serving Project
Recommended Software : DVD2AVI (http://arbor.ee.ntu.edu.tw/~jackei/dvd2avi/DVD2AVI_176+.zip)

• Blah blah blah
• Bloo Blah blah

Resulting File(s): 1 D2V frame serving file

Step 3: Prepare Audio
Recommended Software : Besweet (http://besweet.doom9.net)

For AC3 users:

For Vorbis users:

For MP3 users:

Resulting File(s): 1 or many AC3 audio files or Ogg Vorbis audio files or MP3 audio files

Step 4: Prepare Video
Recommended Software : DVD2XCD (http://jvance.com/projects.aspx?p=DVD2XCD), AVISynth 2.5 (http://test.com), AVS2AVI (http://test.com)

• In DVD2XCD, go File -> Open Video
• Choose your D2V frame serving file created with DVD2AVI
• Find a bright frame in the movie where the black bars are clearly visible
• Crop black bars from Top (‘8’ on Numpad), Bottom (‘2’ on Numpad), Left (‘4’ on Numpad), Right (‘6’ on Numpad)
• Choose “Aspect Ratio” of video
• You may wish to check “Show Resized” for a preview of what the video will look like
• Now you need to find the optimal resolution for the video
o First choose your target size
o Next choose your audio file, go Audio -> Choose File(s)…
o Change the resolution (‘+’ or ‘-’ on Numpad) until quality estimate says, “OK”, “Good” or “Great”
o Choose your resize method (Bilinear is recommended for “OK”, and Lanczos for “Great”
o Fix “Aspect Ratio Error” by changing “Crop Method” to either “Smart All” for “OK” or “Smart Left-Right” for “Great” which sometimes gives you more resolution.
• Next choose a “Title Frame” for your movie by using the slider to find the title frame and then go View -> Title Frame Selector (or press ‘T’)
• Next use the slider to find where the credits begin, go View -> Credits Selector (or press ‘C’)
• Finally, go File -> Save AVI to create the video file

Resulting File(s): 1 AVI file containing MPEG-4 video

Step 5: Mux Audio and Video
Recommended Software : ogmuxer (http://cyrius.bunkus.org/)

• If you want chapters, follow the Chapters Guide
• Blah blah
• Blah blah

Resulting File(s): OGM file

Step 6: Create XCD Image
Recommended Software : mode2cdmaker (http://test.com)

• Blah blah blah
• Bloo Blah blah

Resulting File(s): CUE file, ISO CD image file

<future>Step 2 - 6 will be done within DVD2XCD</future>

Latexxx
13th December 2002, 16:10
Your program currently looks very promising. The only downside is that SharpDevelop doesn't like it's source code.

Emp3r0r
15th December 2002, 01:59
Well, I've been trying to get SharpDevelop to cooperate all day but it hasn't yet. I'll keep trying and I have half a notion to just start from scratch and copy over reusable code as I go along. I wanna seperate out those tool windows into separate code files anyway. Give me some time.

Latexxx
16th December 2002, 17:30
No hurry.

Emp3r0r
21st March 2003, 02:18
I've posted some updated binaries.

You need .NET Framework
You need AVISynth 2.5beta
You need mpeg2dec3.dll in AVISynth plugins directory to open .d2v files.

Download NEW DVD2XCD Version 1.0.1174.34207 binary (http://jvance.com/files/DVD2XCD (1.0.1174.34207).zip) (108 KB)

flloyd
8th March 2004, 20:38
Emp3r0r,

do you have any plans to update this program or is it dead? I've been looking for a program just like this and the closest I've found is this (http://forum.doom9.org/showthread.php?s=&threadid=62286). Unfortunately that has a bunch of features that I don't need and your program seems a little simpler and cleaner. Let me know what the status is, since this seems to have a lot of potential. Thanks.

Emp3r0r
12th March 2004, 05:42
It's not dead... but it has been in a coma ;)

I've looked at AR calculator too and I just want something that is clean and simple like the DVD2XCD interface I came up with. I really haven't found the free time to keep working on this project but I'm thinking of bringing it back alive just as a quick way to create my avs files.