From b91c3857743029aef0008f1f9ed79434bcca6b30 Mon Sep 17 00:00:00 2001
From: Kazuki Matsuda <mats.kazuki@gmail.com>
Date: Wed, 3 Jun 2020 08:36:27 +0900
Subject: [PATCH] add -async option suppotr

---
 ffmpeg/_run.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ffmpeg/_run.py b/ffmpeg/_run.py
index c9cbb7c..1db70aa 100644
--- a/ffmpeg/_run.py
+++ b/ffmpeg/_run.py
@@ -134,6 +134,10 @@ def _get_output_args(node, stream_name_map):
         args += ['-b:v', str(kwargs.pop('video_bitrate'))]
     if 'audio_bitrate' in kwargs:
         args += ['-b:a', str(kwargs.pop('audio_bitrate'))]
+    if 'video_sync' in kwargs:
+        args += ['-vsync', str(kwargs.pop('video_sync'))]
+    if 'audio_sync' in kwargs:
+        args += ['-async', str(kwargs.pop('audio_sync'))]
     if 'video_size' in kwargs:
         video_size = kwargs.pop('video_size')
         if not isinstance(video_size, basestring) and isinstance(
-- 
GitLab