ffmpeg: Only modify the -framerate parameter for setting video fps
-r only allows a limited set of target framerates according to the mpeg2 standard, but -framerate allows to specify how long each frame should be shown, giving us full control over "virtual" fps without causing errors when the user selects a non-standard frame rate
This commit is contained in:
1 parent
eabff453cd
commit
27fb397681
1 file changed
+1
-1
@@ -736,7 +736,7 @@ class TimelapseRenderJob(object):
|
||||
|
||||
command = [
|
||||
ffmpeg, '-framerate', str(fps), '-loglevel', 'error', '-i', '"{}"'.format(input), '-vcodec', 'mpeg2video',
|
||||
'-threads', str(threads), '-pix_fmt', 'yuv420p', '-r', str(fps), '-y', '-b', str(bitrate),
|
||||
'-threads', str(threads), '-pix_fmt', 'yuv420p', '-r', "25", '-y', '-b', str(bitrate),
|
||||
'-f', 'vob']
|
||||
|
||||
filter_string = cls._create_filter_string(hflip=hflip,
|
||||
|
||||
Reference in new issue
Block a user