View Full Version : How do I create a 120fps "VFR" AVC AVI
thewebchat
7th June 2009, 18:34
I need to convert some hybrid 24/30fps footage to AVC in AVI. Does anyone know how to create a 120fps hybrid AVI with nullframes for this (in the same manner as 120fps DivX encodes).
Inspector.Gadget
7th June 2009, 18:37
Why AVC-in-AVI? Why not AVC-in-MKV?
thewebchat
7th June 2009, 18:45
Because that's what this thread is about. It's not about AVC in MKV.
kemuri-_9
7th June 2009, 18:55
Because that's what this thread is about. It's not about AVC in MKV.
totally missing the point of his question...
1. AVC is not compatible with AVI and should not be used as the container.
2. AVI itself can't handle VFR.
remove the VFR point from the thread title as you're wanting a VFR -> CFR conversion. the end result is not VFR at all.
you can do this with avisynth using trim(), AssumeFPS(), and ChangeFPS().
Atak_Snajpera
7th June 2009, 18:56
Because that's what this thread is about. It's not about AVC in MKV.
If you are that smart you should also know that AVC in AVI is a HUGE mistake! Is there any particular reason why you want to use container from 1992???
LoRd_MuldeR
7th June 2009, 18:58
AVI itself can't handle VFR
That's probably the reason why he wants to emulate VFR by using the least common multiple framerate and inserting dummy frames to compensate ;)
Still the question why he can't use MKV with "native" VFR support, which would be the preferred method here...
(BTW: Despite all the rumors, there's no real problem with H.264 in AVI as long as we aren't talking about hardware players. All the common software players do handle it fine in fact)
roozhou
7th June 2009, 19:49
You can create 120fps AVI using mencoder.
Comatose
7th June 2009, 20:48
tc2cfr (avi_tc_package)
http://web.missouri.edu/~kes25c/
thewebchat
7th June 2009, 21:18
@comatose
I did try using tritical's tc2cfr tool but it complained about "Number of data chunks does not match frame count" with the timecodes file
# timecode format v1
Assume 23.976023976024
324,383,29.97
Edit: the AVC AVI was prepared as such:
FFVideoSource("vfr.mkv")
AssumeFPS(24000/1001)
fed to x264vfw in VirtualDub
Edit2: @roozhuu - Can you elaborate on the usage of MEncoder to create 120fps AVC AVIs? I found a mailing list post about a patch to MEncoder that enables this function but it dates back to 2008 (http://article.gmane.org/gmane.comp.video.mplayer.devel/47818)
thewebchat
7th June 2009, 23:06
Ah, I found the problem. tc2cfr wasn't liking the AVIs generated by VirtualDub, but after remuxing the AVI once with cfr2tc, I was able to generate the 120fps AVI.
roozhou
8th June 2009, 08:47
@comatose
Edit2: @roozhuu - Can you elaborate on the usage of MEncoder to create 120fps AVC AVIs? I found a mailing list post about a patch to MEncoder that enables this function but it dates back to 2008 (http://article.gmane.org/gmane.comp.video.mplayer.devel/47818)
MEncoder has two built-in adaptive IVTC filters(ivtc and pullup), which only filter IVTCed portion and leave non-IVTCed portion as is.
try something like
mencoder -vf pullup -ofps 12000/1001 ...
Well, it's not perfect because the pts of IVTCed parts created by mencoder are not accurate, resulting in mixed 20fps/30fps or even worse 17fps/24fps/30fps.
Chikuzen
8th June 2009, 16:42
Use AVIRead and tc2asc.
http://sswroom.no-ip.org:5080/compprog
http://leiming.fre3.com/2007/07/19/dedup-works-with-avi-container-guide/
http://www.esnips.com/web/VFRmaniac-Softwares
TheRyuu
8th June 2009, 22:42
I need to convert some hybrid 24/30fps footage to AVC in AVI. Does anyone know how to create a 120fps hybrid AVI with nullframes for this (in the same manner as 120fps DivX encodes).
Is there anything particularlly wrong with mkv + timecodes?
Because that's what this thread is about. It's not about AVC in MKV.
So lets continue to use stupid shit (120fps stuff) in more stupid shit (avi)...
Double whammy!
Logic is flawless sir.
thewebchat
9th June 2009, 01:18
@Chikuzen
I was not able to understand the instructions for AVIRead and tc2asc, but I attempted to create my asc file as such
tc2asc timecodes_v2.txt test.asc 120000 1001 10
After loading the AVI in AVIRead and using "add drop frames (120fps)" and saving, the result plays very slowly, as though it had been slowed by around 4x.
@roozhou
That solution would create a file that actually has 120 coded frames per second, which would certainly not be a good idea. What I want is a 120fps AVI with special nullframes.
VFR maniac
9th June 2009, 02:39
After loading the AVI in AVIRead and using "add drop frames (120fps)" and saving, the result plays very slowly, as though it had been slowed by around 4x.
Please use "Edit->insert drop frames using script file(60fps)", after do this, change the target framerate with "Edit -> Change frame rate".
thewebchat
9th June 2009, 02:50
@VFR Maniac
In tc2asc, do I specify the output framerate as 60 or 120 then?
Edit: Never mind, I used "Add Drop Frames (60fps)" + "Change Framerate" with a 120fps ASC and it worked. Thank you, VFR Maniac and Chikuzen.
roozhou
9th June 2009, 08:44
@Chikuzen
That solution would create a file that actually has 120 coded frames per second, which would certainly not be a good idea. What I want is a 120fps AVI with special nullframes.
Have you ever tried it? MEncoder does insert nullframes if you do not use -vf harddup
thewebchat
9th June 2009, 17:48
@roozhou: Ah, I am sorry. I did not know that.
It seems I have found three satisfactory solutions for this:
1) use tc2avi
2) use AVIRead with tc2asc
3) use MEncoder
Thank you to roozhou, VFR maniac, Chikuzen, and Comatose.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.