Log in

View Full Version : Variable Frame rate mode when encoding to x264


carmelobymelo
30th April 2010, 19:38
Hello, I'm having problem with encoding my TS 1080i file to 720p x264.
my avs script looks that:
LoadPlugin("C:\Program Files\megui\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("file.dga")LoadPlugin("C:\Program Files\megui\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("file.dga")LoadPlugin("C:\Program Files\megui\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("file.dga")
Load_Stdcall_Plugin("C:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=1)
crop( 2, 4, -6, -2)
fps=25
LanczosResize(1280,720) # Lanczos (Sharp)
#denoise
after encoding my x264 file looks that:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Muxing mode : Container profile=Unknown@3.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 20mn 28s
Nominal bit rate : 3 500 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 25.000 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.152
Writing library : x264 core 80 r1376M 3feaec2
Encoding settings : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=hex / subme=4 / psy=1 / psy_rd=0.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=16 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=3500 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Format_Settings_ModeExtension : MS Stereo
Codec ID : A_MPEG/L3
Codec ID/Hint : MP3
Duration : 20mn 28s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 48.0 KHz

and my question is how to avoid getting variable frame rate in output.

Inspector.Gadget
30th April 2010, 19:40
Why did you declare the FPS variable without using it anywhere?

carmelobymelo
30th April 2010, 19:43
Why did you declare the FPS variable without using it anywhere?
Sorry i dont understand what you mean. I do not want VFR but i can't get constant frame rate in any way. Please help.

Dark Shikari
30th April 2010, 19:44
Your x264 is old, Mediainfo is wrong, and Avisynth input is always interpreted as CFR.

txporter
30th April 2010, 19:46
Sorry i dont understand what you mean. I do not want VFR but i can't get constant frame rate in any way. Please help.

You wrote 'fps=25' which just defines a parameter assigns a value to it in avisynth. I think you want to use AssumeFPS(25) or ChangeFPS(25) if you are trying to force your script to 25 fps. Is the fact that your header says 'variable' actually causing a problem for you?

carmelobymelo
30th April 2010, 19:51
I dont know if its problem but on other x264 files i dont see VFR, it's only on my outputs.

carmelobymelo
30th April 2010, 20:00
I just noticed that if i enqueue only x264 compresion there is no VFR but if i use auto encode (with audio) output says VFR