Thracks
7th June 2005, 20:54
Hello everybody!
I guess this is the right section, but I'm not too sure. I've been playing around with encoding AVI to DVD lately, as I've gotten the AVI down myself a long time ago, and I thought maybe I would start working on encoding in the other direction.
I've been using a copy of Star Wars Episode V that I ripped for myself a while back. The basic stats for it are:
1406kbps video (XViD)
192kbps stereo AC3
640x288 (2.22:1)
If you gents need any other stats about the video (Such as how I encoded it), I'll be glad to post it.
Granted, I know converting from an original source to XViD back to DVD isn't the best idea in the world as it's lossy the entire way, but I don't think the errors introduced by this project are very typical.
Here's a shot of the original XViD frame. Looks pretty crisp, no glaring video artifacts...
XViD Source Frame (PNG) (http://thrax.warp1.net/StarWars(XViD).png)
Here it is again with the contrast turned way up to show the lack of artifacts in the frame. I also turned the contrast up because this problem only appears on a TV (Brighter black), or when you turn the contrast up on the video card's overlay to simulate a TV. Notice the black starfield is still very clean, looks great even.
High Contrast XViD Source Frame (PNG) (http://thrax.warp1.net/StarWars_High_Contrast(XViD).png)
Now here is the same frame captured from a normal contrast, and then again in a higher contrast.. This time the capture comes from the encoded MPEG:
MPEG Source Frame (PNG) (http://thrax.warp1.net/StarWars(MPEG).png)
High Contrast MPEG Source Frame (PNG) (http://thrax.warp1.net/StarWars_High_Contrast(MPEG).png)
Notice the hideous compression artifacting that appears all over the black? On a TV, it looks like bright green blobs swirling and jiggling around the screen. ANY time there's a scene with a high black content, this problem rears its head.. Throughout the opening credits crawl, in space scenes, so on and so forth. On bright images, the picture's just fine.
Now here's the lowdown of my encode. I'm using CCE SP and AviSynth v2.55.. I'm using this AVS:
Import("LimitedSharpen.avs")
LoadPlugin("H:\Programs\VCD\AviSynth 2.5\plugins\warpsharp.dll")
LoadPlugin("H:\Programs\VCD\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("H:\Programs\VCD\AviSynth 2.5\plugins\VagueDenoiser.dll")
AVISource("test.avi")
VagueDenoiser(threshold=0.8,method=1,nsteps=6,chromaT=0.8)
Limitedsharpen(ss_x = 1.5, ss_y = 2,dest_x = 720, dest_y = 320,strength = 300)
AddBorders(0, 80, 0, 80, $000000)
Just using Didee's limited sharpening and the appropriate plugins, and running the suggested denoising pass before the plugins do their thing. This script is loaded into CCE SP, and is processed with the following settings:
Multi-pass ES VBR mpeg2: 0-9532kbps, avg 4358
Picture complexity set to max difficult.
Top field first.
Open GOP.
Zigzag block scanning order.
Default quantization matrix.
Progressive flag.
Luminance 16-235.
Even when the scene is PURE BLACK, those ugly green/blue blocks are everywhere. I thought maybe that CCE might be at fault, so I ran the script through TMPGEnc too, and the result was exactly the same.
I've tried three different versions of AVISynth (2.55, 2.56 and the newest alpha). I've also tried forcing colourspaces (Input_Pixel=RGB), Converttoyuy2(). I've tried forcing the CIRC601 (I think that's what it is) luminance with the PC->TV commands, I've tried multiple versions of the XViD codec.. So on and so forth.
Even with the lossy conversion process, I can't image the result looking that bad. Anyone have any ideas?
//EDIT: I should note that even when the script was as basic as:
AVISource("test.avi")
Lanczos4REsize(720,320)
AddBorders(0, 80, 0, 80, $000000)
The problem was still there.
I guess this is the right section, but I'm not too sure. I've been playing around with encoding AVI to DVD lately, as I've gotten the AVI down myself a long time ago, and I thought maybe I would start working on encoding in the other direction.
I've been using a copy of Star Wars Episode V that I ripped for myself a while back. The basic stats for it are:
1406kbps video (XViD)
192kbps stereo AC3
640x288 (2.22:1)
If you gents need any other stats about the video (Such as how I encoded it), I'll be glad to post it.
Granted, I know converting from an original source to XViD back to DVD isn't the best idea in the world as it's lossy the entire way, but I don't think the errors introduced by this project are very typical.
Here's a shot of the original XViD frame. Looks pretty crisp, no glaring video artifacts...
XViD Source Frame (PNG) (http://thrax.warp1.net/StarWars(XViD).png)
Here it is again with the contrast turned way up to show the lack of artifacts in the frame. I also turned the contrast up because this problem only appears on a TV (Brighter black), or when you turn the contrast up on the video card's overlay to simulate a TV. Notice the black starfield is still very clean, looks great even.
High Contrast XViD Source Frame (PNG) (http://thrax.warp1.net/StarWars_High_Contrast(XViD).png)
Now here is the same frame captured from a normal contrast, and then again in a higher contrast.. This time the capture comes from the encoded MPEG:
MPEG Source Frame (PNG) (http://thrax.warp1.net/StarWars(MPEG).png)
High Contrast MPEG Source Frame (PNG) (http://thrax.warp1.net/StarWars_High_Contrast(MPEG).png)
Notice the hideous compression artifacting that appears all over the black? On a TV, it looks like bright green blobs swirling and jiggling around the screen. ANY time there's a scene with a high black content, this problem rears its head.. Throughout the opening credits crawl, in space scenes, so on and so forth. On bright images, the picture's just fine.
Now here's the lowdown of my encode. I'm using CCE SP and AviSynth v2.55.. I'm using this AVS:
Import("LimitedSharpen.avs")
LoadPlugin("H:\Programs\VCD\AviSynth 2.5\plugins\warpsharp.dll")
LoadPlugin("H:\Programs\VCD\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("H:\Programs\VCD\AviSynth 2.5\plugins\VagueDenoiser.dll")
AVISource("test.avi")
VagueDenoiser(threshold=0.8,method=1,nsteps=6,chromaT=0.8)
Limitedsharpen(ss_x = 1.5, ss_y = 2,dest_x = 720, dest_y = 320,strength = 300)
AddBorders(0, 80, 0, 80, $000000)
Just using Didee's limited sharpening and the appropriate plugins, and running the suggested denoising pass before the plugins do their thing. This script is loaded into CCE SP, and is processed with the following settings:
Multi-pass ES VBR mpeg2: 0-9532kbps, avg 4358
Picture complexity set to max difficult.
Top field first.
Open GOP.
Zigzag block scanning order.
Default quantization matrix.
Progressive flag.
Luminance 16-235.
Even when the scene is PURE BLACK, those ugly green/blue blocks are everywhere. I thought maybe that CCE might be at fault, so I ran the script through TMPGEnc too, and the result was exactly the same.
I've tried three different versions of AVISynth (2.55, 2.56 and the newest alpha). I've also tried forcing colourspaces (Input_Pixel=RGB), Converttoyuy2(). I've tried forcing the CIRC601 (I think that's what it is) luminance with the PC->TV commands, I've tried multiple versions of the XViD codec.. So on and so forth.
Even with the lossy conversion process, I can't image the result looking that bad. Anyone have any ideas?
//EDIT: I should note that even when the script was as basic as:
AVISource("test.avi")
Lanczos4REsize(720,320)
AddBorders(0, 80, 0, 80, $000000)
The problem was still there.