mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-05 04:22:51 +08:00
Merge f2aba306746f9795833fd0923c66951d74cf586c into df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6
This commit is contained in:
commit
22fa825ad2
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user