digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KDVD: How to fix these blocky scenes? (http://www.digitalfaq.com/archives/encode/14292-kdvd-how-fix.html)

hawk123 06-13-2006 06:08 AM

KDVD: How to fix these blocky scenes?
 
I have tried to compile 6 Hours DVD into a single DVDR.

Here is what I have done:
1) Rip the dvds into Harddisk.
2) Demux the movies into its elementary files (.m2v, ac3, .sup ) using PGCDemux.
3) Load the .m2v files into Virtualdub MPEG2 (latest version) and then frameserve it to TMPGEnc Plus.
4) In TMPGEnc Plus, I made some modifications to the standard DVD-NTSC (16:9) template that come with the program since I would like to keep the movie in 29.97kps, the following is the modifications I have done to the template:
a) MPEG Settings tab - Bitrate: 2195 kps
- Motion search precision: Highest Quality (Very slow)
b) Quantize matrix tab - using the matrix provided in the KVCD Official Specification for KVCD and KDVD.
5) Then, encoded. It tooks me about 3 ~ 4 hours for encoding a 50 min movie.

The output is however dissatisfied at some scenes. Examples are as follows:

Scene 1:
http://www.digitalfaq.com/archives/error.gif
Scene 2:
http://www.digitalfaq.com/archives/error.gif

As you can see, the scenes are blocky, especially when it come to a scene that has a mix of black and fire. What could be the problem?
Anyone know what is my problem please help me to solve it.

TQ in advance.

Dialhot 06-13-2006 06:59 AM

For me the defaults in your snapshots all lie on interlacing/pulldown issue.

All your process is wrong. IF you simply put the demuxed streams in virtualmod to frameserve tmpgenc, you are completly screwed up by the interlacing.

Maybe it's possible to set correctly tmgenc and virtualdub to deal correctly with that, but you should use DGIndex and a proper avisynth script (or simply use the d2v file as source in tmpgenc, it can use it).

Note: you won't put 6 hours of fullscreen material on a single disc. widescreen (letterboxed) may be but not fullscreen.

hawk123 06-13-2006 08:10 AM

TQ for the reply, Phil.

Yup, the movie is letterboxed.

Could it be done by just appliying deinterlaced filter in the Virtualdub or TMPGEnc?
The main reason I import the demuxed stream into virtualdub is that I'm a newbie and I have no any IT and script writing background. It already took me days just to try to write a proper and working avisynth scripts to do that. Second, I would like to add a logo on the movie and to have it appears on certain scenes. As I know Avisynth don't have any logo filter, but it can imports virtualdub logo filter into it. Again, its script is far more than what I can understand.

Is there any way to do this with a promising result?

rds_correia 06-13-2006 08:20 AM

Try to understand what Phil just said.
Get loose of VDub framserving.
Use DGIndex and AVISynth to properly frameserve your movie into Tmpgenc or any other software encoder.
In the mean time try to understand how AVISynth works.
With AVISynth you can always apply some filters to deinterlace your source.
Cheers

Dialhot 06-13-2006 08:54 AM

Quote:

Originally Posted by rds_correia
In the mean time try to understand how AVISynth works.

Or if you don't want to go there, as I said you can use the d2v file produced by DGIndex as source in tmpgenc.

For me the situation should be :
1/ the DVD is a pulled down movie : set DGIndex to "Force film", encode in tmpgenc in progressive (24 fps) and use pulldown.exe (or Dopulldown if you prefer or graphical interface). Then you will have a proper 29.97 stream to do you KDVD.

2/ altenatively, you can ask to tmgenc to do the pulldown by itself (use "29.970 (internally 23.976)" setting for output)

3/ or you source is trully interlaced, then you set DGIndex to "honor pulldown", and you encode in interlaced mode (29.970) in tmpgenc.

:arrow: but learning avisynth will be a much better idea ;)

Edit: the logo can also be dealed with avisynth, but not directly with tmpgenc.

hawk123 06-13-2006 10:08 AM

Thank you for all your replies.

I will try to work on Avisynth script writing.

Boulder 06-14-2006 04:19 AM

2195 kbps is also very little for a complex scene, like scenes with fire are.

supermule 06-19-2006 01:27 AM

Quote:

Originally Posted by Boulder
2195 kbps is also very little for a complex scene, like scenes with fire are.

with low BR's try using autoqmatenc with QmatOp as active.

Dialhot 06-19-2006 03:08 AM

Quote:

Originally Posted by supermule
with low BR's try using autoqmatenc with QmatOp as active.

Please, KVCD dealed with low bitrate YEARS before libav codec derived craps came to life. And BTW 2200 is really not a low bitrate, I'm doing KDVD with such bitrate right now with absolutly no problem, and no blocks (not in fullscreen nevertheless).

Sagittaire 06-19-2006 06:40 AM

Well 2200 is average bitrate for this movie. IMO MPEG2 use certainely very higher local bitrate for this specific scene. But don't forget that for very complexe and long high motion scence (like fire or water motion) even 9 Mbps for average can not help. Probleme here is simply vbv saturation for DVD standard ... and not MPEG2 itself (libavcodec, CCE or other MPEG2 encoder will not solve this problem simply because quantizer is very high to respect vbv specifications)

supermule 06-20-2006 01:48 AM

Quote:

Originally Posted by Sagittaire
simply because quantizer is very high to respect vbv specifications)

Thats why I said enable QmatOp, its optimizing the matrix based on video.

gamma 06-22-2006 01:42 AM

I think the best shot is to use HCenc with the notch.
Qmatop function is a nice initiative, but for lower bitrate encodes the notch is just always better IMO.

supermule 06-22-2006 08:13 AM

Quote:

Originally Posted by gamma
I think the best shot is to use HCenc with the notch. Qmatop function is a nice initiative, but for lower bitrate encodes the notch is just always better IMO.

I disagree to this, with QmatOp, AQM can go way below than HCenc and results are better.

gamma 06-22-2006 08:18 AM

Quote:

Originally Posted by supermule
Quote:

Originally Posted by gamma
I think the best shot is to use HCenc with the notch. Qmatop function is a nice initiative, but for lower bitrate encodes the notch is just always better IMO.

I disagree to this, with QmatOp, AQM can go way below than HCenc and results are better.

That's interesting, seems like I have to do some tests :)
What version are you using?

supermule 06-26-2006 02:53 AM

Quote:

Originally Posted by gamma
Quote:

Originally Posted by supermule
Quote:

Originally Posted by gamma
I think the best shot is to use HCenc with the notch. Qmatop function is a nice initiative, but for lower bitrate encodes the notch is just always better IMO.

I disagree to this, with QmatOp, AQM can go way below than HCenc and results are better.

That's interesting, seems like I have to do some tests :)
What version are you using?

AQM 0.33.0.4, I saw that the 0.33.0.5 has some problems with dark movies(as per AQM forum), as a new routine has been introduced in the latest ver, and it hasnt worked as expected.


All times are GMT -5. The time now is 04:24 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.