Commit 58f38116856a89259e53c4349b00bc039a79f1a9
1 parent
f770dde5
Exists in
master
Exporta vídeos com o codec h.264.
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
util.py
... | ... | @@ -249,12 +249,15 @@ def render_sign(user_id = "", sinal = "", frame_final = bpy.context.scene.frame_ |
249 | 249 | if pyutil.file_exists(temp_filename_mp4): |
250 | 250 | getcwd = os.path.dirname(os.path.abspath(__file__)) |
251 | 251 | user_directory = os.path.join(getcwd, "users", user_id) |
252 | + user_full_path_webm = os.path.join(user_directory, sinal + ".webm") | |
253 | + user_full_path_mp4 = os.path.join(user_directory, sinal + ".mp4") | |
254 | + | |
252 | 255 | if (make_dir(user_directory)): |
253 | 256 | pyutil.log("user dir created: %s" % (user_directory)) |
254 | 257 | subprocess.call(["avconv", "-loglevel", "0", "-y", "-i", temp_filename_mp4, "-r", "24", "-vcodec", "libvpx", temp_filename_webm]) |
258 | + subprocess.call(["avconv", "-loglevel", "0", "-y", "-i", temp_filename_mp4, "-r", "24", "-vcodec", "libx264", user_full_path_mp4]) | |
255 | 259 | subprocess.call(["rm", "-f", temp_filename_mp4]) |
256 | 260 | if pyutil.file_exists(temp_filename_webm): |
257 | - user_full_path_webm = os.path.join(user_directory, sinal + ".webm") | |
258 | 261 | try: |
259 | 262 | shutil.copy(temp_filename_webm, user_full_path_webm) |
260 | 263 | subprocess.call(["rm", "-f", temp_filename_webm]) | ... | ... |