Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th June 2009, 17:34   #1  |  Link
thewebchat
Advanced Blogging
 
Join Date: May 2009
Posts: 480
How do I create a 120fps "VFR" AVC AVI

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).
thewebchat is offline   Reply With Quote
Old 7th June 2009, 17:37   #2  |  Link
Inspector.Gadget
Registered User
 
Join Date: May 2008
Posts: 1,618
Why AVC-in-AVI? Why not AVC-in-MKV?
Inspector.Gadget is offline   Reply With Quote
Old 7th June 2009, 17:45   #3  |  Link
thewebchat
Advanced Blogging
 
Join Date: May 2009
Posts: 480
Because that's what this thread is about. It's not about AVC in MKV.
thewebchat is offline   Reply With Quote
Old 7th June 2009, 17:55   #4  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
Quote:
Originally Posted by thewebchat View Post
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().
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 7th June 2009, 17:56   #5  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,815
Quote:
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???
Atak_Snajpera is offline   Reply With Quote
Old 7th June 2009, 17:58   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by kemuri-_9 View Post
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)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 7th June 2009 at 18:17.
LoRd_MuldeR is offline   Reply With Quote
Old 7th June 2009, 18:49   #7  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
You can create 120fps AVI using mencoder.
roozhou is offline   Reply With Quote
Old 7th June 2009, 19:48   #8  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
tc2cfr (avi_tc_package)

http://web.missouri.edu/~kes25c/
Comatose is offline   Reply With Quote
Old 7th June 2009, 20:18   #9  |  Link
thewebchat
Advanced Blogging
 
Join Date: May 2009
Posts: 480
@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....er.devel/47818)

Last edited by thewebchat; 7th June 2009 at 20:30.
thewebchat is offline   Reply With Quote
Old 7th June 2009, 22:06   #10  |  Link
thewebchat
Advanced Blogging
 
Join Date: May 2009
Posts: 480
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.
thewebchat is offline   Reply With Quote
Old 8th June 2009, 07:47   #11  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
Quote:
Originally Posted by thewebchat View Post
@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....er.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.
roozhou is offline   Reply With Quote
Old 8th June 2009, 15:42   #12  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
Use AVIRead and tc2asc.
http://sswroom.no-ip.org:5080/compprog
http://leiming.fre3.com/2007/07/19/d...ntainer-guide/
http://www.esnips.com/web/VFRmaniac-Softwares
Chikuzen is offline   Reply With Quote
Old 8th June 2009, 21:42   #13  |  Link
TheRyuu
warpsharpened
 
Join Date: Feb 2007
Posts: 787
Quote:
Originally Posted by thewebchat View Post
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?

Quote:
Originally Posted by thewebchat View Post
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.

Last edited by TheRyuu; 8th June 2009 at 21:46.
TheRyuu is offline   Reply With Quote
Old 9th June 2009, 00:18   #14  |  Link
thewebchat
Advanced Blogging
 
Join Date: May 2009
Posts: 480
@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.

Last edited by thewebchat; 9th June 2009 at 00:27.
thewebchat is offline   Reply With Quote
Old 9th June 2009, 01:39   #15  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
Quote:
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".
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software
VFR maniac is offline   Reply With Quote
Old 9th June 2009, 01:50   #16  |  Link
thewebchat
Advanced Blogging
 
Join Date: May 2009
Posts: 480
@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.

Last edited by thewebchat; 9th June 2009 at 01:58.
thewebchat is offline   Reply With Quote
Old 9th June 2009, 07:44   #17  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
Quote:
Originally Posted by thewebchat View Post
@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
roozhou is offline   Reply With Quote
Old 9th June 2009, 16:48   #18  |  Link
thewebchat
Advanced Blogging
 
Join Date: May 2009
Posts: 480
@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.
thewebchat is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:20.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.