Quantcast Dano, DGIndex with HDTV Captures / Recordings - digitalFAQ.com Forums [Archives]
  #1  
11-24-2005, 10:06 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
11-24-2005, 11:36 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3  
11-24-2005, 08:02 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #4  
11-24-2005, 08:14 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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 ?
Reply With Quote
  #5  
11-24-2005, 08:24 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #6  
11-25-2005, 05:10 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Reply With Quote
  #7  
11-26-2005, 08:53 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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.

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.

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.

Thanks again.
Reply With Quote
  #8  
11-26-2005, 04:42 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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?

This is all a lot more involved than my PVR-250 captures, especially with MS-MCE not being able to capture as DVD!
Reply With Quote
  #9  
11-27-2005, 03:14 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #10  
12-09-2005, 02:16 PM
Dano Dano is offline
Free Member
 
Join Date: Apr 2003
Location: Brockton, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
-Dano
Reply With Quote
  #11  
12-09-2005, 04:57 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #12  
12-09-2005, 07:11 PM
Dano Dano is offline
Free Member
 
Join Date: Apr 2003
Location: Brockton, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
-Dano
Reply With Quote
  #13  
12-12-2005, 06:18 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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,71
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.
Reply With Quote
  #14  
12-13-2005, 09:04 PM
Dano Dano is offline
Free Member
 
Join Date: Apr 2003
Location: Brockton, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
-Dano
Reply With Quote
  #15  
12-14-2005, 07:07 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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,71
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.
Reply With Quote
  #16  
12-14-2005, 09:45 PM
Dano Dano is offline
Free Member
 
Join Date: Apr 2003
Location: Brockton, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #17  
12-16-2005, 08:15 PM
Dano Dano is offline
Free Member
 
Join Date: Apr 2003
Location: Brockton, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
-Dano
Reply With Quote
  #18  
04-24-2006, 07:39 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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,71
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)
Reply With Quote
  #19  
05-02-2006, 08:44 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Used the above script with SelectEven().Decimate(5) and set TMPGEnc to 24fps non-interlaced. Seems to work.
Reply With Quote
  #20  
05-02-2006, 09:01 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
24 or 23.976 ? be carefull, I don't think 24 will be allowed on a DVD.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Recording HDTV to HDTV nicksteel Video Capturing / Recording 1 12-11-2006 03:52 PM
DVD2AVI: DGIndex and FitCD nicksteel Video Encoding and Conversion 4 12-07-2005 04:54 PM
DVD2AVI: Fitcd v1.2.4 and dgindex v1.4.3 nicksteel Video Encoding and Conversion 7 09-18-2005 10:44 AM
DVD Rebuilder and DGIndex? Dialhot Video Encoding and Conversion 7 12-10-2004 10:50 AM
Cutting Commercials from TV recordings? nicksteel Video Capturing / Recording 4 04-11-2003 12:58 PM

Thread Tools



 
All times are GMT -5. The time now is 12:26 AM  —  vBulletin Jelsoft Enterprises Ltd