Dedup works with AVI container GUIDE

Posted by leiming

Dedup is an avisynth plugin, it makes the number of frames less while the video seems no change. It makes a clip VFR and it always works with MKV container.

But in fact, if fill the room of frames that it deletes with drop frames it can work with AVI container well, too. So I find a way that can make dedup work with AVI container.

There is a tool called AVIRead (AVIRead is a tool made by sswroom), can insert drop frames in a AVI by loading a script. So I make a tool to
convert timecode format v2 to the script it needed (called ASC).

usage: tc2asc <timecode v2>  [fps]

by default, the fps is 23.976.

after using dedup, you’ll get a timecode v2 file. converting it into asc with the tool. the parameter fps is what the framerate of source is before using dedup.

After compressing, don’t mux that AVI into MKV, just open it with AVIRead. then
Edit->insert drop frames using script file(60fps), press the browse button and open the asc file. then press OK button. After do this, drop frames is inserted. but the framerate becomes wrong. Edit -> Change frame rate, restores its framerate to the same as source, then save the AVI file. (don’t overwrite the avi file you open, it leads to error)

At last, mux the AVI file with audio. Finish!

My English is poor, so if there is anything confused please leave a comment.

tc2asc

a better one of tc2asc 

aviread.zip (Author: sswroom)

below is the translation of niiyan-san (part).

DeDup プラグインを AVI フォーマットで使用する手順(Leiming’s media-related blog » Blog Archive » Dedup works with AVI container GUIDE より)
i.DeDup を使用し、timecode v2 を作成。
ii.tc2asc を使って、timecode v2 を asc ファイルに変換。
iii.圧縮後、AVI を MKV には格納せず、AVIRead で開く。
iv.Edit -> insert drop frames using script file(60fps) -> Browse ボタンを押して asc ファイルを開き、OK ボタンを押す。
v.ドロップフレームが挿入されるが、ただしフレームレートが間違っているので、Edit -> Change frame rate でフレームレートをソースと同じに戻す。
vi.AVI ファイルを保存(開いたファイルを上書きしないこと)。
vii.AVI ファイルを音声と合成する。

tc2asc の使用法
tc2asc [fps] <timecode>
fps のデフォルトは 23.976。

3 Responses to “Dedup works with AVI container GUIDE”

  1. Richard Says:

    Thanks, I don’t understand now but will read again.

    Richard

  2. muken Says:

    Are there any reasons using AVIRead for inserting Drop-frames into AVI container?
    Tc2cfr (by tritical) or avitmux (by Aji) can insert Drop-frames into AVI with timecode file. (avitmux supports only v2)
    Yes, AVIRead is very nice and precise VFR tool for imitative-VFR (such as 120 fps/60 fps AVI) which can do manual IVTC easily with TMPGEnc. Moreover, AVIRead can insert Drop-frames into Video, and mux it and audio into AVI at the same time. (I don’t know any application that can do it.)

    Though the followings are not what you intend, I try to adapt tc2asc to timecode files which AVIRead and TCGenedit (my VFR tool imitating seeking IVTC pattern of AVIRead) generates from a TMPGEnc project file, and tc2asc extracts AVI Scripts.
    I open the script and video, and output 60 fps AVI container with AVIRead.
    The AVI has the wrong timing frames. AVI generated from ASC using TMPGEnc project file with AVIRead has right timimg frames.
    Why does this happen?

    Because AVIRead doesn’t recognize ‘0′ until the first ‘1′ comes.
    For example, “0000100000″ is identified with “1000000000″ in AVIRead, and the timing of the frame will shift from the original.
    This is fatal on deduplication.

  3. leiming Says:

    I know.
    Don’t leave the avi 60fps, it does be wrong.
    In fact its framerate is the same as input, so please use “change frame rate”.
    I use aviread because I want to avoid it becomes 60fps or 120fps.

Leave a Reply