Welcome to Our Community

Register on JustAnimeForum and start chatting about anime with like-minded people!

Sign Up / Login
  1. Thank you for the years of fun feel free to join the discord here! Please enjoy the forum for the short time it may be up feel free to make an account here or see what forums you dont need to make an account here
    with love,
    shedninja the sites biggest bug

Encoding Tutorials

Discussion in 'Tech Temple' started by Sporadic, Jan 26, 2015.

  1. Sporadic Site Dev Moderator Director

    Rank:
    Rank:
    Rank:
    Messages:
    8,972
    Joined:
    Mar 26, 2013
    Likes Received:
    972
    Trophy Points:
    335

    Ratings:
    +981 / 0 / -0
    Small collection of guides especially for mini-size h264 video format encoding via x264 encoder in mkv and mp4 container.

    Handbrake Tutorial:

    Mainly for low size or mini size h264 video format encoding of fansubs using x264 encoder in mkv or mp4 container TIP: if you're ripping an encrypted DVD then install libdvdcss here is a guide - http://www.howtogeek.com/102886/how-to-decrypt-dvds-with-hardbrake-so-you-can-rip-them/

    Getting handbrake
    Go to http://handbrake.fr/
    Click "Downloads" and go to "Nightly Builds"

    NOTE: We are using Nightly Builds because it's more updated so less bugs and more updated encoding tools

    Installing handbrake
    Clicking "Nightly Builds" will take you here http://handbrake.fr/nightly.php then download something that says "WindowsGUI" or "Win GUI"

    Install and open

    Encoding with handbrake
    Click "Tools" menu and then click "Options" and then click "Output Files"
    Click "Browse" button and browse the desktop folder for example as your default output folder then click "Close"

    Click "High Profile" on "Presets" pane
    Click "Container" drop down box select "MKV"
    NOTE: We select MKV to select Vorbis audio later on when encoding with audio because AAC of Handbrake

    It's not NeroAAC so Vorbis audio wins in here for good quality on low bitrate

    Go to "Picture" tab (Resolution tab) and select "None" on "Anamorphic" drop down box
    then check "Keep Aspect Ratio" now on "Height" input box put 720, 480 or 360
    now the "Width" will be calculated automatically

    NOTE: 720p, 480 or 360 as height is 720p, 480p, 360p

    [​IMG]


    Go to "Video" tab set "Video Codec" to "H.264(x264)" then set "Framerate (FPS)" to "Same as source"
    then make sure that "Variable Framerate" is selected and then choose your encoding mode on "Quality"
    I prefer "Constant Quality" or CRF if you prefer "Constant Quality" take note that filesize will vary but quality will be almost consistent through out the video for a given CRF value and its a faster way of
    encoding too because its 1-pass

    "Constant Quality" or CRF values good ranges are from 24 - 28 i prefer value of 26
    In CRF the higher the value the lesser the quality but lesser the filesize
    In CRF the lesser the value the higher the quality but higher the filesize
    In CRF filesize will be less too if you set a low reolution thats why we set Resolution that is in average 360p like 640x360 (for 16:9) or 512x384 (for 4:3)

    If you prefer "Avg bitrate" make sure to check "2-pass encoding" and check "Turbo first Pass"
    NOTE: in "Avg bitrate" good values are between 300-450 bitrate

    set x264 Preset to "Very Slow"
    NOTE: the slower the x264 preset the better the quality and the smaller the filesize but "Placebo" preset is a waste of time

    set x264 Tune to "Animation"
    NOTE: we choose "Animation" as the preset since we are encoding anime/cartoons or cel shaded videos but if your encoding live action movies/series then choose "Film"
    set H.264 Profile to "High"
    set H.264 Level to "Auto"


    [​IMG]


    Go to "Audio" tab click "Clear" button to remove all the audio on the queue
    Click "Add Track" then "Add New Track"
    On "Source" drop down box select an audio you want to add
    On "Codec" drop down box select "Vorbis"
    On "Mixdown: drop down box select "Mono"

    On "Bitrate" drop down box select "48" (this means you will encode the audio in 48 bitrate)
    NOTE: for multi-audio (like dual-audio) you do same steps just click "Add Track" again and do the steps again. Take note that the first audio you put on the queue will be the default audio when you play the reencoded file.

    NOTE: We set "Mixdown" to "Mono" and at 48kbps audio to ensure that we can encode sources that are FLAC and in 6 channels

    [​IMG]


    Go to "Subtitles" tab then click "Add Track" then click "Add New Track"
    On the "Source" drop down box select a subtitle of your choice. In this case I select a SSA/ASS subtitle then I check the "Burn In" checkbox for Hardsubbed or "Default" checkbox for Softsubbed

    NOTES:
    Hardsubbed - means the subtitles are irreversibly part of the video so you cannot turn off this or extract this kind of subs
    Softsubbed - means the subtitles are just part of the video like a text display that can easily be turn off or turn on back again and this kind of subtitles can be extracted

    [​IMG]

    [​IMG]

    Press "Start" button to start encoding. Alternatively you can click "Add to Queue" then start encoding from "Show Queue" the "Add to Queue" function is good if your gonna encode a lot of videos

    So that's it, happy encoding with Handbrake

    To speed up the reencoding of fansub anime
    Go to "Video Filters" tab and set it all to "Off"
    [​IMG]

    Next tutorial: MeGUI One-Click Tutorial (Coming soon)
     
  2. Fanatical01 Trophy Hunter

    Rank:
    Rank:
    Rank:
    Messages:
    13
    Joined:
    Feb 22, 2015
    Likes Received:
    0
    Trophy Points:
    60

    Ratings:
    +0 / 0 / -0
    Looks good!

    Would this work well on a Core 2 Duo? I have an old Dell PC from 2007 so I may try this if I have to encode anything, if my old CPU will run it well.
     
  3. Sporadic Site Dev Moderator Director

    Rank:
    Rank:
    Rank:
    Messages:
    8,972
    Joined:
    Mar 26, 2013
    Likes Received:
    972
    Trophy Points:
    335

    Ratings:
    +981 / 0 / -0
    Should work just fine.
     

Share This Page