Log in

View Full Version : Dedup works with AVI container GUIDE


leiming2006
19th July 2007, 04:04
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.

download tctoasc and aviread:
http://leiming.fre3.com/2007/07/19/dedup-works-with-avi-container-guide/

edit: there is a newer and better "tc2asc" by muken-san
please consider using that.

Wilbert
19th July 2007, 19:52
Cool! Could you (and ask sswroom as well) make it open source?

leiming2006
20th July 2007, 01:11
OK, now tcv2toasc is open-sourced.
I can't get in touch with sswroom.

http://sswroom.no-ip.org:5080/
this seems to be sswroom's homepage. But the *.no-ip.org is banned by the Great Firewall of China.

edit: if there already exists D frames in AVI file(like WMV9VCM and so on), this way isn't suitable.

Wilbert
20th July 2007, 23:12
Ok, thanks! I've send him an e-mail. I hope he will respond :)

leiming2006
22nd July 2007, 03:05
Only one person reply......

If it's because my English is confused, please let me know.
I'll try to explain the place that is confused while this can improve my English.

Wilbert
22nd July 2007, 13:16
I received the following reply from Simon:
I am sorry that I do not want to make AVIRead open sourced at this moment.

I find that algorithm of Leiming's tc2asc may result 1/120s error for some frames (by watching in the source code). However, I don't have free time now to write a perfect conversion program. It may take me 1 to 2 hour to do so. I will write a series of conversion program when I am free.

Thanks for your attention

sswroom (from Hong Kong)
his address: sswroom at yahoo.com

Boulder
22nd July 2007, 14:02
Only one person reply......

If it's because my English is confused, please let me know.
I'll try to explain the place that is confused while this can improve my English.[slightly off topic]If I may say, your English is better than many English/American people can produce ;)[/slightly off topic]

leiming2006
22nd July 2007, 15:18
I'm sorry but I didn't realize this error's existing.
I'm now in a summer break so I can try to find what causes this problem.

Regards,
LeiMing
[slightly off topic]If I may say, your English is better than many English/American people can produce ;)[/slightly off topic]

thank you

squid_80
23rd July 2007, 03:38
Sounds a lot like Tritical's avi_tc_package (http://bengal.missouri.edu/~kes25c/#c3).

leiming2006
23rd July 2007, 06:56
Sounds a lot like Tritical's avi_tc_package (http://bengal.missouri.edu/~kes25c/#c3).
on this way the framerate needn't become 120 or 60.
It can keep 23.976, 29.97, 25 ect.