Open siteshen opened 2 years ago
https://github.com/escaped/django-video-encoding/blob/master/video_encoding/backends/ffmpeg.py#L110-L112 yield value [0, 1]
[0, 1]
percent = round(time / total_time, 2) logger.debug('yield {}%'.format(percent)) yield percent
while https://github.com/escaped/django-video-encoding/blob/master/video_encoding/backends/ffmpeg.py#L124 yield value 100
100
yield 100
https://github.com/escaped/django-video-encoding/blob/master/video_encoding/backends/ffmpeg.py#L110-L112 yield value
[0, 1]
while https://github.com/escaped/django-video-encoding/blob/master/video_encoding/backends/ffmpeg.py#L124 yield value
100