digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Capturing / Recording (http://www.digitalfaq.com/archives/capture/)
-   -   Dano, DGIndex with HDTV captures / recordings (http://www.digitalfaq.com/archives/capture/13970-dano-dgindex-hdtv.html)

nicksteel 11-24-2005 10:06 AM

Dano, DGIndex with HDTV captures / recordings
 
Playing with new ATI HDTV Wonder OTA captures with WindowsXPMediaCenterEdition. Want to capture HD tv programs and save as KDVD 704x480.

I capture and then convert with DVRMSToolbox.


3. I then open MPEG-2 with DGIndex (using Ignore Pulldown Flags & Skal SSE MMX ) which says:

Aspect Ratio: 16x9
Frame Size: 1280x760
Profile: main@high
Frame Rate: 59.97
Video Type: NTSC
Frame Type: Progressive
Colorimetry: ITU-R BT.470-2
Frame Struct: Frame
Field Order: Bottom
Coded# 193
Playback# 093
Bitrate: 9.960 Mbps
Audio: DD 2/0 384


4. I then open d2v with FitCd v1.2.8 (704x480 DVD 704) and get:

# -= AviSynth v2.5.2.0 script by FitCD v1.2.8 =-
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
Mpeg2Source("C:\Program Files\DVRMSToolbox\test1.d2v")
LanczosResize(672,352,20,0,1880,1080)
AddBorders(16,64,16,64)
#Trim(0,93331).FadeOut(150)

5. I then use script:

Mpeg2Source("C:\test\test1.d2v",idct=7)

LanczosResize(704,368,12,0,1256,720)
LRemoveDust_YV12(17,1)
ConverttoRGB24()
AddBorders(0,56,0,56)

function LRemoveDust_YV12(clip input, int clmode, int "limit")
{
limit=default(limit,2)
clmode=default(clmode,17)
repmode = 2
clensed = Clense(input)
rep = Repair(clensed, input, mode=repmode)
rg = RemoveGrain(rep, mode=clmode)
return LimitChange(rg, input, limit)
}

TMPGEnc will not open avs ("Cannot open or unsupported"). If I use DVD2AVI to create the D2V, I get same stats and TMPGEnc will open avs.

:?: Are you managing to use DGIndex?

I am finally getting pretty good dvd output, but probably not the best possible. I am presently setting TMPGEnc to 29.97 interlaced with 4:3 input/output centered. Seems to work, but could probably use smoother output.

Dialhot 11-24-2005 11:36 AM

The default color scheme of DGIndex has changed.
I'm quite sure that if you add a "ConvertToYUY2()" at the end of the script (or convertToYV12, I'm not sure), the problem will be fixed.

Try this, report which line works, and I'll tell you afterwards what is the best to do to fix the problem definitely.

nicksteel 11-24-2005 08:02 PM

Thanks, Phil

Both failed, when loading avs into TMPGEnc and when loading d2v directly into TMPGEnc. Below is d2v file top and last lines.

Also, any ideas about handling the 59.94fps? At present, I'm just changing to 29.97 in TMPGEnc and processing as interlaced. Mostly trial and error.

Also, as I need to visit Paris again in the next couple weeks, what is the current state of civil unrest? I'm getting to where I don't have total faith in CNN's reporting here.

NickSteel, Houston

DGIndexProjectFile11
1
C:\anger\angFixed.mpg

Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=6
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=1280x720
Field_Operation=2
Frame_Rate=59940
Location=0,4537C,0,65C73

FINISHED 0.00% FILM

Dialhot 11-24-2005 08:14 PM

1/ are you shure that you have the DGDecode.dll that correspond to the version of DGIndex that you have ?

2/ are you positive that this the the DGDEcode version or Mpeg2Source that is used ? To be sure, usr DgDecode_Mpeg2source insteed.

3/ are you sure that Tmpgenc use DGIndex.vfp and not DVD2AVI.vfp ? Check in the environnemental settings.

4/ do you have Xvid codec installed ?

nicksteel 11-24-2005 08:24 PM

Quote:

Originally Posted by Dialhot
1/ are you shure that you have the DGDecode.dll that correspond to the version of DGIndex that you have ?

2/ are you positive that this the the DGDEcode version or Mpeg2Source that is used ? To be sure, usr DgDecode_Mpeg2source insteed.

3/ are you sure that Tmpgenc use DGIndex.vfp and not DVD2AVI.vfp ? Check in the environnemental settings.

4/ do you have Xvid codec installed ?

Reinstalled latest DGIndex. DGIndex.vfp is now selected in TMPGEnc environment. I have no Xvid codec.

Still having same problem, but I think it is related to DGIndex not being able to handle this. The D2V will open directly in TMPGEnc, but the avs will not.

Tested with other captures and it worked, so it must have something to do with the HDTV aspects of this particular capture. The latest d2v is:

DGIndexProjectFile11
1
C:\anger\vrd.mpg

Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=6
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=1280x720
Field_Operation=2
Frame_Rate=59940
Location=0,52417,0,66DF4

Dialhot 11-25-2005 05:10 AM

Quote:

Originally Posted by nicksteel
I have no Xvid codec.

That is the problem !
You need a codec handling YV12 installed on your PC. That can be xvid or divx (or an other one but theses two are good).

Edit: it seems you have an old 2.5.2 version of avisynth. You should upgrade it, there are a lot of interresting features in the last one (2.5.6)

nicksteel 11-26-2005 08:53 AM

Quote:

Originally Posted by Dialhot
Quote:

Originally Posted by nicksteel
I have no Xvid codec.

That is the problem !
You need a codec handling YV12 installed on your PC. That can be xvid or divx (or an other one but theses two are good).

Edit: it seems you have an old 2.5.2 version of avisynth. You should upgrade it, there are a lot of interresting features in the last one (2.5.6)

Thanks, as always, Phil.

:D Downloaded divx codec and problems went away.

Latest quest is for dvr-ms editor to allow cutting commercials prior to converting to mpeg2. If I first convert to mpeg2, the sound doesn't work well with Mpeg Video Wizard or anything else I've tried.

:roll: HDTV captures are challenging, but hopefully better editing/conversion software will be developed. I'm using DVRMSToolbox for converting from dvr-ms to mpeg2 now. It works pretty well, but I usually end up with out of sync sound which I have to correct with use of VirtualDub to find offset value. I have to rip the sound from the mpeg2 with MPEG Mediator as a wave to have any success.

:D Thanks again.

nicksteel 11-26-2005 04:42 PM

59.97fps
 
8O Now that Phil has graciously guided me through DGIndex, I need to find out how to process HDTV captures into 704x480.

I capture OTA HDTV with MCE and ATI Wonder as dvr-ms and convert with DVRMSToolbox to:

Video ID: 224
Format: MPEG-2
Size: 1280x720(9/16)
Frame Rate: 59.97 Frames/Sec
Bit Rate: 19000 kbps (Variable)

Audio ID: 128
Format: Dolby AC-3
Channnel: 2
Bit Rate: 320 kbps
Sample Rate: 48.0 kHz


In TMPGEnc (using avs):

:?: What is best way to handle the 59.97fps frame rate?

:?: Is this thing progressive or interlaced?

:roll: This is all a lot more involved than my PVR-250 captures, especially with MS-MCE not being able to capture as DVD!

Boulder 11-27-2005 03:14 AM

Maybe you should upload a short unprocessed sample clip somewhere. I could take a look at it if I have the time, a thing I can't really be sure of these days.

Dano 12-09-2005 02:16 PM

If you want to avoid the dvr-ms headaches I believe you can install ATI MMC in MCE, that way you can capture directly to mpeg-2 ps. The easiest way to change the framerate of your 59.97 p cap is to use selecteven() in your .avs, this will give you a progressive 29.97 clip. You could even run decimate(cycle=5) and run 2:3 pulldown to save bitrate and see how it looks, it might be choppy in which case you should just leave it at 29.97. I honestly think the biggest problem with HDTV caps is the editing, I am beginning to think it is just easier to encode first and then edit the resulting file.

nicksteel 12-09-2005 04:57 PM

Quote:

Originally Posted by Dano
If you want to avoid the dvr-ms headaches I believe you can install ATI MMC in MCE, that way you can capture directly to mpeg-2 ps. The easiest way to change the framerate of your 59.97 p cap is to use selecteven() in your .avs, this will give you a progressive 29.97 clip. You could even run decimate(cycle=5) and run 2:3 pulldown to save bitrate and see how it looks, it might be choppy in which case you should just leave it at 29.97. I honestly think the biggest problem with HDTV caps is the editing, I am beginning to think it is just easier to encode first and then edit the resulting file.

Thanks, Dano.

:?: Using selecteven(), should it go here?

Mpeg2Source("C:\test\test1.d2v",idct=7)
selecteven()
LanczosResize(704,368,12,0,1256,720)
LRemoveDust_YV12(17,1)
ConverttoRGB24()
AddBorders(0,56,0,56)

function LRemoveDust_YV12(clip input, int clmode, int "limit")
{
limit=default(limit,2)
clmode=default(clmode,17)
repmode = 2
clensed = Clense(input)
rep = Repair(clensed, input, mode=repmode)
rg = RemoveGrain(rep, mode=clmode)
return LimitChange(rg, input, limit)
}

I've been using VideoReDo for cutting commercials, as Womble has problems with the sound. VideoReDo has a pretty easy method for fixing audio synch ( which I seem to get in all captures ) and outputs MPEG2. Trying to decimate has resulted in choppy results, so I go with progressive 29.97. Before VideoReDo, I was also encoding, then removing commercials (with Womble Wizard).

:?: Do you use something similiar to the script above? It seems to give pretty good output.

I wasn't able to install MMC in MCE, but don't really need it with VideoReDo. It was nice being able to install the ATI board without a second tuner or add-on graphics board.

:) There's not many movies on OTA HDTV, but I do have several channels here in Houston. I want to capture "24" starting in January.

Dano 12-09-2005 07:11 PM

Yes, you want selecteven() in the first part of your filter chain that way your encode will be faster. When I encoded to DVD res I used only light filtering but now I prefer to keep the hi-res so encoding does not look too attractive due to the time involved. I am almost tempted to just edit the original and cut it to span across several DVD's.

nicksteel 12-12-2005 06:18 AM

Quote:

Originally Posted by Dano
Yes, you want selecteven() in the first part of your filter chain that way your encode will be faster. When I encoded to DVD res I used only light filtering but now I prefer to keep the hi-res so encoding does not look too attractive due to the time involved. I am almost tempted to just edit the original and cut it to span across several DVD's.

Not all that smooth output, seems kinda jerky.

LoadPlugin("C:\video\moviestacker\Filters\MPEG2Dec 3.dll")
LoadPlugin("C:\video\moviestacker\Filters\DGDecode .dll")
LoadPlugin("C:\video\moviestacker\Filters\RemoveGr ainsse3.dll")
LoadPlugin("C:\video\moviestacker\Filters\Repairss e3.dll")
LoadPlugin("C:\video\moviestacker\Filters\SSe3Tool s.dll")

Mpeg2Source("C:\_MOVIES\grinch\grinch.d2v",idct=7)
selecteven()

LanczosResize(720,368,0,1,1280,718)
LRemoveDust_YV12(17,1)

ConverttoRGB24()
AddBorders(0,56,0,56)

function LRemoveDust_YV12(clip input, int clmode, int "limit")
{
limit=default(limit,2)
clmode=default(clmode,17)
repmode = 2
clensed = Clense(input)
rep = Repair(clensed, input, mode=repmode)
rg = RemoveGrain(rep, mode=clmode)
return LimitChange(rg, input, limit, limitU=255)
}

TMPGEnc set to noninterlace.

Dano 12-13-2005 09:04 PM

I don't know if this is your problem but you have both mpeg2dec3 and dgdecode, you only need one. If you recorded this off of ABC then it is most likely 720p, in which case selecteven() should work. If it is 1080i then you should ivtc.

nicksteel 12-14-2005 07:07 AM

Quote:

Originally Posted by Dano
I don't know if this is your problem but you have both mpeg2dec3 and dgdecode, you only need one. If you recorded this off of ABC then it is most likely 720p, in which case selecteven() should work. If it is 1080i then you should ivtc.

1080i and I have changed script to:

LoadPlugin("C:\video\moviestacker\Filters\DGDecode .dll")
LoadPlugin("C:\video\moviestacker\Filters\RemoveGr ainsse3.dll")
LoadPlugin("C:\video\moviestacker\Filters\Repairss e3.dll")
LoadPlugin("C:\video\moviestacker\Filters\SSe3Tool s.dll")

Mpeg2Source("C:\_MOVIES\test\test.d2v",idct=7)
#selecteven()

Telecide(order=1, guide=1, gthresh=10, post=2, vthresh=50, dthresh=7, blend=false, show=false)
Decimate(cycle=5, mode=0, threshold=0, threshold2=3, quality=2, show=false)


LanczosResize(720,368,0,1,1280,718)
LRemoveDust_YV12(17,1)

ConverttoRGB24()
AddBorders(0,56,0,56)

function LRemoveDust_YV12(clip input, int clmode, int "limit")
{
limit=default(limit,2)
clmode=default(clmode,17)
repmode = 2
clensed = Clense(input)
rep = Repair(clensed, input, mode=repmode)
rg = RemoveGrain(rep, mode=clmode)
return LimitChange(rg, input, limit, limitU=255)

What do I do with resulting 50fps?

http://s42.yousendit.com/d.aspx?id=3...319RQ0EJKXT09R

My problem seems to revolve around the 59fps conversion. The raw mpeg2 from VideoReDo is smooth at 59fps, but jerky when changing to 29fps with selecteven() or TMPGEnc settings.

Dano 12-14-2005 09:45 PM

You definitely have 720p and not 1080i so you need selecteven() to get to 29.97. Make sure you do not use pulldown in your script or in TMPGEnc since your resulting mpeg is progressive.

Dano 12-16-2005 08:15 PM

Hey Nick,

These two links have a wealth of info:

http://www.rage3d.com/board/showthread.php?t=33765673

http://www.rage3d.com/board/showthread.php?t=33792569

nicksteel 04-24-2006 07:39 AM

HDTV to DVD Synch Problem
 
:? Having sound synch difficulties with ATI HDTV Wonder OTA captures of 24.

I edit commercials with VideoReDo (saved mpg is in synch)

Create D2V with DGIndex 1.4.6
Create Wav with DGIndex 1.4.6 (sometimes have problems if I just demux)

Process with TMPGEnc as 29.97 704x480 non-interlaced - set as 29.97 manually (same results as when I use selecteven() in script for changing frame rate from 59.97.)

Process Audio with Headac3he to 192 mp2

Use DVDLab to process m2v and mp2.

The sound starts out in synch, but progressively becomes earlier than video, ending up about 1/2 second out after 40 minutes.

Same synch results if I use Mplex to mux instead of DVDLab.

LoadPlugin("C:\video\moviestacker\Filters\DGDecode .dll")
LoadPlugin("C:\video\moviestacker\Filters\RemoveGr ainsse3.dll")
LoadPlugin("C:\video\moviestacker\Filters\Repairss e3.dll")
LoadPlugin("C:\video\moviestacker\Filters\SSe3Tool s.dll")

Mpeg2Source("C:\MyTv\24\24.d2v",idct=7)
#selecteven()

LanczosResize(720,368,0,1,1280,718)
LRemoveDust_YV12(17,1)

ConverttoRGB24()
AddBorders(0,56,0,56)

function LRemoveDust_YV12(clip input, int clmode, int "limit")
{
limit=default(limit,2)
clmode=default(clmode,17)
repmode = 2
clensed = Clense(input)
rep = Repair(clensed, input, mode=repmode)
rg = RemoveGrain(rep, mode=clmode)
return LimitChange(rg, input, limit, limitU=255) :?

nicksteel 05-02-2006 08:44 AM

Used the above script with SelectEven().Decimate(5) and set TMPGEnc to 24fps non-interlaced. Seems to work.

Dialhot 05-02-2006 09:01 AM

24 or 23.976 ? be carefull, I don't think 24 will be allowed on a DVD.

nicksteel 05-02-2006 09:41 AM

Thanks, Phil

Yeah, 24 not 23.976. Only captures of 24 give me the sync problem. I'm going to experiment this weekend to see if a dvd out of DVDLabPro will even play on my stand-alones. It, of course plays well on the computer.

I was reading about problems with synch of 24 captures on doom and this seems to be the only solution anyone could come up with. I'd just about given up, but took it as a challenge, as every other HDTV OTA has no such problems, processed either as 23.976 or 29.97.

nicksteel 05-03-2006 03:02 PM

As I couldn't make 23.976 from the 24fps and cannot go dvd with the 24fps, I finally gave up on "24".

Dialhot 05-03-2006 05:44 PM

Did you try a simple "AssumeFPS(23.976)" at the end of the script ? (perhaps the audio will have to be modified also).


All times are GMT -5. The time now is 07:14 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.