mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-25 09:44:32 +01:00
parent
48838ac406
commit
2ce8dba163
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import json
|
import json
|
||||||
import math
|
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import shutil
|
import shutil
|
||||||
@ -519,7 +518,7 @@ def get_base_ffmpeg_command(
|
|||||||
|
|
||||||
# avoid very high frame rates
|
# avoid very high frame rates
|
||||||
while target_fps > 60:
|
while target_fps > 60:
|
||||||
target_fps = target_fps/2
|
target_fps = target_fps / 2
|
||||||
|
|
||||||
if target_fps < 1:
|
if target_fps < 1:
|
||||||
target_fps = 1
|
target_fps = 1
|
||||||
@ -707,7 +706,6 @@ def produce_ffmpeg_commands(media_file, media_info, resolution, codec, output_fi
|
|||||||
# target_fps = 25
|
# target_fps = 25
|
||||||
# else:
|
# else:
|
||||||
|
|
||||||
|
|
||||||
if media_info.get("video_duration") > CRF_ENCODING_NUM_SECONDS:
|
if media_info.get("video_duration") > CRF_ENCODING_NUM_SECONDS:
|
||||||
enc_type = "crf"
|
enc_type = "crf"
|
||||||
else:
|
else:
|
||||||
@ -718,7 +716,6 @@ def produce_ffmpeg_commands(media_file, media_info, resolution, codec, output_fi
|
|||||||
elif enc_type == "crf":
|
elif enc_type == "crf":
|
||||||
passes = [2]
|
passes = [2]
|
||||||
|
|
||||||
|
|
||||||
cmds = []
|
cmds = []
|
||||||
for pass_number in passes:
|
for pass_number in passes:
|
||||||
cmds.append(
|
cmds.append(
|
||||||
|
1
version.py
Normal file
1
version.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.6
|
Loading…
Reference in New Issue
Block a user