This commit is contained in:
Colombo 2020-01-22 17:21:33 +04:00
parent 60804ca3ba
commit 3924ef2bf5
2 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ def cut_video ( input_file, from_time=None, to_time=None, audio_track_id=None, b
if bitrate is None:
bitrate = max (1, io.input_int ("Bitrate of output file in MB/s", 25) )
kwargs = {"c:v": "libx264",
kwargs = {"c:v": "libx265",
"b:v": "%dM" %(bitrate),
"pix_fmt": "yuv420p",
}
@ -188,7 +188,7 @@ def video_from_sequence( input_dir, output_file, reference_file=None, ext=None,
output_kwargs.update ({"c:v": "png"
})
else:
output_kwargs.update ({"c:v": "libx264",
output_kwargs.update ({"c:v": "libx265",
"b:v": "%dM" %(bitrate),
"pix_fmt": "yuv420p",
})