Knowing Encoding Settings and Infos with MediaInfo

ok for new encoders its handy to know the settings and infos on a video
this will help them to get familiarize on encoding infos like 
resolution (width and height of a video), settings, format/codec, and etc of a video 
this guide can also be good for people who want to know more about the video
lets begin
download MediaInfo here ->
then install it the afterwards open it and go to menu “Options” and then “Preferences”
on “Output format” drop down box select “Text” and check “Explorer extension”
this how your screen should look like
now just click “OK” and go close MediaInfo, now your all set
Showing the Encoding Informations of a Video
now look for a video file (ex: mkv mp4 avi) and right click it and select “MediaInfo”
and thats it encoding informations are shown like this in the screenshot
some encoders useful infos are resolution (width and height), the display aspect ratio,
the x264 version (writing library) if its an updated version and ofcourse the
encoding settings, here is a screenshot
now you can just google about the informations shown by MediaInfo for you to get more knowledge

Encoding on Command Line

– people who like to learn encoding on cli or command prompt
– windows os (operating system) user
– basic familiarity with windows command prompt 
– already have familiarity with encoding especially extracting the audio of the source and muxing with mkvmergeGUI
– you need the following:
  x264 ->
  ffmpeg -> (get the static builds and when you extracted it look for the ffmpeg.exe on “bin” folder)
– next step is to put all x264.exe, ffmpeg.exe, neroAacEnc.exe, neroAacDec.exe, neroAacTag.exe
  on a directory for this example will put them all to “C:\” directory
– ok lets start ill only give you the ways that i know and the easiest/basics ways for me
  and note that as far as i know there is no proper order on adding the commands 
  put your source video file and extracted source audio (you can use MkvCleaver or MkvExtractGUI-2 for audio extracting) on C:\ directory too
  go to command prompt and go to dir C:\ and type this 
  note: myoutfile.mkv and myinputfile.mkv are just examples so you have to name this entries with your souce video located on C:\
  for CRF encoding:

x264 --preset veryslow --tune animation --crf 27 --vf resize:704,400 -o "myoutfile.mkv" "myinputfile.mkv"
  or if you want to change aq mode to 2 then use the following it has the command –aq-mode 2 
x264 --preset veryslow --tune animation --crf 27 --aq-mode 2 --vf resize:704,400 -o "myoutfile.mkv" "myinputfile.mkv"
  for 2-pass encoding:
  first pass (type the following and press enter)
x264 --preset veryslow --tune animation --pass 1 --slow-firstpass --bitrate 300 --aq-mode 2 --vf resize:640,360 -o "myoutfile.mkv" "myinputfile.mkv"
  second pass (type the following and press enter this is not thesame as first pass because of the 
command –pass 2 is not –pass 1 as the first pass)
x264 --preset veryslow --tune animation --pass 2 --slow-firstpass --bitrate 300 --aq-mode 2 --vf resize:640,360 -o "myoutfile.mkv" "myinputfile.mkv"
  for audio encoding 
  since neroAacEnc only inputs audio in WAV format we have to first use ffmpeg and here is how
ffmpeg -i x.aac x.wav
  where x.aac is your source audio so in this example you got aac and x.wav is the output
  now you got the WAV file its time to encode it on NeroAacEnc like this
neroAacEnc -2pass -br 40000 -if <input file> -of <output file>
  the -br option is on bits per second not kilobits per second so thats why 40000 value is in bits or its 40kbps
  and alternative way to encode audio is to use piping think of piping as making the commands all in one line like this
ffmpeg -i input.aac -f wav - | neroAacEnc -ignorelength -q 0.2 -if - -of output.aac
  or you can encode with vorbis audio too using ffmpeg only (my favorite method)
ffmpeg -i inputaudio.aac -acodec libvorbis -aq -1.0 outputaudio.ogg
  then after you got the video and audio just mux them through mkvmergeGUI then thats it your done!!!
–  if you want/need to know (more) the settings 
or go to command prompt and type this
x264 --help
or for full help type this
x264 --fullhelp>thisIsIt.txt
where thisIsIt.txt will contain the full help file so ye you can even name thisIsIt.txt as another name like Hoorray.txt
and after this just open the thisIsIt.txt file using wordpad to view it on a formatted way unlike viewing with notepad
  nero aac -> see the readme.txt 
  or go to command prompt and type this 
neroAacEnc -help
 or if you want to save the help file to a txt file then just enter in the command prompt
neroAacEnc -help>thisIsIt.txt
– ok if you know batch files you know you can just make a bat file like EncodeThis.bat and it has the commands inside that bat file like this
x264 --preset veryslow --tune animation --crf 27 --aq-mode 2 --vf resize:704,400 -o "myoutfile.mkv" "myinputfile.mkv"
ffmpeg -i x.aac -f wav - | neroAacEnc -2pass -br 40000 -if - -of x.aac
  in this way you can save yourself from typing a lot on the command prompt and just edit the bat file like a text file and just put the bat file on the directory that the encoding softwares resides in this case C:\ and after that just double click the bat file to run the commands
ok thats it your done!

MKV Common Usages

to mux the soft subs of a source video to your reencoded video
download MKVtoolnix either google it or get it here
i prefer the zip file download because i like it portable
after download extract it and double click mmg.exe (this is mkvmerge GUI)
– click “add” button browse your source video then click “Open”
– in “Tracks, chapters and tags” uncheck everything except the entry that has words “type: subtitles”
– click “add” button browse your reencoded video then click “Open”
– by looking at “Tracks, chapters and tags” this time the entries that has check is
  the video of the reencoded video file hinted by the words “type: video” and audio of
  the reencoded video file hinted by the words “type: audio” 
  and last the subtitles hinted by the words “type: subtitles”
– select the entry with “type: subtitles” then at “General track options”
choose “yes” on the drop down box of “Default track flag”
– on “Output filename” click “Browse” to select a save location and the
filename for the new mux file after that click “Start muxing”
splitting mkv by filesize 
– click “add” button browse your input video then click “Open”
– go to “Global” tab and at “Splitting” area check “Enable splitting…”
– select “…after this size” and enter a number like 100M (M stands for MegaBytes)
– if you check “link files” and your playing it using MPC-HC with Haali Splitter 
  then it will play the resulting split files as though they are one video file
  as long as all of them are on the same directory/location
– if you set a number of “max. number of files: ” for example you set 2 then 
  only 2 files will be created and if it exceeded the file size of what you set then
  the second file will be so much larger than the first resulting split file 
– then thats it your ready to click the “Start muxing” button again
NOTE: point and pause your mouse pointer on the input boxes until hints appears
File title
– click “add” button browse your input video then click “Open”
– go to “Global” tab and at “Global options” write a title on the
  “File/segment title:” text box
– now your ready to click “Start muxing” button
– when you play this file like on VLC player it will show the title that you set
  at the start of the video if it does not then go to VLC -> Tools -> Preferences -> 
  Subtitles & OSD -> On Screen Display -> then check “Show media title on video start”
Changing the Hash/Checksum of a file
– click “add” button browse your input video then click “Open”
– then just re-mux the file by clicking “Start muxing” button
  this will give your file another unique identifier called checksum/hash like
  CRC and MD5 this are useful if ever your file your uploading becomes banned
  from the file host your uploading to, so you do not need to re-encode the original file 
  again to small size just to have another hash/checksum value

File Corruption Checking

sometimes a file perfectly plays but when you transfer them to another media
like burn them to a disc or copy them to a flash drive or harddrive or in the case
of re-encoding no matter what settings you adjust it always come out out of sync
then the problem is a file corruption namely CRC (Cyclic Redundancy Check) error
so its better if you always check for the CRC info of a file before you re-encode
it for example, so lets start
download a checksum software that supports CRC, for example ->
then follow the guides below
what if their are no CRC text included on the filename? for example you rename the file or
there is no CRC text when you first download it, then will use, for example
we search the anime “Fireball” on and at the middle of its page look for something 
like this in the screenshot
after that youll be taken to a page that look like this below
then thats it you got info on the CRC now so just check with the resulting CRC info you
get from RapidCRC
P.S. again simply renaming the file you have will not change the CRC of it, think of CRC
as a unique identification for it, CRC is a checksum just like MD5 and SHA1 to name a few
checksums serves as the real identity of the file so its good for checking if the file is
sometimes RapidCRC does not support unicode characters or those weird characters you see on filenames sometimes
so in this case just use CRCDropper, more info on its site ->
NOTE: just to make it clear if the CRC are not the same then your file is corrupt 

Your Uploaded File is Banned

ok just to make it formal here is what you need to do in order to save yourself from re-encoding the whole file again when your file has been banned on filehosting sites like MediaFire or Megaupload, below is a quoted info from what filehosting sites do in banning your file
No human being ever looks at your files. This is a myth started by Rapidshare's manual review of your account upon requesting points redemption. Yes, Rapidshare used to review your account when you requested prizes. However, none of your files were ever downloaded or run. They just looked at file names, and never looked if you didn't ask for any rewards.
No file host has ever manually reviewed files.
There are three ways files are commonly deleted from file hosts.
MD5 checksums, string matches and DMCA complaints.
In all three cases no human being ever looks at your files.
MD5 checksums:
All files have a unique order of bits. An MD5 checksum is basically like a file's fingerprint. The odds of any one file ever matching another is quite small. You can change a file's MD5 with the slightest modification. Adding one byte of data or removing it would result in an entirely different checksum. Only some file hosts use MD5. Most notably Megaupload and Depositfiles are known to use MD5 checks. Most hosts do not use them however.
String matches:
Many file hosts use string matches in order to knock files out. They have a list of commonly abused names that the system regularly sweeps for. However, it is only a string search. It cannot distinguish between a real infringing file and one that does not.
If you name a text file "Iron Man 2.avi" when they run a string search, off it goes. It doesn't matter that it's just a text file.
DMCA complaints:
DMCA complaints are automated. Anytime one is filed, the file is immediately removed. Even if the filer does not own rights to the link.
If Paramount filed a DMCA against your video of you drinking a gallon of egg nog in under a minute, it would be deleted. just because it was filed. All DMCAs are assumed to be correct.
the reason why usually encoders re-encode again their files is for it to have a new checksum like MD5 or CRC, think of checksums as unique identification of a file and also its a way to find if a file is corrupt remember those weird combination of letters and numbers you see on fansubs file like “[Mazui]_Mirai_Nikki_OVA_[LQ][76A04333].mkv”, the part that reads like this -> “76A04333” is the checksum and categorize as CRC 
so basically according to that spoiler (quoted) info above you need to change 2 things and that is:
– filename (make the filename weird) 
– change the file’s checksum like MD5
changing the filename to a weird one is easy so here is a simple way to change the checksum like MD5 and CRC without the need to re-encode that video file from the original source (its simple as muxing the banned file to create a new file that has new checksums) 
either install it or just extract the zip file if you decided to download the 7zip (.7z) file
then open mkvmerge or mmg.exe
– now that mkvmerge is opened click “add” to add the banned file you have
– then change the “Output filename” on the bottom of the mkvmerge window and change the output location and click “Start muxing” button
– and thats it the output file from this instruction will have a new checksum for MD5 or CRC
but how to confirm if the original file before this muxing steps have different checksum compared to the output file created through this muxing steps? the answer is download a checksum software like this one ->
run that rapidcrc and then go to its options and check “MD5” check box for rapidcrc to show even the MD5 of a file being checked, and after that just run a checksum check of the banned file before and after you re-mux it and youll notice later that the checksums have change 
so thats it, their are some CRC or MD5 changer software if you google them but i do not recommend them as i do not think they are that reliable they may even corrupt the file itself
P.S. confirmation that a simple re-muxing will change the checksum like MD5 or CRC ->

Making Animated GIF Image from a Video Scene

– people who like to create animated GIF from video scenes using free softwares
– windows os (operating system) user
– basic familiarity with windows command prompt
– you need the following
Gimp – (i choose the portable version)
– then put mplayer.exe on a directory for this example will put them all to “C:\” directory
– then install gimp portable somewhere for example on “C:\” too
– then put the AnimStack filter file “animstack.scm” inside the Gimp Scripts directory by going to
GIMPPortable folder -> Data folder -> .gimp folder-> scripts folder
the basic idea is to use mplayer to extract the frames/images of the video scene
then use GIMP to compile the extracted frames/images to an animated GIF with the help of AnimStack plugin that will
efficiently delete duplicate frames/images, since the lesser the frames the faster
the animation of the GIF will be and it will have lower filesize output too, the details of how 
to do that are below
now lets use mplayer to extract every frame of the video scene,
put this commandlines on a .bat file, to do that open notepad and copy & paste this
mplayer "[gg]_Chuunibyou_Demo_Koi_ga_Shitai!_-_01_[5B6EFD1F].mkv" -ao null -ss 00:05:22 -endpos 15 -vo png:z=9:outdir=out -vf pp=al,scale=-3:240
*** [gg]_Chuunibyou_Demo_Koi_ga_Shitai!_-_01_[5B6EFD1F].mkv is the filename of the video source so change it accordingly
*** -ss 00:05:22 (the format is “hours:minutes:seconds”) is the starting time of the video scene you want to make GIF with, so to find the starting time of a video just play it with your media player and then remember the times then change the 00:05:22 example accordingly
*** -endpos 15 means 15 seconds duration beginning from the starting time or -ss so just change that 15 seconds accordingly
*** scale=-3:240 is the resolution output of the images (or frames) the -3 number is a constant value that means the Width will be automatically calculated according to the Height value which is 240 (or 240p) in this example, you can set higher resolutions like 360 or 480 or 720 but the higher the resolution means the higher the filesize will be of the outputted frames/images and the animated GIF later on, so choose the value accordingly
*** the output folder is named “out” on this command-line indicated by the command “outdir=out
– now save this as a “extract-frames.bat” for example and then double click it to run it
– a command prompt showing the progress will appear and after its done just close it and
  go to the “out” folder on thesame directory in this case the “C:\”, you will see a lot of
  images on the “out” folder 
– now open GIMP and do this 
– click menu File -> Open as Layers -> select all the images on the “out” folder (in this example the “out” folder is located on the “C:\”)
NOTE: when opening the images, “Name” column sorting arrow should be up, the triangle looking arrow besides the “Size” column should be pointing upwards (to sort the images from first down to last and when it opens as layers it will be sorted from last down to first), after sorting it accordingly just select all the images or use the keyboard shortcut “Ctrl+A” and then click “Open” button
– rename 1st layer (starting from lower numbered layer, this should be the very bottom layer) to [delete:2:1] where 2-1 will remove 1 duplicate frame/layer

– then go to menu Filters -> Animation -> Process AnimStack Tags, and watch the layers decrease (hence increasing speed of GIF playback)

after that test the animation by going to menu Filters -> Animation -> Playback
if the animation is a little to slow that means you have to delete more frames so do the whole process of deleting frames again and afterwards check the animation via the playback option, i ended up with 78 remaning layers by running the [delete:2:1] process 2 times as seen on the screenshot below

– then now go to menu Image -> Mode -> Indexed -> select optimize to 255 colors and set the dithering option to “Floyd-Steinberg (reduced color bleeding)” as well as checking “Enable dithering of transparency” and then click “Convert” button

after the conversion process is finished just then go to menu File -> Export -> rename to “sample.gif” and then save in the “Desktop” and then save as gif and then click “Export” button

now check animation and set it as loop forever and then set 10ms for all layers/frames and then check other option you think its needed and after that click “Export” button 

and your done making an animated GIF

Extracting Songs with Audacity

this tutorial is mostly for extracting the opening and ending songs of a fansub anime video
so to start download Audacity here ->
since i do not like installing software much so in this tutorial we will download the zip file
download “Audacity 2.0 zip file”
go to “LAME MP3 encoder” on the Plugins and Libraries area then download “alternative 3.98.4 build”
NOTE: you can also read the instructions on that download page
go to “FFmpeg import/export library” on the Plugins and Libraries area then download “Alternative zip download for FFmpeg 0.6.2”
NOTE: you can also read the instructions on that download page
then after downloading those 3 files just extract Audacity anywhere like on My Documents folder
now extract inside the Audacity folder
plus copy and paste “lame_enc.dll” inside the Audacity folder too
open Audacity.exe inside Audacity folder and press Ctrl+P (or go to Menu -> Edit -> Preferences)
select “Libraries” then click “Locate” button for LAME MP3 so just browse to the location where you paste “lame_enc.dll”
after doing that click “Locate” button for FFmpeg Library so just browse to the location where you can find “avformat-52.dll”
after that click “Ok” button
open a fansub anime (like mkv or mp4) by pressing Ctrl+O (or go to Menu -> File -> Open)
if it opens with 2 audio wave like look like this screenshot 
then this means its stereo (or 2 channel) so go convert it to 1 channel by going to Menu -> Tracks -> Stereo Track to Mono
but if you got multi-channel audio file it will show it like this screenshot
then press Ctrl+A (or go to Menu -> Edit -> Select -> All) and then go to Menu -> Tracks -> Mix and Render
after that youll have one audio to work with
now just find the parts of the audio you like to extract in this case look for the opening song of the fansub anime
you do the selecting by pointing your mouse pointer (cursor) to the beginning of the song and 
then press Shift+J (or go to Menu -> Edit -> Select -> Track Start to Cursor) 
now press “Delete” key on the keyboard
now the start of the audio file is the beginning of the opening song
locate now the ending part of the opening song and when your mouse pointer (cursor) is on that area just 
press Shift+K (or go to Menu -> Edit -> Select -> Cursor to Track End) 
now press “Delete” key on the keyboard
and now you already have cut the part of the opening song from the fansub anime video
you can add effects to the audio too the most commonly use is the Amplify and BassBoost 
you can find these effects by going to Menu -> Effect -> Amplify (or BassBoost)
also you can add silence to the beginning or the ending of the song you do this by selecting the 
beginning or ending of the song and then go to Menu -> Generate -> Silence
i always set 1 second on the “Silence” generator and then press “OK” button to add the 1 second silence near what you  
you selected or mouse pointer (cursor)
go to Menu -> File -> Export and click on “Options” button below the “cancel” button
and select “Constant” for the “Bit Rate Mode” and “320 kbps” for the “Quality”
then press “OK” button and rename or make a name on the “File name” inputbox are and just click “Save” button
youll be prompted with additional tagging for the audio your gonna save so either ignore that or fill them in 
with the appropriate data/infos and afterwards click “OK” button 
and thats it, done!