View Full Version : VFR with x264
vlada
14th July 2005, 09:30
Hello,
I'm converting a DV source to MPEG-4 AVC (x264). I'm doing a deinterlace into 50 fps using DgBob. But for most scenes 50 fps is not necessary. So I would like to create a VFR video. How can I do it?
Can I have VFR in MP4 or only matroska supports it? Is there a chance to get VFR from x264 encoder or are there any filters for Avisynth?
Thank you,
Vlada
Manao
14th July 2005, 10:54
VFR is supported by both MP4 and MKV. However, x264 cli and vfw doesn't support vfr. Mencoder might though ( but i'm not sure )
Avisynth (2.5 at least) won't ever be able to do vfr ( avi -> inherently CFR )
vlada
14th July 2005, 15:42
I know XviD has an option to drop a frame if it's similar to the previous one. But it is probably not a real VFR, because it is possible to have such movie in an AVI container.
Wilbert
14th July 2005, 16:02
I know XviD has an option to drop a frame if it's similar to the previous one.
... called n-vops. But i'm not really satisfied with it. (... and indeed avi is always cfr.)
What you can do is use AviSynth's MultDecimate to create timecodes file and encode to MKV:
http://www.avisynth.org/VariableFrameRateVideo
Start reading from "The description below is an adjusted copy of a description of HeadlessCow (...)".
vlada
6th January 2007, 21:35
I'd like to reopen this thread. Unfortunately AviSynth site is down already for quite a long time. So I couldn't get an inspiration from the article Wilbert posted. It's quite a long time since I read it last time.
I just discovered an AviSynth plugin from neuron2 - DUP (http://neuron2.net/dup/dupnew.html). I think it is ideal to my needs, it will delete each frame which is similar to it's predecessor. The only problem is, that I need a file to log deleted frames, which MKVToolnix can use to create a VFR file. Any suggestions?
fakey
7th January 2007, 00:24
Try DeDup
http://akuvian.org/src/avisynth/dedup/
Wilbert
7th January 2007, 02:23
I'd like to reopen this thread. Unfortunately AviSynth site is down already for quite a long time. So I couldn't get an inspiration from the article Wilbert posted. It's quite a long time since I read it last time.
That article is also included in the offline documentation.
bond
9th January 2007, 22:12
:readfaq: for vfr in mp4
vlada
11th January 2007, 12:31
I read the FAQ, but there is no answer to my question. There are 3 options:
1) Append files - can't work for me
2) Drop N-VOPs. Does x264 create N-VOPs? I think it doesn't, I haven't seen this option.
3) The last guide is MKV VFR to MP4 VFR conversion. I have a CFR source.
One more question: I tried XviD to create MPEG-4 ASP movie with N-VOPs. No matter what I have set in "Frame Drop Ratio", there are no N-VOPs (according to GSpot and MPEG4 Modifier) in the resulting file. Why? I use XviD version 1.1.2. I remember in versions 1.0.x I had problems that there were N-VOPs even if I set FDR to 0.
foxyshadis
11th January 2007, 23:25
All you need is dedup's timecodes entered into mkvtoolnix's properties. This works for any video track, whether it's AVC or Indeo 5. The method is listed under 120fps video but works for normal video as well. (Just use whatever maxdrops and maxcopies you want.)
bond
12th January 2007, 22:59
you need to create a mkv timecode file for a vfr mp4 file like you would create for a vfr mkv file :search:
vlada
13th January 2007, 14:26
you need to create a mkv timecode file for a vfr mp4 file like you would create for a vfr mkv file :search:
I knew it, I just didn't know how do I create the timecode file. I was probably not very clear in my questions, sorry.
Thank you all for the answers.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.