View Full Version : DVD2AVI2 v 1.83.5 (for HDTV)
trbarry
30th March 2003, 08:29
Of interest mostly to HDTV users I just put out a new test version of the save-oe DVD2AVI program. It corrects an occasional huge stated audio delay in streams with multiple audio programs (thanks Khimera). It also improves file name handling for 2 char file types (.ts, .tp)
Functioning for normal VOB's and DVD rips should be unchanged.
- Tom
edit: In brain dead sleep deprived grogginess I seem to have ommitted the link. see www.trbarry.com/DVD2AVIT3.zip ;)
lineman
1st April 2003, 02:33
trbarry
Where can I download this new version?
Lineman
trbarry
1st April 2003, 03:53
lineman -
I added the missing link above.
- Tom
Selur
4th April 2003, 08:09
"Functioning for normal VOB's and DVD rips should be unchanged."
So it should work with Avisynth like the DVD2AVI 1.76 ?
(I know I could have tested it myself, but you know: 'never touch a running system' )
Cu Selur
trbarry
4th April 2003, 18:18
It should work like 1.76 but there is no real reason to switch for non-HDTV users except for some P4 optimizations. And they mostly will only apply if you are compressing directly from DVD2AVI2.
This is just a patch to the Sourceforge save-oe version.
- Tom
Jeff D
4th April 2003, 18:45
Tom, this new version which is listed as "For HDTV" all over. Does that actually mean for those using with HDTV caputre streams?
trbarry
4th April 2003, 21:38
Yes it does but that has been true for the file posted at the same link for over a year now. I still believe it has always worked for normal ripping purposes, etc for all this time. And it has also supported ATSC HDTV streams for that time.
The only reason I singled out HDTV here in this post is because the bug fixes and enhancements have interest only to HDTV users.
Note if you are using it for frame serving HDTV then you also need one of the HDTV supporting MPEG2DECx modules like MPEG2DEC2 or MPEG2DEC3.
- Tom
lineman
4th April 2003, 23:52
trbarry
How do I get this version of avi2dvd to recognize mpg audio streams. It doesnt seem to understand them,only DD streams
Lineman
trbarry
5th April 2003, 02:06
lineman -
Dunno. I've never had anything but ac3 and I don't know anything at all about the audio code. (and very little about ANY audio code)
- Tom
Selur
7th April 2003, 11:18
"It should work like 1.76 but there is no real reason to switch for non-HDTV users except for some P4 optimizations."
Thx for this clearification ;)
abman
16th April 2003, 17:35
thanks for the great tool trbarry, much better than having to use hdtvtompeg2.
I do kind of wonder if there's a way to get the display window to resize or something, maybe display at 50%. I have a tough time with 1080i feeds. can't seem to do anything to let me see the slide bar at the bottom. I want to cut the end in case of garbage signal, and it takes forever to scroll with the arrow keys. Is there a keyboard shortcut to jump to the end of the file? I figured [ and ] do the same as the buttons, but couldn't find a good way to jump to the end of the file w/o being able to see the slider.
Xesdeeni
17th April 2003, 15:36
I'm having trouble getting this to work with HDTV transport streams. I started with the the .tp files on DVico's web site (http://www.dvico.com/hdtv/download.asp at the bottom), but I've also noticed that it doesn't seem to work with the samples here (http://www.eecs.umich.edu/~balazer/hd_ads/) either. When these streams are loaded, the window goes black, but doesn't show an image and doesn't resize. When I do a "Save Project," I get a d2v file with not much in it:
9
FINISHED
It seems to work with VOBs of these same streams converted using HDTV2MPEG2.
Am I missing something?
Xesdeeni
abman
17th April 2003, 17:37
Yes, you need to set the PID's to the correct # in the dvd2avi.ini file. Open the .tp in hdtvtompeg2 and get the PID #'s for the subchannel you are wanting to save (probably those test clips only have one in them). Then open the ini and replace the numbers. It will probably be either 11&14, 21&24, or 31&34.
Xesdeeni
17th April 2003, 17:59
Doh! I forgot that.
OK, so now I'll make the same request as above about scaling down the image when it doesn't fit on the screen :)
Xesdeeni
trbarry
17th April 2003, 19:07
I do kind of wonder if there's a way to get the display window to resize or something, maybe display at 50%.
What I do is always click on the "Clip & Resize", click Reset, and scale it to something sloppy that fits on the screen. Then I cut the ends if needed, fiddle with other stuff, and finally click Reset one more time before saving the project file.
When frame serving with MPEG2DEC3 you will crash if you pass it any crop or resize parameters. With MPEG2DEC2 (YUY2 only) it will honor the crop parms but ignore the resize parms.
I've been meaning to fix all this someday in some sort of consistant fashion but right now I've just converted to XP on my dev machine and don't even have VS6 (and all the packs) installed again yet. So I can't currently do any programming.
DVD2AVI2 can crop and resize when you go straight do a codec without MPEG2DECx. But I do not believe resize will ever be supported by MPEG2DECx because it would not work for interlaced material. What I've thought of doing is allowing you to specify crop and resize parms in DVD2AVI2 but having the MPEG2DECx do only the cropping. It could then pass the specified resize values on through to Avisynth as global variables so you could (optionally) resize properly after IVTC or deinterlacing or whatever.
I don't know if I'll ever get to that though.
- Tom
Xesdeeni
17th April 2003, 20:13
I don't think we're asking for an actual resize of the video stream, just of the video being displayed, so that it, and all the controls and the status window will fit on the screen :).
On a side note, have you looked at the content from the DVico site? The SDADxx.tp files are "standard definition," although they are scaled up to 1920x1088. But I have no idea what the heck they were doing with that video. The framerate is reported as 23.976 fps. I can't play the clips in real time on my machine, but they are clearly telecined. After some looking, it looks like they are telecined to 47.952 fields. Well, this would look very good, except they don't do a 2 fields per frame telecine! The pattern appears to be 2 fields for one frame, followed by 1 field for a frame, then 2 fields for the next frame and then 3 fields for the next frame. Ech! It's as if they telecined it and then inverse telecined it by throwing out every 5th field and got out of sync!
Anyway, I don't know how this reflects on the FusionHDTV card. I assume this is just a copy of what was transmitted.
Xesdeeni
trbarry
18th April 2003, 01:14
I don't think we're asking for an actual resize of the video stream, just of the video being displayed, so that it, and all the controls and the status window will fit on the screen .
When you change the crop & resize parms it also changes the display. The rest was just me getting OT wondering if anyone cared if I implemented resize that way. ;)
I think I did download an early DVico demo but I don't even rememeber if I finally got around to playing it. I think it is valid MPEG2 to have a mixture of both repeat flags and progressive frames so maybe you should see what happens if you turn on Force Film. ??
I'll look around and see if I still have it.
- Tom
abman
18th April 2003, 17:49
ya its best to just leave resize to lanczosresize in avisynth, but crop would be fine to pass through. Not terribly important though. That trick with crop & resize fixed my problem, just what I had been looking for :)
do you know if using split .tp files as a source can cause any problems in the resulting ac3 file? I run into a lot of crc problems, generally 2 or 3 per file. could that be the cause? or is it probably in my source?
trbarry
19th April 2003, 03:06
I don't know for sure but I suspect that chopping sections out of the middle of a tp file using things like HDTV2MPEG2 may cause problems like that. I have never quite trusted that but can't prove anything wrong with it.
What I was talking about implementing for resize was having DVD2AVI/MPEG2DEC2 pass along the resize parms to Avisynth as global variables, say like MP2ResizeWidth MP2ResizeHeight.
Then in your avisynth script or template you could anywhere specify
LanczosResize(MP2ResizeWidth,MP2ResizeHeight)
and have it use whatever you chose in DVD2AVI. It's not an essential feature but it's just something I've wanted for awhile so I don't have to write down the numbers. But again, it's not important enough that I'll likely ever get to it.
- Tom
Xesdeeni
19th April 2003, 03:16
I see what you mean about scaling the image temporarily, but it is kind of sloppy ;) I've never used this feature, does this info get put into the .D2V file, and will is screw things up further down the line if I leave it this way (remember, I was trying to have the status window on-screen)? Anyway, I've always wondered why DVD2AVI wouldn't let you drag-size the window.
As for passing the scaling to AVISynth...before you implement that, I'd request a way to choose/change the video and audio stream IDs without modifying the .ini file :).
BTW, I'll have to check again through DVD2AVI, but when I load the same two clips referenced above into the Elecard player and check it's info, it says 29.97 fps instead of 23.976 fps. I probably was pulling another Homer Simpson "Doh!" on that one too...oh well...time for a vacation....
Xesdeeni
trbarry
19th April 2003, 16:56
I see what you mean about scaling the image temporarily, but it is kind of sloppy I've never used this feature, does this info get put into the .D2V file, and will is screw things up further down the line if I leave it this way?
Xesdeeni -
Yes, it will crash. Hit reset before making the .d2v file.
As for passing the scaling to AVISynth...before you implement that, I'd request a way to choose/change the video and audio stream IDs without modifying the .ini file .
Maybe. But the pid pair is almost always <11,14>, <21,24>, or <31,34>. So I just have 3 copies of DVD2AVI in 3 folders, with 3 ini files, one for each. I start the right one.
BTW, I'll have to check again through DVD2AVI, but when I load the same two clips referenced above into the Elecard player and check it's info, it says 29.97 fps instead of 23.976 fps. I probably was pulling another Homer Simpson "Doh!" on that one too...oh well...time for a vacation....
The frame rate changes depending upon whether you have Force Film checked. Usually turn it off as most HDTV material is not properly flagged anyway, even if it was film. Then use Telecide or TomsMoComp(1,5,1) if needed.
- Tom
Xesdeeni
21st April 2003, 01:29
Yes, it will crash. Hit reset before making the .d2v file.So there isn't a way to have the video fit on the screen and save the D2V file (watch the status window) at the same time? Maybe. But the pid pair is almost always <11,14>, <21,24>, or <31,34>. So I just have 3 copies of DVD2AVI in 3 folders, with 3 ini files, one for each. I start the right one.At least two of the sample .TP files on the DVico site (see above) use 0xE81 and 0xE84. The frame rate changes depending upon whether you have Force Film checked. Usually turn it off as most HDTV material is not properly flagged anyway, even if it was film.Yeah, I'm pretty sure I screwed that up in the DVD2AVI settings.
Xesdeeni
trbarry
21st April 2003, 06:27
Xesdeeni -
There are a number of things that could probably be done to make DVD2AVI2 more user friendly. If you are a programmer, the source in in the zip or (almost up to date) on Sourceforge in the mostly neglected save-oe project.
- Tom
Nic
21st April 2003, 12:47
http://nic.dnsalias.com/DVD2AVIT3.zip
If you set the PIDS in the .ini file to -1 then the PIDs will be found automatically.
(actually though when it saves the ini file out again it will have it set to the new values rather than back to -1,-1...maybe that should be changed)
-Nic
trbarry
22nd April 2003, 04:13
Hi Nic -
Was that derived from the 1.83.5 of this thread? Or do I have to look for stuff to merge?
- Tom
Nic
22nd April 2003, 08:59
Yep its derived from the link at the start of this thread. All changes should be marked with // Nic (although I might have forgotten sometimes ;) But my changes should be obvious (only in gui.cpp and getbit.c and the new PMSParser & PATParser classes)
I hope its of some use :)
Cheers,
-Nic
trbarry
22nd April 2003, 14:04
Nic -
Great! Due to recently upgrading to XP I don't have my usual VS6 development system installed, and can't do anything with this one now. But once I do I'll replace it on my site with 1.83.6, probably with a gimmick to not save the pids in the -1,-1 case, which I think is a good idea. Nic, could you do that?
Until then I guess everyone that wants that feature should just grab Nic's at the above link.
- Tom
Nic
22nd April 2003, 14:38
Yup ill do that, ill also add a little dialog box so you can do the changing manually in dvd2avi. Fiddling with .ini files always gets painful after a while :)
-Nic
ps
Im still working on the re-write of dvd2avi, its my least favourite version of dvd2avi_nic so far, but its nice for me to have a complete re-write to play with. In case I dont ever get round to releasing it I might try and put my besweet code from the old dvd2avi_nic into this version...might be useful to someone.
Nic
22nd April 2003, 23:23
http://nic.dnsalias.com/DVD2AVIT3.zip
There, and now has PID Selection dialog box in the options too.
Cheers,
-Nic
trbarry
23rd April 2003, 00:23
Yup ill do that, ill also add a little dialog box so you can do the changing manually in dvd2avi. Fiddling with .ini files always gets painful after a while
That would indeed be nifty. I just make multiple folders with little clones of the ini files but that's just what works for my local stations. Some folks may not have things so predictable so this could be very useful for them.
I don't give as much thought to the audio conversions because I don't know much about it and mostly because with HDTV stuff I just keep the ac3 anyway. It's less important to save 100 kbps if you are encoding at 4-7 mbps. And I'm lazy. ;)
- Tom
Edit: Whups! My post crossed with yours. Downloading now. ;)
Nic
23rd April 2003, 13:23
Hope it works ok, :)
Could you tell me (or point me) to the information on how you made dvd2avi's audio delay detection more accurate? What was wrong with it in the first place?
Thanks for any info :)
-Nic
trbarry
24th April 2003, 14:50
It works great on a half dozen streams that I tried. Only problem is when there are multiple sub-channels on either my PBS or Fox network it seems to unfailingly pick the wrong one. But I guess that is dictated by Murphy's Law. ;)
Funny though because I think the lowest numbers would have been correct in most cases. I guess it just take whatever if finds first.
The only code change I remember for the correct audio streams was at Getbit.c, line 451:
// check for MPEG2-PES packet header... this contains a 'PTS'
// if (code != 0x000001E0 ) // 'VIDEO ELEMENTARY STREAM 1'?
if (code < 0x000001E0 || code > 0x000001E7 ) // 'VIDEO ELEMENTARY STREAM'?
This was another user contributed fix, to allow the proper range of values in that "code", whatever that is. Thanks again Khimera. ;)
I think a few months ago there was one other fix to DVD2AVI and/or MPEG2DECx that corrected a couple places where the PID was hardcoded to x21 somewhere, instead of checking the proper stored values.
Anyway, this should be quite useful. I'd recommend everyone grab this copy. I'll be replacing mine as soon as I have a chance to do a few more compares.
Thanks.
- Tom
Nic
24th April 2003, 15:42
"seems to unfailingly pick the wrong one"
lol :) I know what you mean, "sod's law" as we call it here :)
Not much I can do about it really :( It just finds the first pmid and then from that the first video stream and the first audio stream...Any suggestions?
(im also going to change it from -1 to 0, as -1 in hex is 0xffff for a short and that just gets confusing ;) )
What I could do is make another little menu option which scans the transport stream and lists all program ids and their streams (??)
"if (code < 0x000001E0 || code > 0x000001E7 )" Thanks for that ill add it into my dvd2avi_nic.
-Nic
trbarry
24th April 2003, 23:12
What I could do is make another little menu option which scans the transport stream and lists all program ids and their streams (??)
If you've ever seen HDTV2MPEG it lists each stream with it's resolution. That's about the only way to tell which one you want with the stations that send both an HD and an SDTV version of the same thing.
Right now I just quickly bring up HDTV2mpeg to check the PID numbers but don't even use it for anything else.
- Tom
Sgt_Strider
4th May 2003, 07:21
@Trbarry
I have a question about your version of DVD2AVI trbarry. Whenever I use your version of dvd2avi and open up my vob files, how come on the top it say the resolution is 720x360? Using dvd2avi 1.76, the resolution is listed as 720x480. In order for me to change it back to 720x480, I have to go to video----clip&resize and change the video aspect to free in order for it to work. Also the default filter type is bilinear(mmx), which one is better for dvd rips, binlinear, or precise bicubic? Thx
trbarry
4th May 2003, 20:32
Whenever I use your version of dvd2avi and open up my vob files, how come on the top it say the resolution is 720x360? Using dvd2avi 1.76, the resolution is listed as 720x480.
It's been like that before I ever worked on it but I don't understand why. It seems to be a combination of picking up the aspect ratio from the source and also resizing to fit on the preview screen. I just click reset on the resize screen.
I think bicubic is better but I rarely use it there. The resize only affects what happens if you "Save Avi" not "Save Project". The exception is that MPEG3DEC3 will crash if you forget and leave any crop or resize parms.
- Tom
xiaomeng_zhao
7th May 2003, 16:37
recommend a alternative, you can get to know at once it if you will enter into the page:
SPAM removed by moderator
Mr_Khyron
12th May 2003, 21:28
Originally posted by xiaomeng_zhao
recommend a alternative, you can get to know at once it if you will enter into the page:
SPAM removed by moderator
Forum rules -
5) Do not spam. No blatant advertising.
SILICON
27th May 2003, 14:23
Can you add comandline suport?
trbarry
29th May 2003, 16:01
"Can you add comandline suport?"
I'm not likely to myself. My activiities on DVD2AVI are usually just simple bug fixing now, mostly just user submitted fixes.
- Tom
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.