from vapoursynth import core
import havsfunc as haf
clip = core.d2v.Source('index.d2v')
clip = haf.QTGMC(clip, Preset='Very Slow', Sharpness=0.3, FPSDivisor=1, TFF=True)
clip.set_output()
vspipe --y4m script.vpy - | ffmpeg -hide_banner -i pipe: -c:v libx264 -preset veryslow -tune film -crf 18 -x264-params ref=9:bframes=9:no-fast-pskip=1 video.mkv
ffmpeg -hide_banner -i index.ac3 -c:a libopus -af "loudnorm, volume=5dB" -b:a 96k audio.mka
Unique ID : 85627661208166671154525406299214251712 (0x406B49A552766ECDB3302B2C30F306C0)
Complete name : TSDV-41279.mkv
Format : Matroska
Format version : Version 4
File size : 903 MiB
Duration : 1 h 11 min
Overall bit rate : 1 771 kb/s
Encoded date : UTC 2020-06-30 15:14:48
Writing application : mkvmerge v47.0.0 ('Black Flag') 64-bit
Writing library : libebml v1.3.10 + libmatroska v1.5.2
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
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 11 min
Bit rate : 1 664 kb/s
Width : 716 pixels
Height : 478 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 3:2
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.081
Stream size : 849 MiB (94%)
Default : Yes
Forced : No
Audio
ID : 2
Format : Opus
Codec ID : A_OPUS
Duration : 1 h 11 min
Bit rate : 103 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 : 98 ms
Stream size : 52.5 MiB (6%)
Default : Yes
Forced : No