Log in

View Full Version : 1 disc matrix


SuperFly76
19th June 2005, 17:18
Hello all!
This is my first post in the forum but I have been lurking around doom9 for over a year. I guess I just never had any questions before.

I would like to learn more about using quantum matrices in xvid. I encode my dvds for viewing on my Palm Tungsten t3. screen resolution is 480x320. most of my movies are wide screen so I end up resizing them to 480x208. I use the TCPMP media player for playing movies on the palm.

I'll give you a quick rundown of my normal encoding process:

SmartRipper for ripping dvds
DGIndex for demuxing ac3 and frameserving to AVISynth
AVISynth 2.5 with the following script (fine tuned for each movie):

MPEG2Source("H:\vts_01.d2v",cpu=4)

#Telecide(order=1,post=2,blend=false,vthresh=30,back=1)
#Decimate(cycle=5,mode=3,quality=3)
#Trim(1600,2430)
#ConvertToYV12()

Crop(2,60,-2,-64)
#BilinearResize(480,208)
#BicubicResize(480,208)
LanczosResize(480,208)

#BicublinResize(480,208)
#Lanczos4Resize(480,208)
#Info()

Tweak(sat=1.1,bright=20,cont=1.3)
ColorYUV(levels="TV->PC")

FluxSmoothST()
#TemporalCleaner(ythresh=3,cthresh=8)
#TemporalSoften(2,7,7,scenechange=3)

Deen("c3d")
#Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
#msmooth(threshold=6,strength=4)

I have left in some commented out filters because I will use them if the source requires it. This is my general script.

I use AVS to AVIDrop to encode the video.
My xvid settings are
2 pass
AS@L5
Adaptive Quantization
B-VOPs
Max consecutive B-VOPs 2
Packed Bitstream

Motion search precision 6-ultra high
VQH Mode 4-wide search
Use VHQ for B-frames too
Use Chroma Motion

Trellis Quantization


Since I only watch the movies on my palm I have encoded the audio file into the ogg vorbis format with the dolby headphone 5.1 surround effect from my video software using Graph Edit. I use quality 4 in vorbis which gives me an ogg soundtrack around 110MB.

I have a 1gb card for my palm so I try to shoot for 480MB per movie. Since the soundtrack is around 110MB i am left with 370MB for the Xvid encoded video.

I use Virtual Dub Mod to mux the avi file and the ogg soundtrack into a .mkv file for viewing on my palm.

I have had great results so far but I feell that the next area fo improvement will come by using custom matrices.

Any advice will be greatly appreciated.

To recap I am using 2 pass Xvid
My resolution is 480x320 but most movies are 480x208 (widescreen)
I have about 370MB for the video (video only. Does not include sound)
What would be the best custom matrices for me to try out?

:thanks:

Oh... Before I get any replies about using the search. Yes. I have searched extensively about using custom matrices for this resolution and bitrate but haven't found anything relevant.

SuperFly76
20th June 2005, 13:47
Anyone?...

Well I have tried Jawor's 1 CD matrix and I like the results. Is there another one that works better than this one?

Sharktooth
20th June 2005, 15:15
Try EQM V3ULR also (in my signature).

SuperFly76
21st June 2005, 01:30
Thanks!
I'll try it tonight

SuperFly76
23rd June 2005, 00:41
I encoded LOTR - Two Towers using Jawor's 1 CD matrix and EQM V3ULR matrix. I found that for that particular movie EQM V3ULR matrix has a lot of blocking and artifacts especialy in the dark scenes. Are there any other 1 CD matrices out there? I would like to try a few more.

feedback
23rd June 2005, 05:56
This zip folder Here (http://forum.doom9.org/attachment.php?attachmentid=4081) has many matrices, some are self explanatory such as "Angel SVCD 1 CD 2.35 avg800 max1500". You may find something you like.

Regards,:)

Koepi
23rd June 2005, 06:16
Please re-read the forum rules!

a) thread bumping (we don't like that here)
b) "what's best"-question (we so don't like that here)

Didée
23rd June 2005, 09:28
I have a 1gb card for my palm so I try to shoot for 480MB per movie.

---

I encoded LOTR - Two Towers ...
You did not try to encode TTT to 480 MB, minus ~160MB for a Q4 5.1 Vorbis soundtrack, no??? You'd come out in the range of ~260kbps for video, wich is definetly too low.

In your scenario, I doubt you will get any noticeable improvement by using another quantization matrix then Jawor1CD or EQMV3ULR. What you have to tweak more is mostly the video filtering, and perhaps some XviD settings (using CC will give more bits to dark scenes).

Sharktooth
23rd June 2005, 13:14
Also ensure you enabled Trellis and check if disabling Adaptive quantization helps in dark scenes.

yaz
23rd June 2005, 14:17
- afaik, TTT is pretty clear. why that 'heavy' filtering ? if it's really needed, i'd rather make it before resizing.
- it's not a '1cd movie'. if that size is really needed i'd downscale much more.
- isn't it possible to split the movie somehow ? would be a better solution.

the bests
y

Teegedeck
23rd June 2005, 14:37
Simply use Gordian Knot to determin an appropriate resolution... ...and let us know what it is. :D

SuperFly76
23rd June 2005, 15:51
You did not try to encode TTT to 480 MB, minus ~160MB for a Q4 5.1 Vorbis soundtrack, no??? You'd come out in the range of ~260kbps for video, wich is definetly too low.

In your scenario, I doubt you will get any noticeable improvement by using another quantization matrix then Jawor1CD or EQMV3ULR. What you have to tweak more is mostly the video filtering, and perhaps some XviD settings (using CC will give more bits to dark scenes).


I meant to type 480 per dvd. TTT is on 2 DVDs so it comes to 960MB for the whole movie.

SuperFly76
23rd June 2005, 15:56
Actually I am very happy with jawor's 1 disc matrix. I just thought that there might be an even better way. I wasn't aware that I was bumping when I edited my title. I just thought that the title was a little misleading and wanted to change it to a more appropriate one. It seems that I have offended people by doing so. I will re-edit it to comply with the rules. Unfortunately there isn't a lot of info on current matrices. I thought that the smart thing would be to post here and be sure that I am using the most up to date technology.

Koepi
23rd June 2005, 17:35
Nah, no offense taken here. It's just that for a very good reason we have a rule against "what's best"-questions - those are very subjective and can't hold up for general cases.

Also, if noone answers you after a day, don't post "anyone?" - that's thread bumping.

I'm glad you found the _best solution for you_. This isn't necesarily the best for everyone and every scenario though :)

Cheers
Koepi