Print input frame rate, and default to every_n_video_frames=2 which

gives better quality without compromising frame rate too much.
This commit is contained in:
kris
2019-03-21 23:25:51 +00:00
parent eebbccf711
commit f37d07914d
2 changed files with 5 additions and 3 deletions

View File

@ -19,7 +19,7 @@ parser.add_argument(
help='Override auto-detected multiplier for audio normalization.'
)
parser.add_argument(
'--every_n_video_frames', type=int, default=1,
'--every_n_video_frames', type=int, default=2,
help='Allows skipping frames of input video to lower effective output '
'frame rate, which may give better quality for some videos.'
)
@ -31,6 +31,8 @@ def main(args):
every_n_video_frames=args.every_n_video_frames,
audio_normalization=args.audio_normalization)
print("Input frame rate = %f" % m.video.input_frame_rate)
max_bytes_out = 1024. * 1024 * args.max_output_mb
if args.output: