n1ck0s
14th March 2004, 13:25
I’m currently backing up "Meet Joe Black" and I had some issues w/ jerky playback. Although I don’t think it’s a Progressive/Interlaced or TFF/BFF thing, I believe it’s a good opportunity to clarify some things. Hopefully this thread can be some sort of guide of others.
The movie is a really simple one:
VTS_01 -> Main Movie
VTS_02 -> Extra stuff
VTS_03 -> Theatrical Trailer
From these three I THINK only VTS_02 is Interlaced (I’ll explain that latter).
Doing the DIF4U stuff I get:
Analyzing Video… Header Flag="Proggresive/TFF", Analysis="Interlaced/TFF"
, for all three of them VTSs, thus:
VTS__01_P01.I-BFF.16~9_1.AVS
VTS__02_P01.I-BFF.4~3_1.AVS
VTS__03_P01.I-BFF.16~9_1.AVS
I am aware that DIF4U cannot determine that info correctly but opening the corresponding .avs scripts:
VTS_01
import("C:\Program Files\DoItFast4U\new.avs\addaudio.avs")
LoadPlugin("C:\Program Files\DoItFast4U\new.d2v\mpeg2dec3dg.dll")
Mpeg2Source("VTS__01_P01.I-BFF.16~9_1.d2v",idct=0)
LoadPlugin("C:\Program Files\DoItFast4U\new.avs\decomb.dll")
FieldDeinterlace()
AddAudio()
ConvertToYUY2(interlaced=true)
VTS_02 & VTS_03
import("C:\Program Files\DoItFast4U\new.avs\addaudio.avs")
LoadPlugin("C:\Program Files\DoItFast4U\new.d2v\mpeg2dec3dg.dll")
Mpeg2Source("…",idct=0)
AddAudio()
ConvertToYUY2(interlaced=true)
QUESTION #1: How exactly does DIF4U work here? Since all files are named I-BFF (analyzed as Interlaced) why the first .avs script is different from the other two? Why VTS_02 and VTS_03 are not being Deinterlaced?
QUESTION #2: In order to find out if VTS_01 is Interlaced or not I should delete the FieldDeinterlace() line first and then open .avs w/ media player, right?
POSSIBLE ANSWER: If FieldDeinterlace() is absent, opening .avs script w/ Media layer Classic, someone should be able to spot the "comb" effect rather easily. Even if FieldDeinterlace() is there, certain artifacts remain
I open all three .avs scripts w/ media player classic. VTS_01 looks ok (I think it should look ok anyhow since there is the Deinterlaced function present). Deleting the lines:
LoadPlugin("C:\Program Files\DoItFast4U\new.avs\decomb.dll") FieldDeinterlace()
, seems to have no effect on the stream, thus we are most likely dealing w/ Progressive material (which is true for the main movie of most PAL disks).
QUESTION #3: Should I then delete those two lines for VTS_01 (since they are not needed of course)? Won’t encoding be slower with those lines present even though they probably don’t have any other side-effects?
POSSIBLE ANSWER: Deinterlacing does make encoding slower. It seems that it doesn't effect encoding quality, when material is progressive, but its not needed it shouldn't be there.
Opening .avs for VTS_02, I can clearly see the "comb" effect, especially during scene changes.
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229790/0/1.jpg
Adding lines:
LoadPlugin("C:\Program Files\DoItFast4U\new.avs\decomb.dll")
FieldDeinterlace()
, result to this
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229791/0/2.jpg
Things are better, "comb" effect is mostly gone (some artifacts are still there). "Ghosting" on the other hand (or at least what I THINK "ghosting" is) is still present.
QUESTION #4: Will these artifacts effect encoding? IS there "ghosting" in the above picture or I’ve the wrong impression of what "ghosting" is? If it IS "ghosting" wasn’t FieldDeinterlace() enough to handle the interlaced material?
POSSIBLE ANSWER: These artifacts DO ramain after encoding if FieldDeinterlace() is used. The "ghosting" effect however disappeares if FieldDeinterlace(blend=false) is used instead. Moreover, using the Telecide() function insteaf of FieldDeinterlace() seems to do a better job (no artifacts or ghosting).
Opening .avs for VTS_03 has the same behavior as the VTS_01 script
Next, I launch BatchCCEWS. Three jobs for BatchCCEWS, all three w/ "TFF" and "Progressive" settings checked.
QUESTION #5: Why Progressive? Weren’t they analyzed as Interlaced (even if the analysis was wrong)? "BFF" in the file names means TFF for some reason but why the "I" is ignored?
POSSIBLE ANSWER: Its a BatchCCEWS fault.
I go ahead and encode w/ several setting configs
1. Original AVS script (w/o De-interlacing) and Original encoding settings (Progressive, TFF, ZigZag)
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229792/0/3.jpg
2. Original AVS script (w/o De-interlacing) and "Interlaced", "TFF", "ZigZag" encoding settings
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229793/0/4.jpg
3. Original AVS script (w/o De-interlacing) and "Interlaced", "TFF", "Alternate Scan" encoding settings
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229794/0/5.jpg
4. AVS script w De-interlacing and Original encoding settings (Progressive, TFF, ZigZag)
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229795/0/6.jpg
Probably these snapshots don’t make a good example, but these are the conclusions I made:
1. I though that messing w/ the Progressive/Interlaced settings would have a MAJOR effect but it didn’t.
2. The TFF/BFF CAN have a major effect, but only on a TV screen
3. Un-checking "Progressive" for this interlaced material, did make a difference which could be greater if more passes where used for the encoding.
4. Encoding w/ the Deinterlace function retained those artifacts spotted earlier.
QUESTION #6: Can the "ghosting" be eliminated? It seems I couldn’t make it go away :).
POSSIBLE ANSWER: Look QUESTION #4.
QUESTION #7: Should I use FieldDeinterlace() at any occasion? I am not happy w/ its results.
POSSIBLE ANSWER: Look QUESTION #4.
QUESTION #8: I am using CCE v2.67.0.0.11. Has this anything to do w/ my results?
Everyone is welcome to answer any of my questions (hopefully all :) or comment on my conclusions. When I find answers to all of my questions, I’ll make a guide/faq out of this thread. I think it could be useful.
</n1ck0s>
The movie is a really simple one:
VTS_01 -> Main Movie
VTS_02 -> Extra stuff
VTS_03 -> Theatrical Trailer
From these three I THINK only VTS_02 is Interlaced (I’ll explain that latter).
Doing the DIF4U stuff I get:
Analyzing Video… Header Flag="Proggresive/TFF", Analysis="Interlaced/TFF"
, for all three of them VTSs, thus:
VTS__01_P01.I-BFF.16~9_1.AVS
VTS__02_P01.I-BFF.4~3_1.AVS
VTS__03_P01.I-BFF.16~9_1.AVS
I am aware that DIF4U cannot determine that info correctly but opening the corresponding .avs scripts:
VTS_01
import("C:\Program Files\DoItFast4U\new.avs\addaudio.avs")
LoadPlugin("C:\Program Files\DoItFast4U\new.d2v\mpeg2dec3dg.dll")
Mpeg2Source("VTS__01_P01.I-BFF.16~9_1.d2v",idct=0)
LoadPlugin("C:\Program Files\DoItFast4U\new.avs\decomb.dll")
FieldDeinterlace()
AddAudio()
ConvertToYUY2(interlaced=true)
VTS_02 & VTS_03
import("C:\Program Files\DoItFast4U\new.avs\addaudio.avs")
LoadPlugin("C:\Program Files\DoItFast4U\new.d2v\mpeg2dec3dg.dll")
Mpeg2Source("…",idct=0)
AddAudio()
ConvertToYUY2(interlaced=true)
QUESTION #1: How exactly does DIF4U work here? Since all files are named I-BFF (analyzed as Interlaced) why the first .avs script is different from the other two? Why VTS_02 and VTS_03 are not being Deinterlaced?
QUESTION #2: In order to find out if VTS_01 is Interlaced or not I should delete the FieldDeinterlace() line first and then open .avs w/ media player, right?
POSSIBLE ANSWER: If FieldDeinterlace() is absent, opening .avs script w/ Media layer Classic, someone should be able to spot the "comb" effect rather easily. Even if FieldDeinterlace() is there, certain artifacts remain
I open all three .avs scripts w/ media player classic. VTS_01 looks ok (I think it should look ok anyhow since there is the Deinterlaced function present). Deleting the lines:
LoadPlugin("C:\Program Files\DoItFast4U\new.avs\decomb.dll") FieldDeinterlace()
, seems to have no effect on the stream, thus we are most likely dealing w/ Progressive material (which is true for the main movie of most PAL disks).
QUESTION #3: Should I then delete those two lines for VTS_01 (since they are not needed of course)? Won’t encoding be slower with those lines present even though they probably don’t have any other side-effects?
POSSIBLE ANSWER: Deinterlacing does make encoding slower. It seems that it doesn't effect encoding quality, when material is progressive, but its not needed it shouldn't be there.
Opening .avs for VTS_02, I can clearly see the "comb" effect, especially during scene changes.
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229790/0/1.jpg
Adding lines:
LoadPlugin("C:\Program Files\DoItFast4U\new.avs\decomb.dll")
FieldDeinterlace()
, result to this
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229791/0/2.jpg
Things are better, "comb" effect is mostly gone (some artifacts are still there). "Ghosting" on the other hand (or at least what I THINK "ghosting" is) is still present.
QUESTION #4: Will these artifacts effect encoding? IS there "ghosting" in the above picture or I’ve the wrong impression of what "ghosting" is? If it IS "ghosting" wasn’t FieldDeinterlace() enough to handle the interlaced material?
POSSIBLE ANSWER: These artifacts DO ramain after encoding if FieldDeinterlace() is used. The "ghosting" effect however disappeares if FieldDeinterlace(blend=false) is used instead. Moreover, using the Telecide() function insteaf of FieldDeinterlace() seems to do a better job (no artifacts or ghosting).
Opening .avs for VTS_03 has the same behavior as the VTS_01 script
Next, I launch BatchCCEWS. Three jobs for BatchCCEWS, all three w/ "TFF" and "Progressive" settings checked.
QUESTION #5: Why Progressive? Weren’t they analyzed as Interlaced (even if the analysis was wrong)? "BFF" in the file names means TFF for some reason but why the "I" is ignored?
POSSIBLE ANSWER: Its a BatchCCEWS fault.
I go ahead and encode w/ several setting configs
1. Original AVS script (w/o De-interlacing) and Original encoding settings (Progressive, TFF, ZigZag)
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229792/0/3.jpg
2. Original AVS script (w/o De-interlacing) and "Interlaced", "TFF", "ZigZag" encoding settings
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229793/0/4.jpg
3. Original AVS script (w/o De-interlacing) and "Interlaced", "TFF", "Alternate Scan" encoding settings
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229794/0/5.jpg
4. AVS script w De-interlacing and Original encoding settings (Progressive, TFF, ZigZag)
http://briefcase.pathfinder.gr/download/n1ck0s/18285/229795/0/6.jpg
Probably these snapshots don’t make a good example, but these are the conclusions I made:
1. I though that messing w/ the Progressive/Interlaced settings would have a MAJOR effect but it didn’t.
2. The TFF/BFF CAN have a major effect, but only on a TV screen
3. Un-checking "Progressive" for this interlaced material, did make a difference which could be greater if more passes where used for the encoding.
4. Encoding w/ the Deinterlace function retained those artifacts spotted earlier.
QUESTION #6: Can the "ghosting" be eliminated? It seems I couldn’t make it go away :).
POSSIBLE ANSWER: Look QUESTION #4.
QUESTION #7: Should I use FieldDeinterlace() at any occasion? I am not happy w/ its results.
POSSIBLE ANSWER: Look QUESTION #4.
QUESTION #8: I am using CCE v2.67.0.0.11. Has this anything to do w/ my results?
Everyone is welcome to answer any of my questions (hopefully all :) or comment on my conclusions. When I find answers to all of my questions, I’ll make a guide/faq out of this thread. I think it could be useful.
</n1ck0s>