Home > encode, x264, x264-bin > x264 rev2164+649 tMod

x264 rev2164+649 tMod

5th February 2012, Sunday Leave a comment Go to comments

Sources on GitHub: https://github.com/astrataro/x264_tMod.

Use win32thread and fprofiled:

 x264_rev2164+643_tMod.7z: MediaFireGitHubnmm-hd
 x264_rev2164+643_tMod-Special_offer.7z: MediaFireGitHubnmm-hd

Latest updates:
– Updated x264 to git-rev2164.
– Temporarily disabled avi-output. libav changed its APIs which were used in avi-output patch.
– Removed “Correct the limited-range 8->10 conversion algorithm” patch, x264 officially changed to fixed algorithm. However, now x264 uses shifting for both limited and full range, while the previous patch only used shifting for limited range. There is no clear standard document about full range 8->10 conversion, so if you prefer other algorithms, do it by yourself in avisynth and use –input-depth 10, so that my build will skip internal shifting/dithering.
– Updated lib packs ( libav/ffms/lame/vo-aacenc/vo-amrwbenc ).
– Added a “Special-offer” build which disabled interlaced/lavf/swscale/ffms/audio-encode, should be faster according to some test.

—– How to load subtitles internally –—
   These builds ported subtitles video-filter from direct264, and are able to render subtitles internally.
   To render subtitles in this way, demuxer must be libav/ffms. Raw/avs demuxer is not supported for now. And VSFilter.dll(for 32-bit builds) or VSFilter64.dll(for 64-bit builds) must be placed together with the x264 binary or in the system path. Do NOT change filenames of them.
   Rendering multiple subtitles is possible. Now you can render at most 16 subtitles simultaneously by calling –sub for each subtitles. Note that the later calling of –sub overlays the subtitles after previous calling of –sub, so if several subtitles are in the same position, the last one should overlays on all those rendered before.
   The VSFilters are modified to add custom csri API. Patches can be found in svn of direct264 project. Therefore do NOT replace them with other builds. BT.709/BT.601 is auto detected according to video resolution. For HD videos BT.709 is used and for SD videos BT.601 is used.
   Both 8-bit and 10-bit builds can use subtitles rendering, but rendering always takes place in 8-bit colorspaces.
   The commandline example to render subtitles:
x264_32_tMod-8bit-420.exe –sub “subtitles-1.ass” –sub “subtitles-2.ass” –sub “subtitles-3.ass” –video-filter subtitles[/Other video filters] [Other x264 options] –output “output.mp4″ “input.mkv”


–—––—–Download(L-Smash not included): patches-rev2164.7znmm-hd-Mirror

00:L-Smash(including audio encoding);
01:More detailed version head
02:Add back “touhou” tune
03:Film Grain Optimization
04:Fade Compensation
05:Remove stats before renaming
06:Add a parameter to set level of writing options in User Data Unregistered SEI
07:Utilize internal threading in lavf/ffms
08:Auto VBV settings
09:AVI output
10:filters hqdn3d pad vflip yadif patch
11:Log file
12:Encoding time
13:Level force
14:Profile force
16:New experimental AQ mode (modification of Auto-variance AQ)
17:Print video info with lavf/ffms demuxer
18:lto & Ofast
19:AviSynth 16bit hack
20:Skip bit depth filter when possible
21:Video filter: subtitles
22:Detect color matrix with lavf/ffms demuxer
23:Fix AviSynth color space converting matrix
24:High-precision fps
25:Unofficial –device
26:More detailed “zones” help
27-1:MixAQ-core;(only in tMod+MixAQ version, remove AQDebug)
27-2:OreAQ-core.(only in tMod+OreAQ version, remove AQDebug)

mingw-gcc 4.6.2

Libpack info:
ffms svn-r643
VSFilter svn-r3698 (MPC-HC)
lame 3.99-4
libvorbis-aotuv_b6.03 (libvorbis-1.3.2)
opencore-amr-0.1.2 r178 git-08d6986
faac 1.28
qtsdk 7.3

My other tools list ( including some of the x264 builds ) : MediaFire

Categories: encode, x264, x264-bin
  1. Mark
    6th February 2012, Monday at 01,03pm UTC

    Thanks 🙂
    need some help.
    I have this source,

    can tell me how can i remove blur from this video…one of friend do this but he don’t tell me anything..i think he uses some filter…can you please help me. Here his result,

    • 6th February 2012, Monday at 01,58pm UTC

      Degrain, awarpsharp without masking, then tweak the colour.
      Personally I don’t recommend doing so. The original details are totally ruined, and any custom changes on colour(except for range/matrix correction) generates only WRONG result, not better or worse one.

  2. Mark
    6th February 2012, Monday at 03,58pm UTC

    Thanks taro 🙂
    Is that source ok …… if not what can i do to improve that video….any suggestion?
    how can i tweak the colour(range/matrix correction)

    can tell me why it shows undef?
    lavf [info]: color matrix: undef

    • 6th February 2012, Monday at 06,40pm UTC

      The source looks fine. At least the colour looks correct. It has some blocking but I’m not sure if it is resulted from jpg encoding. If not, apply some deblock filter like Deblock_QED. If you prefer the less blurry picture, do some sharpening with MSharpen/lsfmod with weak strength. Actually the edges are already sharp enough for me, even with some weak aliasing which I believe is generated by resizing filter.

      lavf reads colour matrix from stream. If the stream doesn’t contain such information, then lavf will report “undef”. To find out if the video has such information or not, open it with MediaInfo and see if there is a colour matrix flag for the video track (e.g., Matrix coefficients: BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177).

  3. Mark
    7th February 2012, Tuesday at 01,08am UTC

    Thanks for help. 🙂
    Actually the source is
    Width : 1 440 pixels
    Height : 1 080 pixels
    and i want resize it to,
    Width : 960 pixels
    Height : 720 pixels
    Can you tell me which resize filter should i use?

    Are these values correct for Deblock_QED?

    • 7th February 2012, Tuesday at 12,18pm UTC

      Then leave the aliasing away, it is actually too weak to be annoying. Spline36, Bicubic or Lanczos3 is usually good enough for downscaling.

      Deblock_QED’s settings usually do not need to be that strong. quant1=10~25/quant2=20~50 with default aOff/bOff is a moderate strength.

  4. Mark
    7th February 2012, Tuesday at 05,41pm UTC

    Thanks taro 🙂
    I want encode a 8bit video to 10bit. Can you please suggest me some tips for this. I use Simple x264 Launcher with your 10bit x264 build.
    Any info about aq mode 4?

  5. 7th February 2012, Tuesday at 09,54pm UTC

    x264 can convert 8bit to 10bit internally. So just do the same thing as you did when encoding a 8bit src video to 8bit dest clip, except for replacing the x264 binary. But if you would like to filter in 16-bit precision in avisynth using dither pack or f3kdb, which may output interleaved MSB/LSB clips, then you need to add –input-depth=16/10 in your command line. Further helps: http://avisynth.org/mediawiki/High_bit-depth_Support_with_Avisynth

    aq-mode 4 has been updated in 2164+649 tMod v2.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: