Log in

View Full Version : Getting higher compression for credits


TheXung
10th September 2002, 19:12
I never use XviD's credit feature, but this might be something people might want to do. If you save the credits clip at the highest quant (31), then open the saved file as the source and save it again at quant 31, and repeat, the repeated encoding/decoding will make the credits smaller each time. I took 5 mbs of credits down to 3.5 mbs after 5 cycles and the credits are still readable. While the savings aren't much, sometimes that last megabyte can be useful.

kilg0r3
10th September 2002, 19:48
seems quite a lot of work for um well not much. i usually encode the credits as black screen. that is i adjust brightness to zero. this gives me always credits below 1mb.

TheXung
10th September 2002, 21:01
i usually encode the credits as black screen. that is i adjust brightness to zero. this gives me always credits below 1mb.

If you're not going to even show the credits, then what is the point of even having them there? Just think you could save a 1mb. If you're doing it to so you can play the music at the end, just put it into an ogm, it'll let you continue playing music even if the video runs out.


The point is, is that sometimes, people would like to know the name of the actors/actresses. Sometimes there are good performances from smalltime actors that are hard to remember. Other times, there is footage at the end that is part of the "cinematic art" of the movie (like at the end of Hannibal when he signs his name and says "ta ta"). The point is that every once in a while, there will be a movie, where it is worth it to be able to read the credits and you are not limited in filesize to a 1 pass 31 quant encoding.

Dali Lama
10th September 2002, 21:29
Its interesting you bring this up TheXung. I have always felt contrary to popular practice of heavily quantizing the credits. Like kilg0r3 pionted out, the size of credits isn't a big deal. For me, I just encode the whole movie without de-emphasizing the credits, because they don't take up that much space and sometimes like you said, the credits are important.

Remember, Xvid will automatically give low bitrate to the credits, because it is easy to encode it.

Just a thought,

Dali

ARDA
10th September 2002, 23:18
Be Careful these are just two examples; you should first load your clip,crop and resize.
You should not use Greyscale if your credits are with colors.

#######################Movie Section Credits
INISUBS=Trim(MOVIE,0,2715).GreyScale().Tweak(bright=-15,cont=0.7).SmoothHiQ(11,100,150,50,9)


With differents parameters values ,you can get better or worse quality; that depends on
your preferences.

OR

#######################Movie Section Credits
INISUBS=Trim(MOVIE,0,2715).GreyScale().Tweak(bright=-15,cont=0.7).SmoothHiQ(11,100,150,50,9).
\SelectEvery(2,0,0)

This second option adds SelectEvery(2,0,0) that will repeat one frame each two ,dropping the second;
making the codec get a better compression ,it will give a jerky movie but still readable.
It is also possible to work with TemporalSoften or TemporalSmoother instead of SmoothHiQ; there is a thread in Avisynth forum where Dividee suggested some values for TemporalSoften.Make your own tests.

I hope this can be usefull. Arda

pyropir
11th September 2002, 16:26
Would it be possible to reduce the size of the credits to virtually 0 MB, while keeping excellent quality, by converting them to text (using OCR software) and then displaying them a bit like subtitles, just on a black background?

just an idea, it's probably not worth the effort.

pyropir

Dark-Cracker
11th September 2002, 16:34
to get a better compression for the endcredits u could encode them in greyscale or use a black screen.

use this script :

Clip=Mpeg2Source("XXX.d2v")
Clip=UnalignedSplice(Trim(Clip,0,Frame_start_endcredits),BlankClip(Trim(Clip,frame_startendcredits_+1_,0)))
return Clip

exemple your end credits start at frame "100000" this will give :
Clip=UnalignedSplice(Trim(Clip,0,100000),BlankClip(Trim(Clip,100001,0)))

Bye.