View Single Post
Old 27th March 2003, 12:12   #11  |  Link
FreQi
Registered User
 
FreQi's Avatar
 
Join Date: Dec 2001
Posts: 234
It seems my problems with YV12 were fixed by installing a new version of XviD, and the new version of VirtualDubMod. I no longer get any error messages or program crashes, so I've been working on getting this under way for the last couple hours. I have most of a step-by-step done, however I haven't actually encoded anything yet because I kind of got stuck, and it's bed time. But here is what I have done so far (pls forgive spelling and grammar, this was a "quick" write up).


How To get HiPix Transport Streams into VirtualDubMod via AVISynth

Apps used in this guide:
- HiPix DTV-200 v3.5.2 Release Candidate 1 (AVS Forum Version)
- HDTV2Mpeg2 v1.09
- DVD2AVIT3 v1.83 (modified ver of DVD2AVI v1.76 for Transport Streams)
- AC3Filter v0.66b
- Nic's 2003-Mar-16 build of XviD
- VirtualDubMod v1.4.13.2v2 +vd-dll's, Lexer 0.1, DLLs_260303, modified AviSynth 2.5.1 (all extracted to the same dir)
- Donald Graft's Decomb.dll v4.06 beta 6
- AviSynth v2.5.1
- MarcFD's MPEG2Dec3 v1.00


Step 1: Record some DTV

- Use the HiPix software from AVS Forum to tune/record some tv

- Take note of the Resolution and Frame Rate it records in. You'll need to know this later on.

- The HiPix is the only card I have, but I believe anything that makes .TS files will work with the rest of this guide as well.


Step 2: Find your PID numbers

- Start HDTV2Mpeg2 and open your recorded .TS files

- Select the Channel you want from the drop down (This really only matters if the source you recorded from multicats content)

- See what the Video PID and Audio PID's are

- Close HDTV2Mpeg2 (do not do any converting)


Step 3: Create a D2V project file and Demux the AC3 audio

- Before you start DVD2AVIT3, make sure your dvd2avi.ini file has the video and audio PID's set to the same thing you found in HDTV2Mpeg2. It should look like one of the following lines:
MPEG2_Transport_PID=11,14
MPEG2_Transport_PID=21,24
MPEG2_Transport_PID=31,34

- Start DVD2AVIT3 and open your .TS files

- Set the following options in the menus (some may be the defaults)
* Video -> Field Operation -> None
* Audio -> Track Number -> Don't process Audio
* Audio -> Channel Format -> Auto Select
* Audio -> Dolby Digital -> Demux All Tracks
* Audio -> MPEG Audio -> Demux

- Save the project file by pressing F4 (File -> Save Project)

- Watch the Statistics Window until it finishes.
Note: If DVD2AVIT3 looses focus, it seems to halt processing


Before you do the next step, make sure you have a version of XviD installed that supports YV12 (I used Nic's from 2003-Mar-16). To hear the AC3 you demuxed, you'll want to install AC3Filter so you can play it in media player. Also make sure you have VirtualDubMod and all the DLL packs/etc to get that working. Make sure you have AVISynth 2.5.1 (or newer) installed with the YV12 version of Decomb.dll and MPEG2Dec3.dll in it's plugin dir. You'll also want to put the following in with VDMod's Templates dir:

Code:
----- Begin: hdtv-1280x720-59.940fps.avst -----
#ASYNTHER HDTV 1280x720 59.940fps

# This template will take a source with a res of 1280x720 at a
# frame rate of 59.940fps and perform IVTC to get 23.976fps and
# resize it to 640x352.  Other Resize options are below.

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll")

[MPEG2Source("%f")]

Telecide()
SelectEven()
Decimate(cycle=5)

# When Source AR is 1.778:1 -- 16:9 Wide-Ssreen
Crop(4,4,-4,-4)
#Resized AR 1.800:1 with 170,240 pixels
#BicubicResize(576,320, 0, 0.5)
#Resized AR 1.818:1 with 225,280 pixels
BicubicResize(640,352, 0, 0.5)

# When Source AR is 2.4:1 (Theatrical/Panavision Wide-Screen)
#Crop(?,?,?,?)
#Resized AR 2.437:1 with 159,744 pixels
#BicubicResize(624,256, 0, 0.5)
#Resized AR 2.350:1 with 174,080 pixels
#BicubicResize(640,272, 0, 0.5)
#Resized AR 2.5:1 with 163,840 pixels
#BicubicResize(640,256, 0, 0.5)

# When Source AR is 1.333:1 -- 4:3 Full-Screen
#Crop(?,?,?,?)
#Resized AR 1.333:1 with 163,840 pixels
#BicubicResize(512,384,0,0.5)
----- End: hdtv-1280x720-59.940fps.avst -----

Step 4: Trim unwanted footage

- Start VirtualDubMod

- File -> Open video file via AviSynth...

- Select the Template that is appropriate for the material you recorded. For me, ABC broadcasts have a resolution of 1280x720 at 59.940fps, so I'd select that template (the one listed above).

- Scroll through the video to see if you like the cropping/resizing.

- Make any changes you may need by using the Script editor (under the Tools menu or just hit Ctrl-E)

- Once you're happy with the Crop/Resize, it's time to add your audio.
* Go to AVI -> Audio -> Interleaving. Under "Audio skew correction" enter the value that is in the name of the AC3 File that DVD2AVIT3 demuxed. It's the number between DELAY and ms.ac3 (ex: for "mwnk AC3 T01 3_2ch 384Kbps DELAY -327ms.ac3" you'd put in -327)
* Go to AVI -> Audio -> AC3 Audio. Select the AC3 file. Also make sure Direct Stream Copy is selected.

- Now use the slider and "Selection Start/End" buttons to delete the frames you do not want (Commercials/etc).

- SAFTEY FIRST: Now Save your processing settings, in case something breaks. Just go to File -> Save Processing Settings


Step 5: Audio Treatment

- There are so many things you can do with the audio, but for now, I'm just going to convert it to a VBR MP3. Possibly a better alternative would be to downsample the AC3 to make the file smaller, but I don't know enough about AC3 yet. Mabe in an updated guide...

- Now save your "edited" audio by going to AVI -> Demux audio...


Right about there is where I got stuck. I have very little know-how when it comes to dealing with AC3 audio at this point. I tried opening up BeSweetGUI but I'm in no condition to try figuring out what all thoe options are right now. I'd like to know how to do a few things at this point:

1) How can I make my AC3 a WAV so I can open in Audacity and amplify/clean it, then encode with RazorLAME.

2) How do I go from AC3 -> Normalized -> VBR MP3 using LAME's --r3mix switch(es)? I admit I haven't looked much, but I didn't see a way to add a profile to BeSweetGUI (so tired...)

3) How can I go from AC3 -> Normalized -> Downsampled AC3?

Anyway, I'm interested in your take on the steps I've taken so far.

Last edited by FreQi; 27th March 2003 at 12:21.
FreQi is offline   Reply With Quote