rogerxu / rogerxu.github.io

Roger Xu's Blog
2 stars 2 forks source link

Video Encode #238

Open rogerxu opened 5 years ago

rogerxu commented 5 years ago

Advanced Encoding Guide (silentaperture.gitlab.io)

encode_guide/高清视频转码进阶指南.md at master · typing-more/encode_guide (github.com)

rogerxu commented 5 years ago

Codec

H.264/MPEG-4 AVC

H.264/MPEG-4 AVC - Wikipedia

H.264 or MPEG-4 Part 10, Advanced Video Coding (MPEG-4 AVC)

High Efficiency Video Coding

High Efficiency Video Coding - Wikipedia

High Efficiency Video Coding (HEVC), also known as H.265 and MPEG-H Part 2

VP9

VP9 - Wikipedia

AV1

AV1 - Wikipedia

AOMedia Video 1 (AV1)

AVS

Audio Video Standard - Wikipedia

Audio Video Coding Standard (AVS)

rogerxu commented 5 years ago

MeGUI

File Indexer

image

AviSynth script creator

I/O

image

Filters

image

rogerxu commented 5 years ago

Avisynth

Avisynth wiki

Avisynth Script

example.avs

# input
LoadPlugin("C:\ProgramData\chocolatey\lib\megui\tools\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Videos\source.d2v", info=3)

# color
LoadPlugin("C:\ProgramData\chocolatey\lib\megui\tools\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)

# deinterlace
LoadPlugin("C:\ProgramData\chocolatey\lib\megui\tools\tools\avisynth_plugin\yadifmod2.dll")
Yadifmod2(order=1)

# crop
crop(6, 0, -4, 0)

# resize
Lanczos4Resize(864,480) # Lanczos4 (Sharp)

# denoise

Filters

rogerxu commented 5 years ago

Deinterlace

交错、反交错与IVTC —— 从入门到放弃 - 知乎 (zhihu.com)

De-interlacing and MeGUI - VideoHelp Forum

MSU Deinterlacer Benchmark (videoprocessing.ai)

NTSC

TIVTC/TDecimate - Avisynth wiki

Interlaced

High quality video deinterlacing: I just discovered “znedi3”, and boy am I happy about that! – The GAT at XIN.at

Yadif

Yadifmod2(order=1)

Partially interlaced

Yadif

Yadifmod2(order=1)

Hybrid film/interlaced. Mostly interlaced

TIVTC

tfm(order=1).tdecimate(hybrid=3)

Film

TIVTC

tfm(order=1).tdecimate()

Partially Film

TIVTC

tfm(order=1).tdecimate(hybrid=1)

Hybrid film/interlaced. Mostly film

TIVTC

tfm(order=1).tdecimate(hybrid=1)

M-in-5 decimation required

Tritical Decimate

TDecimate(cycleR=1)
rogerxu commented 3 years ago

x265

x265 Encoder 3.5 Free Download - VideoHelp

$ x265.exe --crf 20 --preset slow --output-depth 10 --no-sao
rogerxu commented 2 years ago

VapourSynth

Home Of VapourSynth Evolution (github.com)

VapourSynth 视频处理压制入门教程 - 哔哩哔哩 (bilibili.com)

Core Functions

Trim

clip = core.std.Trim(clip, first=0, [last=3600, length=3600])

Plugin

VSDB - VapourSynth Database

Source

LSMASHSource

clip = core.lsmas.LibavSMASHSource(r"%source_file%", fpsnum=30000, fpsden=1001)

Deinterlacing

QTGMC - Avisynth wiki

clip = core.std.SetFieldBased(clip, 2) # 1=BFF, 2=TFF
clip = havsfunc.QTGMC(clip, TFF=True, Preset='Slower', InputType=0, SourceMatch=3, Sharpness=0.2)

znedi3

clip = core.znedi3.nnedi3(clip, field=3)

Script

VapourSynth更新R57(附HDTV压制脚本211030) - 哔哩哔哩 (bilibili.com)

Morpheus1123/ZeroS-vapoursynth-template: 自用VS模板 (github.com)