|
|
/video/chapter01.htm
Q5: How do I install the Panasonic DV codec?
A5: Windows 98/ME:
Extract the codec and copy the file pdvcodec.dll to the windows\system directory. Add the following entry in system.ini, section [drivers32]:
vidc.dvsd=pdvcodec.dll
Win2000 / WinXP
Extract the attached REG file, then double click it to install.
Or enter the following registry key manually:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc]
quot;pdvcodec.dllquot;=quot anasonic DV Codecquot;
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]
quot;vidc.dvsdquot;=quot;pdvcodec.dllquot;
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.dvsd]
quot;Driverquot;=quot;pdvcodec.dllquot;
quot;Descriptionquot;=quot anasonic DV Codecquot;
Q6: How to deal with CCE's field order bug (V2.50)
A6: CCE 2.50 always encodes with top field first, whereas DV is bottom field first. Use pulldown.exe after CCE 2.50 encoding to revert the field order (set it to even). Then your DVD will play fine on a DVD player. (Thanks to nick ctrl.)
Instead of pulldown.exe you may use ReStream as well.
Q7: Which camcorder formats exist?
A7: Currently the following camcorder formats are available:
1. DV
The DV format is similar to MJPEG (motion JPEG). Every frame is a keyframe which makes editing an easy task. The compression ratio is 5:1 at a data rate of ca. 3.6 MB/s. This results in an excellent quality. You will encounter mainly two cassette formats, either miniDV or Sony's Digital8. The data is stored the same way on either cassette type, so there's no difference in the DV stream.
2. MicroMV
Sony's proprietary MicroMV format allows for cassettes even smaller than miniDV. It is a keyframe-only MPEG-2 format, and not many editing programs support it. The data rate is 12 MBit/s, which is one of the reasons that make a direct transfer to DVD impossible, because DVD is limited to 9.8 MBit/s.
3. DVD-RAM
Hitachi recently created a camcorder using DVD-RAM as storage medium. The video is stored in MPEG-2 format. A 1.4 GB DVD-RAM is sufficient for 30 minutes recording time. MPEG-2 is not recommended for editing, though.
4. quot;Hard storagequot;
Panasonic announced a camcorder for professional use for 2004 which uses SD cards as storage medium. Data is recorded in the DVCPRO format (a professional DV flavour).
Q8: What's color subsampling, e.g. 4:2:2, 4:2:0, 4:1:1?
A8: Color subsampling defines the way color (= chroma) information is stored in digital formats. Here's a good visual explanation:
pix-sampling.html
Q9: Which DV codecs use which four character codes (4CC)?
A9: Most DV codecs use the standard, which is DVSD.
Canopus is an exception; the codec uses CDVC instead.
You can easily change the 4CC in your AVI file using the quot;FourCC changerquot;: Soft21/Editing/AviC.zipQ10: 4:3 interlaced to 16:9 anamorphic
Often people ask themselves how to convert a 4:3 interlaced shot into a 16:9 anamorphic video (interlaced, too). To achieve this, you crop away everything outside the 16:9 window of your 4:3 frame; typically you keep the center part of the frame. Then you upsize the cropped video to get back a full sized DV frame. But how much to crop? How to resize correctly to keep the aspect ratio, thus avoiding quot;egg headsquot;? How to deal with the interlacing?
The answers differ depending on the TV standard. Although the formulas are the same, the crop and resize values differ because of the different frame sizes. Here are the answers.
NTSC:
Code:
frame........720x480
field........720x240
4:3 AR.......1.500
4:3 DAR......1.333
PAR..........0.889
16:9 AR......2.000
16:9 DAR.....1.778
16:9 frame...720x360
crop total...120 pixels
NTSC example script:
Code:
AviSource(quot;C:\DV\test.aviquot;)
# alternatively: DirectShowSource(quot;C:\DV\test.aviquot;)
Crop(0,60,0,-60)
SeparateFields()
BicubicResize(720,240)
ConverttoYUY2()
ReInterpolate411()
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
# BFF to TFF: DoubleWeave.SelectOdd()
PAL:
Code:
frame........720x576
field........720x288
4:3 AR.......1.250
4:3 DAR......1.333
PAR..........1.067
16:9 AR......1.667
16:9 DAR.....1.778
16:9 frame...720x432
crop total...144 pixels
PAL example script:
Code:
AviSource(quot;C:\DV\test.aviquot;)
# alternatively: DirectShowSource(quot;C:\DV\test.aviquot;)
Crop(0,72,0,-72)
SeparateFields()
BicubicResize(720,288)
ConverttoYUY2()
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
# BFF to TFF: DoubleWeave.SelectOdd()
Feed the script into your favourite MPEG-2 encoder, and remember to switch the 16:9 flag on. This will tell your player that it has to deal with anamorphic content, i.e. it has to resize to 16:9 display.
Now that you know how to turn your 4:3 footage into 16:9 anamorphic, let me add a note which you might want to consider:
During the abovementioned process you crop your video, then you upsize it to full frame (field) size. You don't gain information in this process, you merely quot;blow upquot; the video. That means you'll need more bitrate to encode it later.
An alternative is to encode 4:3 letterboxed and use your TV set's 16:9 zoom. This way you save bitrate while preserving the same picture quality. All you have to do is to crop and add back black borders of the same size, which can be done in a single Letterbox command in AviSynth. |
|