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.Spline36(clip, width=1440, height=1080)
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 : 337950211737118630399905891044651867972 (0xFE3ED7DF358F310EAB28BE2DA24A9F44)
Complete name : LCBD-00666.mkv
Format : Matroska
Format version : Version 4
File size : 3.82 GiB
Duration : 1 h 37 min
Overall bit rate : 5 592 kb/s
Writing application : mkvmerge v38.0.0 ('The Silent Type') 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 37 min
Bit rate : 5 492 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.059
Stream size : 3.75 GiB (98%)
Default : Yes
Forced : No
Audio
ID : 2
Format : Opus
Codec ID : A_OPUS
Duration : 1 h 37 min
Bit rate : 95.0 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 : 91 ms
Stream size : 66.4 MiB (2%)
Default : Yes
Forced : No