PDA

View Full Version : DVD source to Mpeg-4 @560kps


Razorholt
9th March 2007, 18:10
Hello,

I'm trying to encode a DVD to an MKV file at a low bitrates (560kbps) and 29.97 fps. For compressing I use MEGUI with the following AVS script:

MPEG2Source("C:\myvideo\VTS_01_1.d2v",info=3)
ColorMatrix(interlaced=true,hints=true)
assumetff
Telecide(1,guide=2,vthresh=10,blend=false)
BicubicResize(592,432,0,0.75)
Crop(16,32,-16,-32)
Blockbuster("noise",detail_max=100)


MEGUI code:
--pass 3 --bitrate 560 --stats ".stats" --ref 16
--mixed-refs --no-fast-pskip --bframes 3 --b-pyramid
--b-rdo --bime --weightb --direct auto --filter -3,-3
--subme 7 --trellis 2 --analyse all --8x8dct
--vbv-maxrate 25000 --me umh --merange 32
--threads auto --thread-input
--cqmfile "C:\Documents and Settings\Administrator\
My Documents\AVCMatrices\soulhunter_6of9.cfg"
--progress --no-dct-decimate --no-psnr --no-ssim
--output "" ""


The result is kinda washy. I have artifacts and ghost picture :(
I mean, I don't expect any superclean picture... but is there a script I can use to have the video more detailed?

I also tried and reduced the fps - down to 23.976 - but it became less flawless.


Sample coming up soon :)


Thanks,
- Dan

Mug Funky
10th March 2007, 05:02
what sort of source is it? if you're getting ghosting, maybe the input is PAL and thus not IVTC'able? (it may have been converted from NTSC to PAL, in which case it'll be interlaced and frames will be blended together - use restore24 or a similar "unblender" to fix that).

also, drop blockbuster - it's not needed, and will probably just make x264's job harder. it's not designed for codecs that perform internal de-blocking.

Blue_MiSfit
10th March 2007, 10:06
Also, your deblocking settings are very low for such a low bitrate target. Maybe stick with 0,0.

As Mug Funky said, we need more info about the source. You may not be IVTCing correctly. Try it with no CQM too.

Also, denoising is good.
FFT3dfilter or it's uberfast cousin fft3dgpu are great IMHO, especially with 2 separate calls for luma and chroma. I would do this before you resize, but that's just me.

~MiSfit

Razorholt
11th March 2007, 05:42
Thanks guys for your suggestions. I dropped Blockbuster(), set the deblock to 0:0 and used no matrix.

Better quality as a result :)

I've also changed my avisynth script to:

MPEG2Source("C:\Videoencode\VTS_01_1.d2v",info=3)
ColorMatrix(interlaced=true,hints=true)
assumetff
Telecide(1,guide=2,vthresh=10,blend=false)
a = FFT3DFilter(sigma=3, interlaced=false)
SeeSaw(a,NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Sdamplo=6, Szp=16)
LanczosResize(512,352)

btw, how can I create and upload a VOB sample?

Thanks,
- Dan

spanky123
12th March 2007, 05:10
btw, how can I create and upload a VOB sample?

You mean like encode to mpeg-2 ?
CCE - although that don't go straight to vob.
Procoder does though if you wanna use that.
There's a range of free tools too - that I'm unaware of.

If you wanna encode just a small part, then add
Trim(a,b)
to the script, where a = first frame
b = last frame

Is that what you wanted ?

Razorholt
12th March 2007, 05:17
well, I can upload a sample of the encoded file using trim(). I was asking about the source code... How can I get a sample without encoding?

Blue_MiSfit
12th March 2007, 05:26
nah you don't need to encode anything. Just use DGIndex to load up a VOB (any vob from the movie), select a small range, like a couple hundred frames, and then go file - > save and demux.

This will demux an M2V in that time range you selected. Host this with megaupload or some file hosting service. Then we can download it and help you :)

~MISfit

spanky123
12th March 2007, 05:46
Oh sorry. I forgot the source was dvd mpeg-2 already.

Do what bluemisfit said.

www.wikiupload.com is another good place to upload

Razorholt
12th March 2007, 16:35
Alrighty, here it is:

http://www.megaupload.com/?d=UN5ASNSG


Thanks A LOT for your help!

- Dan

foxyshadis
12th March 2007, 19:48
It's plain interlaced with no blending. :) It actually looks decent with Telecide, surprisingly, but it's really something you should use TDeint or LeakKernelDeint on. You probably won't get a good encoding at such a low bitrate without lowering the resolution a bit more, and dropping the noise generation - aim for a different matrix less prone to mild blocking instead.

Razorholt
12th March 2007, 20:07
Thanks foyshadis! What AVC matrix would you recommend? I already tried 6of9 but it looks better with no matrix at all :(

Blue_MiSfit
12th March 2007, 21:34
well right, 6of9 is a high detail matrix, so blocking would be assumed at lower bitrates.

I would stay stick with the built in matrix, or maybe try one of *.MP4 Guy's M4G series, one that's block-resistant.

~MiSfit

Razorholt
12th March 2007, 21:38
Alrighty... I'm off encoding like a dog!

Cheers,
- Dan

foxyshadis
12th March 2007, 21:57
Oh right, AVC, in that case ignore my mention of resolution and matrix. I was thinking xvid for some reason.