Merge f2aba306746f9795833fd0923c66951d74cf586c into df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6

This commit is contained in:
Harsh 2022-07-11 16:48:19 -07:00 committed by GitHub
commit 22fa825ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ from __future__ import unicode_literals
from past.builtins import basestring from past.builtins import basestring
from ._utils import basestring from ._utils import basestring
import os
from .nodes import ( from .nodes import (
filter_operator, filter_operator,
@ -23,6 +24,8 @@ def input(filename, **kwargs):
Official documentation: `Main options <https://ffmpeg.org/ffmpeg.html#Main-options>`__ Official documentation: `Main options <https://ffmpeg.org/ffmpeg.html#Main-options>`__
""" """
if getattr(os, "PathLike", None) and isinstance(filename, os.PathLike):
filename = str(filename)
kwargs['filename'] = filename kwargs['filename'] = filename
fmt = kwargs.pop('f', None) fmt = kwargs.pop('f', None)
if fmt: if fmt: