adjusted FFmpeg options and added comments

This commit is contained in:
k4yt3x 2020-05-14 19:55:25 -04:00
parent 98a7fbf9cb
commit c1c96815cf

View File

@ -104,39 +104,41 @@ ffmpeg:
# Step 1: Frame Extraction # Step 1: Frame Extraction
# extract all frames from original input into temporary directory # extract all frames from original input into temporary directory
extract_frames: extract_frames:
'-hwaccel': auto '-hwaccel': auto # automatically select hardware acceleration method
'-y': true '-y': true
input_options: {} # empty dict, expand if necessary
output_options: output_options:
'-qscale:v': null '-pix_fmt': rgba64be # extracted frames pixel format
'-pix_fmt': rgba64be '-qscale:v': null # output image quality control for JPEG (1-31, 1 being highest)
# Step 2: Video Assembly # Step 2: Video Assembly
# assemble all frames back into a video with only a video track # assemble all frames back into a video with only a video track
assemble_video: assemble_video:
'-hwaccel': auto '-hwaccel': auto # automatically select hardware acceleration method
'-y': true '-y': true
input_options: input_options:
'-qscale:v': null '-f': image2 # force image2 format
'-qscale:a': null
'-f': image2
output_options: output_options:
'-vcodec': libx264 '-vcodec': libx264 # video codec
'-crf': 17 '-pix_fmt': 'yuv444p10le' # overwrite default pixel format
'-b:v': null '-crf': 17 # H.264 Constant Rate Factor
'-pix_fmt': null '-b:v': null # target average bitrate
# Step 3: Streams Migration # Step 3: Streams Migration
# migrate audio and subtitle streams from original # migrate audio and subtitle streams from original
# video into the upscaled video # video into the upscaled video
migrate_streams: migrate_streams:
'-hwaccel': auto '-hwaccel': auto # automatically select hardware acceleration method
'-y': true '-y': true
input_options: {} # empty dict, expand if necessary
output_options: output_options:
'-map': '-map':
- '0:v?' - '0:v?' # copy video streams
- '1:a?' - '1:a?' # copy audio streams
- '1:s?' - '1:s?' # copy subtitle streams
- '1:d?' - '1:d?' # copy data streams
- '1:t?' - '1:t?' # copy fonts
'-c': copy '-c': copy # copy codec for all streams
'-map_metadata': 0 # copy known metadata tags
# '-movflags': 'use_metadata_tags' # copy custom/arbitrary metadata tags
'-pix_fmt': null '-pix_fmt': null
'-metadata': 'comment=Upscaled by Video2X' '-metadata': 'comment=Upscaled by Video2X'
gifski: gifski: