These are approximate encoding settings.
from vapoursynth import core
import havsfunc as haf
clip = core.lsmas.LWLibavSource('00001.m2ts')
clip = haf.QTGMC(clip, Preset='Fast', Sharpness=0.3, FPSDivisor=1, TFF=True)
clip = core.resize.Bicubic(clip, width=1440, height=1080, filter_param_a=0.0, filter_param_b=0.5)
clip.set_output()
vspipe --y4m script.vpy - | ffmpeg -hide_banner -i pipe: -c:v libx264 -preset veryslow -tune film -crf 19 -x264-params ref=9:bframes=9:no-fast-pskip=1 video.mkv
ffmpeg -hide_banner -i 00001.m2ts -c:a libopus -b:a 96k audio.mka
Unique ID : 168579436790803907909816310698446555702 (0x7ED337F1BC2D962350F68C9D69360A36)
Complete name : LCBD-00668.mkv
Format : Matroska
Format version : Version 4
File size : 5.34 GiB
Duration : 1 h 34 min
Overall bit rate : 8 081 kb/s
Writing application : mkvmerge v37.0.0 ('Leave It') 64-bit
Writing library : libebml v1.3.9 + libmatroska v1.5.2
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5
Format settings : CABAC / 9 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 9 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 34 min
Bit rate : 7 976 kb/s
Width : 1 440 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.086
Stream size : 5.27 GiB (99%)
Default : Yes
Forced : No
Audio
ID : 2
Format : Opus
Codec ID : A_OPUS
Duration : 1 h 34 min
Bit rate : 101 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 50.000 FPS (960 SPF)
Compression mode : Lossy
Delay relative to video : 88 ms
Stream size : 68.3 MiB (1%)
Default : Yes
Forced : No