forked from 0x2620/pandora
reuse fps
This commit is contained in:
parent
ca701b9749
commit
b482600179
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
|
||||||
'-pix_fmt', 'yuv420p',
|
'-pix_fmt', 'yuv420p',
|
||||||
]
|
]
|
||||||
if info['video'][0].get("force_framerate"):
|
if info['video'][0].get("force_framerate"):
|
||||||
video_settings += ['-r:v', str(float(info['video'][0]["framerate"]))]
|
video_settings += ['-r:v', str(fps)]
|
||||||
video_settings += ['-map', '0:%s,0:0' % info['video'][0]['id']]
|
video_settings += ['-map', '0:%s,0:0' % info['video'][0]['id']]
|
||||||
audio_only = False
|
audio_only = False
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue