Log in

View Full Version : Interlaced encodes with CCE?


J666RST
17th March 2004, 00:01
Ive just started to CCE for dvd encodes having already use it to convert avi with no probs.

but when i try a dvd it comes out interlaced, like this:
http://img27.photobucket.com/albums/v81/J666RST/PDVD_001.bmp
ive read the faq, ive tried different options in CCE now im at a loss!

heres wot i use:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
mpeg2source("E:\VIDEO_TS\test.d2v")
LanczosResize(720,416)
AddBorders(0,80,0,80)
ResampleAudio(44100)

heres the info from bitrate viewer:
Num. of picture read: 26
Stream type: MPEG-2 MP@ML VBR
Resolution: 720*576
Aspect ratio: 16:9 Generic
Framerate: 25.00
Nom. bitrate: 9800000 Bit/Sec
VBV buffer size: 112
Constrained param. flag: No
Chroma format: 4:2:0
DCT precision: 10

anyone know where im going wrong??

cheeRS :)

Kika
17th March 2004, 10:38
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
mpeg2source("E:\VIDEO_TS\test.d2v")
SeparateFields().LanczosResize(720,208).Weave()
AddBorders(0,80,0,80)
ResampleAudio(48000)

This sould work.

You can't resize interlaced Video directly without deinterlacing it or separating the fields first.

Oh, and the important informations from Bitrateviewer are missing. Did you encode it interlaced or progressive?

J666RST
17th March 2004, 14:04
Num. of picture read: 26
Stream type: MPEG-2 MP@ML VBR
Resolution: 720*576
Aspect ratio: 16:9 Generic
Framerate: 25.00
Nom. bitrate: 9800000 Bit/Sec
VBV buffer size: 112
Constrained param. flag: No
Chroma format: 4:2:0
DCT precision: 10
Pic. structure: Frame
Field topfirst: Yes
DCT type: Frame
Quantscale: Nonlinear
Scan type: Alternate
Frame type: Interlaced
Notes:

Im using CCE 2.67.00.10

in quality options i use:
intra block DC precision: 10
block scanning: zigzag
select progressive flame lag

in video settings:

N/M= 4
untick DVD video compliant

leave everything else as it it (offset line 1)

tried your script Kika, but it was the same result :confused:

Kika
17th March 2004, 17:55
Your Video is interlaced. You have to use interlaced mode for re-encoding it.

J666RST
17th March 2004, 21:59
OK, i must be missing something obvious here - cant seem to find a interlaced mode on CCE?

cheers ;)

Matthew
17th March 2004, 23:30
Originally posted by J666RST
OK, i must be missing something obvious here - cant seem to find a interlaced mode on CCE?

Uncheck progressive frame flag...alternate scan order is also usually best for interlaced content.

And what about ConvertToYUY2(interlaced=true)??

J666RST
18th March 2004, 09:03
Originally posted by Matthew
Uncheck progressive frame flag...alternate scan order is also usually best for interlaced content.

And what about ConvertToYUY2(interlaced=true)??

nope, didnt work :confused:

it actually made it worse, it it encoded it with the deinterlaced lines :confused:

anyone else have any ideas? its drivin me potty!

cheers anyway

Gabrielgoc
18th March 2004, 15:19
Try with offset line = 0

regards

violao
19th March 2004, 16:58
Originally posted by J666RST
but when i try a dvd it comes out interlaced, like this:

I don't understand what's your final goal? Interlaced or progressive? If you plan to watch it on TV better leave it interlaced. Even if you watch on PC, software players will automatically deinterlace.

For interlaced encoding I think you need to set the order of fields (top or bottom first). If you really want it progressive then why not de-interlace in Avisynth prior to resizing/encoding?

And why do you resize and add borders anyway?

hendrix
20th March 2004, 19:21
i agree, if your target is television then dont deinterlace...deinterlacing may introduce ghosting...plus you cant see the combing effect on tv screens anyway

J666RST
20th March 2004, 19:53
Originally posted by violao
I don't understand what's your final goal? Interlaced or progressive? If you plan to watch it on TV better leave it interlaced. Even if you watch on PC, software players will automatically deinterlace.
all i wanted was to fit a 7.3gb dvd onto a 4.3 dvdr, the picture in my first post is what it looked like on my tv as well as bs player.

then trying Kika`s script i got interlaced lines when i played it on bs player but didnt test it on dvd as i thought it would come out like that on my telly?

not sure about that...

For interlaced encoding I think you need to set the order of fields (top or bottom first). If you really want it progressive then why not de-interlace in Avisynth prior to resizing/encoding?
hhmm thats what i ended up doing using this:
Telecide(order=1,guide=1,post=2,vthresh=30)

And why do you resize and add borders anyway?
im going by what i know about doing XviD encoding, as the film has black borders, i didnt want to waste bitrate encoding black borders, so am i wrong about that too?

this is my first dvd reencode so im still learning!

thanks for the help anyway :)

hendrix
21st March 2004, 02:13
Originally posted by J666RST
im going by what i know about doing XviD encoding, as the film has black borders, i didnt want to waste bitrate encoding black borders, so am i wrong about that too?

this is my first dvd reencode so im still learning!

thanks for the help anyway :)
have you tried using Gordon Knot?

insite
21st March 2004, 14:22
j666 - this is cake. you have to uncheck 'forced film' in dvd2avi before you make your d2v. set it to 'none' if it's a dvd or set it to 'swap field order' if it's DV tape.

violao
22nd March 2004, 10:18
Originally posted by J666RST
hhmm thats what i ended up doing using this:
Telecide(order=1,guide=1,post=2,vthresh=30)

Just to clear up things a little, is what you get interlaced or telecined? I'm asking since you mentioned Telecide filter (from decomb) that is used for inverse telecine, not for deinterlacing. Also your film apperas to be PAL (Bitrate viewer says 25 fps/interlaced). You should not use telecine filters for PAL sources.

RB
22nd March 2004, 16:28
OK, from what I've read in this thread, you are working with 16:9 PAL interlaced video. Since your target is DVD, you don't want to deinterlace this, it will only make quality worse.

First create the .D2V project with DVD2AVI, use the fixed version by Neuron2 ( http://www.avisynth.org/warpenterprises/files/decodefix100.zip ). Do not Force Film, leave everything at default.

Your next step is finding out whether it's TFF or BFF interlaced. PAL DVDs are almost always TFF, but let's make sure, read http://forum.doom9.org/showthread.php?s=&threadid=69870 and just use Mpeg2Source() instead of AVISource. If it turns out BFF, set "Offset Line" in CCE to 1, otherwise set to 0. Your AVS should now look like this
Mpeg2Source("E:\VIDEO_TS\test.d2v")
ConvertToYUY2(Interlaced=True)
AddAudio()
Make sure to use the AddAudio() snippet rather than ResampleAudio(), read the FAQ. Also do not resize your video. What you did was converting the 16:9 anamorphic video to 4:3 letterbox. Just don't resize and set aspect ratio to 16:9 in CCE.

Encode this in CCE with alternate scan (not ZigZag) and progressive frames off and you'll be fine. The fact that you see interlacing artifacts in your software player means it doesn't have a good, if any, deinterlacer. The artifacts will not be visible on your TV.

J666RST
27th March 2004, 05:10
thanks for the detailed help RB, thats cleared up a few things for me :)

cheers :D