digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   To crop or not to crop! (http://www.digitalfaq.com/archives/encode/1841-crop-crop.html)

SansGrip 12-20-2002 12:58 AM

2h45m to go... I MUST NOT EVEN CONSIDER STAYING UP UNTIL IT'S DONE ;) :D 8O :? 8)

kwag 12-20-2002 01:06 AM

1 hour, 49 minutes to go here on "Red Planet" using this script:

Code:

LoadPlugin("C:\encoding\MPEG2DEC.dll")
LoadPlugin("C:\encoding\fluxsmooth.dll")
LoadPlugin("C:\encoding\blockbuster.dll")
LoadPlugin("C:\encoding\legalclip.dll")
mpeg2source("K:\RED_PLANET\VIDEO_TS\red.d2v")
LegalClip()
BilinearResize(672,352,16,0,688,480)
FluxSmooth()
Blockbuster( method="noise", detail_min=1, detail_max=10, variance=.5, seed=1 ) # Apply noise if complexity is <= 10%.
AddBorders(16,64,16,64)
LegalClip()

Target is 704x480. Using CQ_VBR of 7.45 for this test. Predicted file size is 726,703KB for video. Current size: 461MB at 64% encode.

I'm pretty sure I will stay awake. I just have to see the result :lol:
If final result is on target, then the 50/48 is a hit, and I can go to sleep in peace :D

-kwag

muaddib 12-20-2002 01:27 AM

I would love to stay and see the results!
But it's 4:20am and it's the second time my wife gets in here... you could guess her temper... :x
So, I’m going to sleep.
Hope that tomorrow I'll read that you went to sleep in peace. :wink:

kwag 12-20-2002 01:49 AM

Current file size 564,352KB at 79%. Wanted file size: 726,703KB. One hour to go :!:

SansGrip 12-20-2002 01:49 AM

Ok, last post then it's bed ;).

1h55m to go on Untouchables, currently at 46% and 303mb. (100 / 46) * 303 = 658, 658 + 109 = 767, 767 * (2048 / 2018) = 779mb. Predicted size: 803mb.

Looks like it's going to be off by about 20mb :?.

I'll let you know in the morning. Night all :).

SansGrip 12-20-2002 01:50 AM

Quote:

Originally Posted by kwag
Current file size 564,352KB at 79%. Wanted file size: 726,703KB. One hour to go :!:

:lol:

Cross-posted again ;).

kwag 12-20-2002 01:54 AM

Minds in sync :wink:

Good night!,
-kwag

kwag 12-20-2002 01:57 AM

Quote:

Originally Posted by SansGrip
Ok, last post then it's bed ;).

1h55m to go on Untouchables, currently at 46% and 303mb. (100 / 46) * 303 = 658, 658 + 109 = 767, 767 * (2048 / 2018) = 779mb. Predicted size: 803mb.

Looks like it's going to be off by about 20mb :?.

Not really. It's not linear. Hopefully it'll be on target in the morning :D

-kwag

Boulder 12-20-2002 01:58 AM

What - sleep? Just got up an hour ago..

So, what's the prediction script now? If I use

IL = Framecount / 50
SL = round(Framerate) * 2
SelectRangeEvery(IL, SL)

as SansGrip wrote, the sample is total 2507 frames, is this correct?

I decided that I'll try encoding Patton at 528x576 to see how it comes out. I'm sure it will look awesome, the source is very good. Thank God they put the extras on another disc :wink:

kwag 12-20-2002 02:06 AM

Quote:

Originally Posted by Boulder
What - sleep? Just got up an hour ago..

You just got up, and I'm trying to stay awake 8O. It's 3:00AM here.

Quote:

So, what's the prediction script now? If I use

IL = Framecount / 50
SL = round(Framerate) * 2
SelectRangeEvery(IL, SL)

as SansGrip wrote, the sample is total 2507 frames, is this correct?

Yep :D

-kwag

Boulder 12-20-2002 02:13 AM

I'm sure you'll get your well-earned rest in a short while - let's hope the file size is on target!

This is what I love about this site. People are just too excited to go to bed early if there is anything that they still want to do. I'm just like that too but my wife doesn't like it so I get a sour face every now and then. Then I'll just show her a new KVCD movie and happy again 8)

Edit: just started encoding the movie, CQ_VBR at 11,7. The predicted size for the sample was 14,66MB and the encoded one was 14,65. In a bit less than six hours we'll see if it's jackpot time :D

SansGrip 12-20-2002 02:24 AM

Quote:

Originally Posted by kwag
Not really. It's not linear. Hopefully it'll be on target in the morning :D

1h20m to go, 62% and 413mb done, extrapolates to 786mb final size up from 779mb a little while ago. Looks like you might be right :).

Goodnight for real this time :D.

SansGrip 12-20-2002 02:25 AM

Quote:

Originally Posted by Boulder
This is what I love about this site. People are just too excited to go to bed early if there is anything that they still want to do.

Who can sleep when there's a concept to prove? :mrgreen:

kwag 12-20-2002 02:28 AM

Quote:

Originally Posted by Boulder
I'm sure you'll get your well-earned rest in a short while - let's hope the file size is on target!

This is what I love about this site. People are just too excited to go to bed early if there is anything that they still want to do. I'm just like that too but my wife doesn't like it so I get a sour face every now and then. Then I'll just show her a new KVCD movie and happy again 8)

If you can find a wife that likes it, let me know :mrgreen: ( Just kidding! )

Report: Current size: 656,512KB at 91% done. Estimated target size: 726,703KB. ~23 minutes to go.

-kwag

SansGrip 12-20-2002 02:30 AM

I'm leaving my chair now :P

kwag 12-20-2002 02:33 AM

Quote:

Originally Posted by SansGrip
I'm leaving my chair now :P

You're going to miss the fun part :D

-kwag

kwag 12-20-2002 02:34 AM

Report: Current size: 679,040KB at 94% done. Estimated target size: 726,703KB. ~16 minutes to go.

kwag 12-20-2002 02:48 AM

Report: Current size: 707,392KB at 98% done. Estimated target size: 726,703KB. ~3:43 minutes to go. :mrgreen:

kwag 12-20-2002 03:02 AM

Report: FINISHED Red Planet! Final size: 715,978KB. Estimated target size: 726,703KB. :D

And I CAN NOT BELIEVE MY EYES ON THIS ONE. Here's the complete predicted sample for "The Green Mile" predicted to fit on ONE CD-R with the new GOP that I started on my other machine! We'll see tomorrow if the final file size is as calculated.
Here it is: http://www.kvcd.net/test.m1v

I only used FluxSmooth() and LegalClip() on this one :wink:
Edit: That's what the COMPLETE 180 minute movie will look on ONE CD-R :lol:

Now I can sleep :lol:

-kwag

syk2c11 12-20-2002 06:16 AM

Hi Kwag,
180 mins in ONE CD-R? Are we talking about 704x480 with GOP (1-12-2-1-24) with Flux and LegalClip filters?? What is the value of CQ_VBR?

Jellygoose 12-20-2002 08:33 AM

Give us a sample of the new Red Planet Encode kwag!! :D

SansGrip 12-20-2002 10:03 AM

Quote:

Originally Posted by kwag
Report: FINISHED Red Planet! Final size: 715,978KB. Estimated target size: 726,703KB. :D

Not bad! What's that in terms of accuracy percentage?

Quote:

And I CAN NOT BELIEVE MY EYES ON THIS ONE. Here's the complete predicted sample for "The Green Mile" predicted to fit on ONE CD-R with the new GOP that I started on my other machine!
I can't believe it either -- it looks better than a regular VCD! What template did you use? What CQ_VBR?

Boulder 12-20-2002 10:06 AM

I've now finished the test. It seems that the final file size was ~50MB less than predicted, but I think that the length and complexity of the movie played a part there along with the large resolution (528x576). The permanent subs in the black border area didn't help the work either :wink:

Quality is simply excellent. No visible blocks even when looking on the computer display. I must say that I'm lost for words.

Next step: burn and watch the movie again!

Here's the script I used:

LoadPlugin("c:\windows\system\mpeg2dec.dll")
LoadPlugin("c:\windows\system\fluxsmooth.dll")
LoadPlugin("c:\windows\system\legalclip.dll")
LoadPlugin("c:\windows\system\dctfilter_yuy2.dll")
LoadPlugin("e:\windows\system32\vobsub.dll")
LoadPlugin("c:\windows\system\blockbuster.dll")
MPEG2Source("e:\temp\leffat\patton\patton.d2v")
Crop(2,82,-2,-72)
LegalClip()
BicubicResize(496,288,0,0.6)
FluxSmooth(4,7)
Blockbuster( method="noise", variance=1, seed=5823 )
AddBorders(16,144,16,144)
VobSub("e:\temp\leffat\patton\vts_01_0")
DCTFilter(1,1,1,1,1,1,0.5,0)
LegalClip()

CQ_VBR was 11,7.

SansGrip 12-20-2002 10:11 AM

Here are my results from the overnight encode with the 50/48 formula... Predicted size: 803mb, final size: 784mb, difference: 19mb.

That's quite a shortfall, so in a moment I'm going to try reencoding with 100/48, but first I want to run an experiment...

kwag 12-20-2002 10:12 AM

Quote:

Originally Posted by syk2c11
Hi Kwag,
180 mins in ONE CD-R? Are we talking about 704x480 with GOP (1-12-2-1-24) with Flux and LegalClip filters?? What is the value of CQ_VBR?

No no :D , that's the LBR sample, 352x240 of "The Green Mile". The CQ_VBR for that is 15.21. I'm still encoding that in a slow ( Celeron 1Ghz ) machine. It's now 483MB at 70% done and wanted predicted final size is 662MB. So it's right on track for a correct destination size :D

-kwag

kwag 12-20-2002 10:25 AM

Quote:

Originally Posted by Jellygoose
Give us a sample of the new Red Planet Encode kwag!! :D

Here ya go :D : http://www.kvcd.net/rclip2.m1v
Cut out from actual final .m1v which is 715,978KB.
Uploading now. Give it 3 minutes before downloading. File size ~5.9MB.

-kwag

kwag 12-20-2002 10:36 AM

Quote:

Originally Posted by SansGrip
Quote:

Originally Posted by kwag
Report: FINISHED Red Planet! Final size: 715,978KB. Estimated target size: 726,703KB. :D

Not bad! What's that in terms of accuracy percentage?

98.524156360989289985042032302055 % :D

Quote:

And I CAN NOT BELIEVE MY EYES ON THIS ONE. Here's the complete predicted sample for "The Green Mile" predicted to fit on ONE CD-R with the new GOP that I started on my other machine!

Quote:

I can't believe it either -- it looks better than a regular VCD! What template did you use? What CQ_VBR?

KVCD LBR, CQ_VBR=15.21

And now I have a suggestion, something we should use as a rule of thumb. In theory, the longer the movie, the more snapshots should be taken to maintain the same accuracy. So let's do this: Let's take 30 snapshots per every hour of video. For a two hour movie, that would be 60, 90 for a three hour etc. I was probably lucky on "The Green Mile" with 50/48 and maybe I should have done 90/48 because it's a three hour movie. Just a thought :!:

-kwag

kwag 12-20-2002 10:40 AM

Quote:

Originally Posted by SansGrip
Here are my results from the overnight encode with the 50/48 formula... Predicted size: 803mb, final size: 784mb, difference: 19mb.

That's quite a shortfall, so in a moment I'm going to try reencoding with 100/48, but first I want to run an experiment...

Hi SansGrip,

That's still below 3%, so that's very good :D

-kwag

SansGrip 12-20-2002 10:44 AM

Quote:

Originally Posted by kwag
That's still below 3%, so that's very good :D

What I'm experimenting with is compensating within KVCDP for the system stream, and encoding my sample strips as an elementary video stream. That way I can remove the *.mpg option from the "select your sample strip" file dialog, which will rule out anyone accidentally selecting a system stream with audio, or whatever.

After that I'm going to try your suggestion of 30 samples per hour to see if that gets me closer :).

acidfire 12-20-2002 10:46 AM

Just two questions:
1. Where can you download the .dll files you guys are useing?
2. I know I read some were in the forum that some poeple can't run the preditor. What if you can't run the file preditor? Do you just use fitcd with the .dll's then just run tmpg with your new template?
Thanks for the help.:lol:

kwag 12-20-2002 10:46 AM

Forgot to mention that I encoded all movies as "ES (Video only)" with TMPEG 2.59. All sample calculations were done the same way.

-kwag

syk2c11 12-20-2002 11:07 AM

Just for your information, I just finished "Minority Report" at 704x480, CQ_VBR=9.5, the actual file size is 1358.183KB; the predicted file size=1421.364KB. So the factor is 0.95555. I paste the script manually in FitCD as follows:

IL = Framecount / 50
SL = round(Framerate) * 2
SelectRangeEvery(IL, SL)

Was it within average??

kwag 12-20-2002 11:10 AM

Quote:

Originally Posted by syk2c11
Just for your information, I just finished "Minority Report" at 704x480, CQ_VBR=7.25, the actual file size is 1358.183KB; the predicted file size=1421.364KB. So the factor is 0.95555. I paste the script manually in FitCD as follows:

IL = Framecount / 50
SL = round(Framerate) * 2
SelectRangeEvery(IL, SL)

Was it within average??

Just a tad low. But not bad at all :D But why such a low CQ_VBR for 2 CDs :?: Was this a dirty (DivX) source? It seems to me that for 2 CDs, the CQ_VBR should be way higher :?

-kwag

syk2c11 12-20-2002 11:18 AM

No, it is ripped from DVD, the movie is 137mins, for 2 CD-Rs. (max=2500, min=600)

kwag 12-20-2002 11:57 AM

Quote:

Originally Posted by syk2c11
No, it is ripped from DVD, the movie is 137mins, for 2 CD-Rs. (max=2500, min=600)

Did you use FitCD for resizing? And did you use 2 blocks overscan? That would give you a higher CQ_VBR to encode.

-kwag

SansGrip 12-20-2002 12:21 PM

Quote:

Originally Posted by syk2c11
No, it is ripped from DVD, the movie is 137mins, for 2 CD-Rs. (max=2500, min=600)

I'd say something's wrong there. I got a 1h59m movie on one disc at 528x480 with a CQ_VBR of 9.25. Are you using the new GOP?

kwag 12-20-2002 12:52 PM

Just to inform of the status of "The Green Mile", which I started last night on my SLOW Celeron 1Ghz machine.

CQ_VBR for that is 15.21. It's now 637,824KB at 95% done and wanted predicted final size is 662MB.


So it looks like it's going to be right on target. :D

-kwag

rendalunit 12-20-2002 12:59 PM

hi Kwag,

could you post your script for "the green mile"(one cd)? I'm still tweaking my script for Pearl Harbor before I encode it and making some progress.

LoadPlugin("D:\encoding\MPEG2DEC.dll")
LoadPlugin("C:\encoding\Unfilter.dll")
LoadPlugin("C:\encoding\Blockbuster.dll")
LoadPlugin("C:\encoding\LegalClip.dll")
AviSource("D:\PEARL_HARBOR_DSC1\VIDEO_TS\PEARL_HAR BOR_d2v-vfapi.avi")
LanczosResize(336,168,0,0,720,480)

ConvertToYUY2()
LegalClip()
Unfilter(-50,-50)
Blockbuster(method="noise",detail_min=1,detail_max =100,variance=0.5)
LegalClip()
AddBorders(8,36,8,36)

I now see the beauty of the Blockbuster filter- blocks are almost gone but I still don't really understand it's parameters 8O Another thing- Lanczos resizer is way way sharper than bilinear so it's the only way to go with the LBR template :D

I have to catch up on more than a month of not using any filters and not bothering to learn :oops: Lot's of reading to do...

-ren

kwag 12-20-2002 01:08 PM

Hi ren,

Here's the script I used on "The Green Mile":

Code:

LoadPlugin("C:\Program Files\DVD2SVCD\MPEG2Dec\MPEG2DEC.dll")
LoadPlugin("C:\encoding\fluxsmooth.dll")
LoadPlugin("C:\encoding\legalclip.dll")
mpeg2source("D:\THE_GREEN_MILE\VIDEO_TS\mile.d2v")
legalclip()
BilinearResize(336,192,45,0,630,480)
fluxsmooth()
AddBorders(8,24,8,24)
legalclip()

IL = Framecount / 50
SL = 48
SelectRangeEvery(IL,SL)

Using CQ_VBR=15.21, MIN=300Kbps, MAX=1,150Kbps and audio target of 112Kbps.

-kwag

kwag 12-20-2002 01:19 PM

"The Green Mile" is done.

Roll the drums .|.|.|.|.|.|.
Here is the result:

Predicted file size: 662MB
Final file size ->>> 660,765KB :mrgreen:

Too early for a beer, but I'll have a couple tonight :lol:

-kwag


All times are GMT -5. The time now is 04:35 PM  —  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.