Está en la página 1de 22

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

Yan D, Ericolon: Random


Fudge-ups
It was an accident

Home

About

Blog Archive

Downloads

Gief

lIces Shipyard

Music

Tutorials and guides

Yan D (ericzillazillo) / January 6, 2013

THE secrets of YIFY and high quality and small file sizes are not so secret after all
UPDATE: Handbrake 0.9.9 has just been released, introducing numerous UI improvements that
makes shit that much easier to do. The support for x264 built in presets almost renders the
provided presets obsolete,except that when you use the support for built in presets feature you
wont be able to manually you could tune the features such as deblocking etc. by command line
without any aid from the GUI so you run the risk of fucking up if you didnt enter the values
completely correctly, not that it matters that much. The presets provided for 0.9.8 still work in
0.9.9 though, so feel free to download and import them as you would. Dont use 0.9.9! It is evil!
Its improved UI ate mah hard drive and raped mah wife miorgviudonbfbbkffdfvodfmkdov

1 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

tl;dr
Converting/Transcoding/Encoding High quality Low bitrate Videos in Handbrake for any device
CLICK HERE TO DOWNLOAD HANDBRAKE (PC, Mac and Linux Versions Available)
If youre a regular pirate of films and TV shows (unlike me, since I love obeying the law), you
will notice that one of the very popular communities and trends in HD film piracy is YIFY whose
release group offers films at a high Full HD quality at about 10% the file size (bit rate) of your
common blue-ray disk.

This method of the distribution of films is very popular due to the low file sizes which can be
very useful for those with limited HDD spaces and/or limited bandwidth. Many people, despite
not being illegal film distributors themselves, are still fascinated by the groups seemingly
uncanny ability to make films tiny, and which to apply the techniques for legal purposes, such
as ripping their legally purchased blue-ray disks in a fashion so that they could store 30 Good
Quality 1080p films on their 64GB iPad.
Unfortunately, for most of those aspiring imbeciles, achieving such a feat could be a little
difficult, considering how your average movie converter offers little options more than that of
set bit rate and set file type. This is highly problematic because film converter software were

2 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

designed for one purpose and one purpose ONLY: to make a file compatible with a device while
consuming as little time in the process as possible. That is why if you try to encode a film in
720p @ the same bitrate of YIFY @ say 800Kbps in your average media converter (such as
freemake video converter, format factory, Ultra Video Converter, Arcsoft video converter or
even Apple Quicktime), youll end up with something so ugly and so full of video artifacts that
you would want to kill yourself for being so stupid as to think you could match the quality of
YIFY in the first place. The reason for that is because these video converters utilize
professionally determined presets that are not only good enough for the average user, but also
quick enough for the impatient bunch. Which means that hardware acceleration such as nVidia
CUDA or AMDs equivalent would be used, and while those are incredibly useful for capturing
games or on-screen activity on limited hard disk space, they can (and almost always will) result
in file sizes that are a little too big for long term storage. Plus, graphic cards lack the ability to
encode some of the complex algorithm abilities (yes, even your GTX680 will SUCK at encoding
YIFY, despite being incredibly fast in the process), so therefore most professional encodes will
try to avoid hardware acceleration from graphics cards.
So you see, there are many factors in influencing a good encode, of which the basics will be
covered by this article.
Lesson #1, THE CONTAINER DOES NOT INFLUENCE THE FILE SIZE.
There is a common misconception that MP4 is better than AVI, or MKV is bigger than MOV, and
to be fair, that is true to some extent. Provided the same content, an MKV file can be as much
as 300KBs bigger than its equivalent MP4 file. This is because the container used in the MKV
might store more data, or store less data in a slightly more inefficient way. However, as you
might know, a 300KB difference is pale in comparison to the range of file sizes offered of the
same films in allegedly the same qualities. So what could be causing the difference?
Codec.
The MKV or MOV is just a representation of the CONTAINER to the file. The container is
what stores the video and audio content known as streams, which are the actual content
encoded in different codecs.

THIS is what really matters


The only difference between containers is that sometimes certain containers can only support
certain formats, or in avis case there is a 2GB size limit on the total length of content.

3 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

The best codec as of 2012 is still h264, a standard since 2004. While some argue that
Youtubes VP8 is comparable, x264s developers have claimed that VP8 losses valuable
compression with a limit on reference frames and the complete absence of B-frames and
weighted prediction in an effort to be royalty free. And if youre reading this article searching for
YIFY, you probably dont give a shit about royalties, so VP8 is out of the question.
Some Hong Kong advertisements for RMVB-capable products say that HongKongers love
RMVB. If you love RMVB, then I got news for you: RV40, RMVBs current codec, is based off
h264 like everyone else. However, I have doubts that any RMVB encoder out there will give
you as many options as x264, so essentially to you, the average user of the computer world,
RMVB is about as useless to this cause as the H263 based DivX. (Apparently DivX has its own
h264 encoder, but 1. Its free version is very limited and 2. it either costs money/ or watermarks
your shit, plus it comes with bloatware, and its quality is not on par, so fuck it)
So currently by raw comparison, the most appropriate codec for the cause is x264, and mkv, flv
or M4V has almost absolutely nothing to do with better or worse quality of videos.
Lesson #2, THE CODEC DOES NOT AUTOMATICALLY IMPLY QUALITY
Whaaa~? But you just said-
Yes- while this is true in your average simple converter, (again,) x264s developers have
taught us that a well encoded MPEG2 file will be of much better quality than a badly encoded
H264 file. And this is true, because codecs do have different levels of compression.
For example, H264 offers several profiles from 1 to 5.1, with each increase in profile implying
higher playback requirements.

Handbrake makes it easy to make your file compatible. Select a preset or just tick off iPod 5G
support and Web optimized, or manually disable B frames and set reference frames to 1, and
disable CABAC, 88 etc.
For example, your expensive second hand iPhone 4 supports a puny baseline 3.1, which
apparently means it will not playback files with resolutions of higher than 1280720, and is also

4 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

limited to a bit rate of 14000 in the main profile.

Not so premium anymore, huh.


Even worse, an older iPod might support H264, but will certainly not support B-frames and
CABAC, which both contribute to compression levels significantly. For now, you should stick
with H264.
Heres something youre not psyched about: H265(HEVC), the successor to H264(AVC), is
supposed to be released sometime in the (near future), offering as much as 4x better
compression in its (beta? Alpha?) current state of development. Hopefully an HEVC encoder
will be available for the general public soon.
Lesson #3 THE BITRATE DOES NOT AUTOMATICALLY IMPLY QUALITY
Thats the point of this article. While a higher bitrate generally means higher quality, this is only
valid within the limits of the same compression settings. Simple comparison is a CUDA
encoding VS a CPU based encoding. The advanced settings and options in real encoders do
exist for a reason.
Lesson #4 FASTER ENCODING GENERALLY = LESS QUALITY, and avoid (cannot stress
this enough) video converters (and some video editors).
Again, why professional encoders never use CUDA for reasons I have already discussed.
Video Converters Are good looking software that offer very limited options, its unalterable
presets designed only to make your file playable on your iPod in as short a time as possible,
and nothing more.
My dad always tells me that if I really want to work with multimedia, I should go work for a big
multimedia company with fancy machines because it will never be possible for me to set up a
studio in my apartment. In a similar aspect, if you are trying to be a film-maker, the file size of
your video should be the last of your concerns. When exporting from Premier etc, always
export in a format and settings that are near-lossless, then re-encode them later for specific
channels of distribution.

5 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

Lesson #5 USE SINGLE CORE IF POSSIBLE*, USE SINGLE CORE IF BATCH


PROCESSING
No way, you say, I may be an idiot attempting to encode similarly to YIFY when I clearly
should shut up and just leave the encoding to the professionals, but even I know that multicore
is good for multimedia processing.
Too bad, moron. While multicore does have numerous (I cannot stress this enough) speed
advantages, todays topic is compression. And the thing about multicore processing is that (to
my understanding) data is split into chunks for the processors to process, meaning thread 1 will
receive chunk A, thread 2 will receive chunk B and thread 3 will receive chunk C. However,
while they are processing, thread 1 cannot actually alter chunk B. Now compression is based
on finding similar items and patterns, among other stuff, but when thread 1 is occupying chunk
A, thread 2 cannot occupy chunk A to see if there are any similarities between them, thus
resulting in a loss of compression. A single threaded operation however, will process the video
bits one by one in an orderly fashion, thereby eliminating the chances of missing anything and
achieving greatest compression in comparison to multicore operations.
Your average high end nVidia GPU has a shit load of CUDA cores. If it even attempted to do a
high compression encoding, Ill bet 95% of the cores would be inactive half the time, just
waiting for the other core to finish processing that chunk of data.
Update: Lemme clarify this some more, as folks at at this page have expressed doubts that a
single thread encoding improves quality.
What I mean to say is that say on a quad core cpu, running four separate encoding threads
with each thread using only one core, in parallel (ie encoding video1, video2, video3 and video4
at the same time) is much more efficient than having four multithreaded encodings run
sequentially (ie encoding video1, and then video2, and then video3, and then video4), as
restricting the encoding to one core would result in on average a 99% to 100% core usage
during encoding, while if you encode in a multithreaded operation you might only have a
average cpu load of 90%, because of the cores waiting for the other cores as described above.
So no you wont lose quality in a multithreaded high compression encode because x264 is
smart and understands when you value compression over speed, but you will lose speed and
efficiency. Unless you force your multithread encode to operate your CPU at full load, then, the
resulting product would definitely be of worst quality than a single core encode.
(assuming ultra compression settings) Just as if you run 4 single threaded 7zip compressions
in parallel on a quad thread/quad core computer, it would be much faster than running 4
multithreaded 7zip compressions sequentially. the 4 single threaded 7zip threads would put
your CPU at 100% load constantly when a single multithreaded 7zip thread would use between
60% to 90% of your CPU (and therefore 60%-90% the speed) at any given moment.

6 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

7 de 22

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

But then again CPUs are so damned fast nowadays, so does my advice on speed and
efficiency really matter?
edit again: dammit my incompetence sucks ass. yes you can restrict handbrake/x264 to use
only one thread by adding threads=1 to the command line.
Lesson #6 BE AS LOSSLESS AS POSSIBLE WITH YOUR ORIGINAL CONTENT
If, say you are not trying to rip a newest blockbuster off your new Blu-ray disk, but rather you
are trying to compress your family videos into a smaller size or you are an aspiring Youtuber (or
a porno producer), please dont do a YIFY-styled encoding, because the truth is, despite being
far from rubbish, they still suck- the artifacts will still be unpleasantly visible. As a family
man/woman/guy, you want to retain your memories with junior in as good a quality as your
camera captured it. This means no RF30 for you; go straight to RF15 or less. (This RF stuff will
be explained later)
As a producer/ video editor, you want to have the highest possible quality videos available for
streaming. Let Youtube or Porn Site screw it up with their own crappy compression, its not your
job. Your job is to make sure that when a new codec comes out, they will find your old file,
re-encode it, and hopefully make it look better.
This is especially true for desktop captures. If you are making a screencap tutorial on using

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

8 de 22

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

software, for GODS SAKE make it lossless! The last thing anyone wants to do is to find out
that the lines for writing a GUI for smudge is smudge smudge smudge smudge smudge.
Lesson #7 DO NOT DO FILE SIZE/ BITRATE BASED ENCODES
A lot of P2P groups encode videos to file sizes of 400mb, 500mb, 600mb, 700mb, 1gb, 1.5gb
etcetera. This was because it was easy for people to estimate file sizes, and also filling up a
700mb cd with a 699mb file felt good. However, thats not a very smart thing to do. You see,
people are terrible at estimating bitrates, which is why some dvdrips come out with a better
quality than others. It was an impractical thing from a time where 699mb was better than
701mb- but that time is passed. Now, more and more groups are doing RateFactor based
encodes, the RF I talked about earlier. The Xvid encoder has a rate factor slider, so does
x264. To ensure that every file you ever transcode, whether action movie or cheap animationcomes out with the same quality, you have to do quality based encodes. The default slider in
Handbrake is set at 20, however it is suggested that only a RF of 15 or lower can a file seem
almost lossless. From my personal estimates, both 720p and 1080p encodes from YIFY are
roughly equivalent to a ratefactor of 30, quality wise, and ratefactors of around 30 are
recommended.
Lesson #8 DO NOT UPSIZE FILMS

x264s default deblocking- from 352144 to 1366768


Ive seen dumb people ask for instructions on making a DVD into HD quality, aka interpolating
it. Hey- newsflash: basic h264 decoder offers built in deblocking which is similar to smoothing,
which is also interpolating, which is upsizing, and the deblocking filter is only deactivated
optionally on lesser devices, so unless your choice of interpolation software is REALLY
FRIGGIN FLY, I suggest you just leave your film at the resolution it is, and let the guest do the
dirty work.
Now there IS an exception to this. If you plan on uploading footage from 3D games or you

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

9 de 22

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

kidnapped Michael bay to make your youtube videos, then it is perfectly acceptable to upscale
a 480p or 720p film to 1080p, just so that youtube would give it a higher bitrate and therefore
better quality, because for youtube and streaming sites in general, quality will always be crappy
for high motion videos, and upscaling is one way of countering that.
Lesson #9 DO NOT RE-ENCODE AT A HIGHER BITRATE FOR NO REASON
Especially when at the same encoding settings.
Re-encoding in general is a bad idea. If youve ever dealt with early versions of ms paint, youll
know that if your file is saved as a jpeg image, each time you press ctrl-s the quality
degradation becomes more and more obvious. That is because the jpg file is saved at a quality
of around 75% the original in order to achieve what is deemed the appropriate level of
compression.

Re-encoding at a higher bitrate will not interpolate quality by itself, which leads to Lesson #10 Use filters and effects
If youre a hardcore file sharer who wants to keep the film in as much of its original form and
detail, then too bad- 600mb 720p mkv style aint for you. On the YIFY website he clearly
states that he uses a combination of software and settings that work best, which will most likely
include filters such as contrast, cartoon or denoise.
A light amount of Cartoon special effects will simplify colors, reduce file size requirements while
making the film still seem high quality.
Contrast will help simplified colors look better.
Not only does denoise cancel out noisy scenes, it also helps compression significantly,
because it also smooths out grains, which are bad for video compression. I had a personal
experience with this, where I filmed s short walk down a mountain, then used a movie editor to
give it noise. The resulting 5min 352240 file @RF15 in similar AVC encoding settings

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

occupied around 1GB of HDD. Noise is not good for compression, so use denoise filters.
Lesson #11 Single pass bitrate encoding is not necessarily worse than two-pass bitrate
encoding
Multi-pass encoding wasnt just a way to improve quality, its purpose was to generate a stats
file in the first pass which will be used to determine the appropriate RF used so that the
resulting file is same size as that which the user specified. Normally, single pass bitrate
encodings convert your bitrate into a RF value with a maximum bitrate limit and takes it from
there. The result may be larger or smaller than estimated- multipass merely makes sure its the
exact bitrate you want it to be.
And Finally- Lesson #12 VIDEO ENCODING TAKES TIME

Hey BRO, no pain no gain, BRO (source)


I highly recommend visiting the source. I personally find this thread hilarious because its
populated with people who really shouldnt be messing with video encoding.

Encoding in H264 takes a lot of time. Ill assume this guy was using one of those gay presets (I
automatically assume that almost all presets are gay) in AutoGK, and even that predicted 14hrs
for *just 4 hours of film.
It takes guts for the average human being to try and encode like YIFY. For example, Im on an
Acer Aspire-481G ultraportable, and that means a 17W i5-3317 ULV Processor. I have no
secondary computer, so this means that whenever I encode, I encode on the go, everywhere,
anywhere, and anytime, and naturally there are many problems Ive experienced. For one, I
have to put the computer to hibernation every time I stow it in my bag or itll overheat. Secondly,
the battery drains superfast every time I bring my computer out of hibernation and it continues
its task. I have to constantly keep my laptop plugged in, and that is a bit damaging to the
battery.

10 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

11 de 22

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

My wonderful computer which can play Sleeping dogs even though its so thin and so cheap
(source)
So far, its just me bitchin about my slim ultrabook wannabe. But here are some things that
might apply to you too:
1. If you dont have a fast processor, its gonna take a while. In my trial and error session with a
laptop I borrowed, it took almost 4 days for an i7-2630QM to encode Total Recall (2012) to a
YIFY-like 1080p output. If you have an old computer, youre electricity bills are gonna get
fagged up, because old processors are totally less efficient.
2. When you have the encoder running in the background, you cannot play games. Youre
limited to small tasks such as waiting for the mouse to move from 1230, 230 to 934, 317 (well,
not unless youve got lots of other shit open), and maybe checking your email. You cant edit
videos, and you cant play old games even though theyve got lesser system requirements
since when all the threads of your hyper threaded quad core 3.6ghz CPU are used
simultaneously, the old single threaded game will only be able to use one thread at a speed
and efficiency of around 200-300 Mhz (3.6/4/2=400)
3. You cannot reboot
4. Everything is slow
5. Even if you have the newest fastest consumer processor, you will still be unable to fully
utilize your computer for at least a day if you wanna do a single threaded 1080p encode of a 2
hour film, and if you make a mistake, you start over.
Bottom line is, why do it yourself if someone with the time and equipment has done it for you?
Therefore I discourage anyone who actually needs their computer every day from doing video

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

encoding. Its messy and not for the impatient or the morons.
Continue reading if you still think youre up to the task.
Now that youve learnt the basics

(Source)
*tips for porn producers highlighted in bold italics
1. Install, then open up Handbrake (this tutorial covers version 0.98)

2. Drag your film onto the program or select Source-> Video file
3. Downloadthis preset pack for handbrake 0.98 x64 , and select options->import from the
bottom right corner of the program. Locate the downloaded file from the window and open it.

12 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

4. Locate Placebo in the preset list and double click

5. If you wanna downsize the video, change the width in the appropriate box (green circle) The
display size might show weird numbers, but it is most beneficial to keep it that way, as leaving
the resolution non-anamorphic will result in worse compression. Dont worry, your video will still
be displayed in the resolution it should be.
Check the red circles area. If you see that there are numbers other than zero in the listboxes
but your video doesnt need to be cropped, select custom and edit all values to zero. This
function automatically removes black bars, but is buggy in some cases.

13 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

If your video is in an incorrect aspect ratio and you want to correct it using a custom resolution,
select Anamorphic and choose none. Now you can set custom values to make it 4:3, 16:9, etc.

If you want to keep your original resolution, select this too.


6. Now you can flip to the filters tab and apply some simple filters. Note that if denoise is not set
to Medium, set it to Medium. Grayscale encoding might help compression by 0.5%, but the
end result is, you guessed it- grayscale.
Note: If youre producing videos, turn off denoise.

7. Flip to the video tab. Make sure the codec is set to H.264. Make sure the FPS is same as
source, and you can decide whether you want variable or constant framerates. VFR helps
compression a bit, and its effects arent that obvious as the resulting framerate wouldnt be
hugely affected- you probably wouldnt even notice it were there.However, constant frame
rate is preferable for high motion videos- better safe than sorry, right?

14 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

15 de 22

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

8. The default RF value is set as 30, good for 1080p (1920*xxxx) and 720p (1280*xxx) all the
way to DVD quality (720*xxx). For 480p, use a RF of 25. For 240p, use a RF of 23.
If you are producing, use RF15 (or23) for full HD, RF14 (or20) for 720p, RF12 (or 18) for
DVD and 480p, and RF 10(or17) for 240p.
*OR values are for if you really value your HDD space that much, then fine.
If you insist on a specific file size, calculate the bit rate (including the audio of 96kbps by
default), select Avg Bitrate, enter value, select 2-Pass Encoding and leave turbo first pass
alone. This is only useful if youre encoding for cd or DVD. I personally use the xvid encoder
that comes with klite codec pack to calculate bit rate, but Im sure much better solutions are
availabe.
9. Switch to the audio tab. If the box is empty and your video is supposed to have audio, click
add track. If your video contains multiple audio tracks and you want to add a specific one,
click on the listbox beneath add track, and select from the list. You can add multiple audio
streams, however if you do, please change the container from MP4 to MKV, as the MP4
container does not support multiple audio streams. If a track is labeled as o 0 (as shown in
picture below), you have to remove it and add it again. To remove audio tracks first click on a
track, and then press remove.

Make sure the audio codec is faac, mixdown stereo, samplerate auto and bitrate @96. If you
really hate faac that much, you could always mux in your nero/itunes encoded aac

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

stream later.
If youre a producer for (especially music videos), select 360 for the audio bitrate.
10. Switch to subtitles tab. If your video contains subs, now is the time to add them. I
recommend that you add all of them since subs are so damned small anyways, however if you
add subs you have to set the container as mkv (matroska)- mp4 does not support built in
text subs. You add subs the same way you add audio streams, and here you get to change
several properties of the subs as well.

update: If you know your video contains special subtitles (such as the Jabba the Hutt
translation in Star Wars) and you want to preserve it in your encode but it isnt listed in
the list of subtitles, add Foreign Audio Search to the list of subtitle tracks.
11. Switch to the advanced tab.

Holy crap, what the hell is that?


You are now at the very last stage. This is where you set the compatibility of your video if you
want it to work with a specific device. Check the spec sheets of your target device for things on

16 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

17 de 22

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

this list you might want to disable to meet various profiles. If the preset dont import properly,
copy and paste this into the box at the bottom of the window:
ref=16:bframes=16:b-adapt=2:direct=auto:me=tesa:merange=24:subq=11:rclookahead=60:analyse=all:trellis=2:no-fast-pskip=1:threads=1
Note: disable (ie. delete) threads=1 if youre only encoding 1 video
These settings basically emulate the placebo preset in x264:
This setting pushes h264 to its very limit. Its a general purpose set of options that ensure
maximum compression happens. For more info on the settings (and this is why I like
Handbrake so much), hover your mouse on each of the options and a description will appear
explaining it.
*edit: add threads=1 to the options. this is a life saver in both batch processing videos and in
cases where you might want to be able to utilize the rest of your cores/threads for other uses if
on multicore computers. However if you only plan on encoding one film in the near future, might
wanna disable threads=1 as it is seriously slow on multicore and/or hyperthreaded systems and
is only useful for batch processing.
If you are encoding for production, you might want to completely disable Psychovisual
Rate Distortion and Psychovisual Trellis, as well as Deblocking. These can cause
artifacts. Or blurring.
12. Now youre all set.

Press Start, dumbass


Happy encoding!
Last but not least
Video quality is nearly always more important than video resolution. The way YIFY has
been able to evade its lawsuits the ugly truth is YIFY encodes are still sub-par copies that no
sane film producer would sell (aside from youtubers, amiright). I personally archive my films in
a relatively high quality- low resolution format which I call Recap Format, basically VCD
resolution @ RF23. And Im happy to say that watching recap format can be a much better
experience than watching a YIFY low bitrate 720p encode, even if the source of the recapped
video is YIFY.
In the future when bandwidth, lossless video compression and storage mediums evolve, we will
be able to stream lossless videos without artifacts off Youtube and download a few TBs of
near-lossless 4320p films off iTunes- and by that time, YIFY styled encodes might just be
headed towards obsolescence.

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

New: if you want you can download a sample of a recap format encoding by visiting
recapstore.wordpress.com, where I am setting up a website dedicated to archiving films in the
format.
Also new: grab* my 720p encode of TPB AFK at bayfiles here or via torrent (tpb page)
(encoded using aforementioned settings) and compare it with YIFYs 720p encode of TPB AFK,
and compare the picture quality to see for yourself.
FAQ:
Q: Why use HB when u can use x264 directly, fake n00b nerd?
A: Because some people (including me) are too dumb and/or lazy to use command line,
then mux stuff in themselves, and manually crop them using video editors etc
Q: The resulting file size after an RF15 encode using your settings is bigger than my source
video, you time wasting asshole!
A: That is because your source video is in bad quality, and since RF15 is near-lossless, it will
try to retain most detail in your video, including the artifacts in your video. To solve this problem,
increase the RateFactor value to lower the encode quality, so that at some point x264 might
decide to smooth out the artifacts (and some detail, because you will always lose some quality
when reencoding unless in a lossless encode).
Q: Why some 1080p vids come out 1000000kbps while others come out 180kbps?
A: When one is a lossless encode of high motion action sequence while another is a
lossless encode of a very simple animation in 1080p
Q: 1280544 isnt 720p, 1920800 isnt 1080p, you dick
A: your 1080p monitor is incapable of displaying every single pixel of a 25921080 image at the
same time without resizing it, so why do you consider it a 1080p monitor? AFAIK, 1080p, 720p
etc isnt about vertical resolution, its about horizontal resolution.
Q: Im one of the several white trash youve encountered over the internet whove
decided its okay to make racist comments about you
A: Stop fucking your sister, retarded hick
Q: Son are you trying to be a comedian?
A: I attempt to humor and entertain from time to time
Q: Now that the educational portion is over, why am I reading this crap?
A: Obviously I didnt write this article just to educate people

, so if you liked this article,

subscribe and/or like and/or comment!

18 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

This article will be constantly updated until the next version of handbrake comes out, so in the
meantime if you think I made a mistake somewhere, comment in the section below and I will
investigate into my error, and correct my ways.
And while were on the topic of encoding, check out my new article on choosing a suitable
codec for use in the awesome game recording software Dxtory, which you may find useful if
you intend to record any gaming footage.
This article and its images (unless specified) Eric Yan 2012 All Rights Reserved
Hi there. If you look around my blog, youll notice that I write the occasional poetry. But what
you dont know, is that I occasionally record the poetry and magically turns it into a rap song.
Sometimes I record enough of them to form an Album, and this is one of those times. Check it
out (please?), its free!
No part of this article may be reproduced without the owners explicit written permission.
Software is Handbrake open source
Dreamworks image used under fair use.

4 bloggers like this.

January 6, 2013 in Computing, Encoding, Multimedia, Technology, Tips, Video Compression. Tags:
1080p, 2 pass encoding, 400mb, 700mb, 720p, Apple Quicktime, artifacts, avc, avi, blue ray, cartoon
effect, compression, convert, deblocking, decode, encode, film editing, filters, Freemake, h263, h264,
Handbrake, hard disk space, high quality, hiphop, i5 3317, interpolation, jpeg, microsoft paint, movie
converter, mp4, mpeg2, multicore, multimedia, multipass encoding, profiles, rap, RF, rip, rv40, secret,
server, small size, The Pirate Bay, torrents, TPB AFK, tutorial, upsize, VP8, vst filters, x264, x64, xvid,
YIFY, youtube

Related posts
Our very bright future

10 things software people

Launching the recapstore

need to get into their


fucking heads

Merry Christmas

More Bits and Pieces

218 thoughts on THE secrets of YIFY and high quality and


small file sizes are not so secret after all Encoding High
19 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

quality Low bitrate Videos in Handbrake for any device


Older Comments

Yan D (ericzillazillo)

September 9, 2014 at 11:08 am

A 2-pass ABR encoding does basically that, but the max bitrate is probably
determined by the software. x264 allows you to specify max bitrate manually
but that is not really useful for anything other than streaming, although
enabling will probably cause the classic blocky action scene problem on lower
bitrates.
To specify a maximum bitrate, add
vbv-maxrate=2000, vbv-bufsize=4000
into the extra options in the video tab of the current 0.9.9. version of
handbrake, where the first number (2000) is your maximum bitrate while the
second (4000) is double the first number.
tbh i just grabbed this off a google search http://veetle.com/index.php/article
/view/bitrateLimit so Im not entirely sure if it works, the seperating comma may
have to be a colon or something.
Reply

dungbeetle

September 9, 2014 at 11:24 am

Thanks for the quick reply, Eric.


So my best bet might be to do a 2-pass ABR (with an ABR of
around, say, 1,512 Kbps) and let the software determine the max
bitrate rather than go with an RF and put a limit in myself?
Reply

Tronar

September 21, 2014 at 5:01 pm

I think you are right with your thread=1 theory that the compression is slightly
better. I just checked using the preview function. While all other parameters
remained identical and the only thing I did between the two runs was to add
the thread=1 option into the extra options field, the resulting file was indeed
a tiny little bit shorter.

20 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

The option also definitely worked, because before my (Win 7 64 showing) 8


cores were all fully occpied resulting in a 96 to 99% total CPU load. With the
option added the total CPU-load was only jumping between 20 and 30%.
The file was a 30 second preview of a DVD series. Using denoise=ultra light
and RF 20 with x264 preset very slow, the file size without thread limitation
was 4.028.992 bytes and with threads=1 was 4.022.272 Bytes.
Despite the smaller result, I wont limit the threads to 1 in the future though,
because the resulting improvement of 0.1% doesnt justify increasing the
rendering time by factor 4 to 5.
Reply

Tronar

September 21, 2014 at 5:08 pm

Addendum. I just found the official documentation for x264. They


confirm my test:
http://mewiki.project357.com/wiki/X264_Settings
threads
Default: auto (frame based threads: 1.5 * logical processors,
rounded down; slice based threads: 1 * logical processors)
Enables parallel encoding by using more than 1 thread to increase
speed on multi-core systems. The quality loss from multiple threads
is mostly negligible unless using very high numbers of threads (say,
above 16). The speed gain should be slightly less than linear until
you start using more than 1 thread per 40px of vertical video, at
which point the gain from additional threads sharply decreases.
x264 currently has an internal limit on the number of threads set at
128, realistically you should never set it this high.
Reply

Yan D (ericzillazillo)

September 21, 2014 at 6:05 pm

true.
I hope I mentioned somewhere that thread=1 was only useful if you

21 de 22

24/09/2014 03:27 p.m.

THE secrets of YIFY and high quality and small file sizes are not so secr...

http://ericolon.wordpress.com/2013/01/06/the-secrets-of-yify-and-high-q...

wanted to squeeze out a bit more compression from the smallest file
sizes, or had a large number of videos to encode simultaneously to
allocate one encode per core.
Reply

Older Comments

If you can't think of anything to comment, just fill in your


bank account details or social security number.

Blog at WordPress.com. The Expound Theme.

22 de 22

24/09/2014 03:27 p.m.

También podría gustarte