Log in

View Full Version : How to do 'this' kind of vfr??


ben13
7th July 2011, 10:02
Recently, I got a video file with this info,


Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 9 frames
Format settings, GOP : M=1, N=62
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 23mn 4s
Bit rate mode : Variable
Bit rate : 1 872 Kbps
Nominal bit rate : 2 192 Kbps
Maximum bit rate : 10.8 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 25.602 fps
Original frame rate : 29.970 fps
Minimum frame rate : 17.982 fps
Maximum frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.079
Stream size : 309 MiB (93%)
Title : Imported with GPAC 0.4.6-DEV (internal rev. 8)
Writing library : x264 core 115 r1995 c1e60b9
Encoding settings : cabac=1 / ref=9 / deblock=1:1:1 / analyse=0x3:0x133 / me=hex / subme=10 / psy=1 / psy_rd=0.70:0.05 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=160 / rc=2pass / mbtree=1 / bitrate=2192 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.20
Encoded date : UTC 2011-07-04 16:59:06
Tagged date : UTC 2011-07-03 17:00:43


How to do that?

I also do vfr, but the details are like,


Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 6 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 8mn 20s
Bit rate : 2 128 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.077
Stream size : 127 MiB (98%)
Writing library : x264 core 115 r2008 4c552d8
Encoding settings : cabac=1 / ref=6 / deblock=1:1:1 / analyse=0x3:0x113 / me=hex / subme=9 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=19.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60


Avisynth script I use,



----------------
Analysis Pass
----------------

tfm(output="tfm.txt")

tdecimate(mode=4, output="stats.txt")

----------------
Encode Pass
----------------

tfm(input="tfm.txt")
tdecimate(mode=5, hybrid=2, tfmIn="tfm.txt", input="stats.txt", mkvout="timecodes.txt",batch=true)



then using the timecodes while muxing...

But how to get the video like the that first one?

ben13
7th July 2011, 22:11
Oh. I see.
what's this -->> M=1, N=62??