Yukine¶
Yukine is a framework for Python that attempts to make av1 encoding and muxing easier.
Features¶
Define an encode and mux as a single object
Mux in audio and subtitle from an existing video or subtitle file, regex can be used to match certain tracks based on language, name, etc.
Av1an is optional. We provide our own (experimental) chunked encoding system.
Define a (limited) set of Vapoursynth filters to be used, rather than providing a full Vapoursynth script.
Restyle the subtitles using
muxtoolsAnd more!
Example of a Source object:¶
Example Source Object
vid1 = Source(
video_input="video.mkv",
importer=ImportMethod.FFMS2,
av1an_settings="--workers 4 -x 240",
encoder_settings="--preset 10 --crf 30",
video_encoder=Encoder.svt_av1,
encoding_method=EncodingMethod.av1an,
audio=[
SetAudioTrack(
file="video.mkv",
encoder=AudioEncoder.OPUS,
)
],
subs=[
SetSubtitleTrack(
file="video.mkv"
)
],
)
Example of using the Source object:¶
Encode(vid1).run()
mux(vid1)
It can be as simple, or as difficult as you want it to be.