Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SplitFilter 不好用 #4

Closed
NaichuanYang opened this issue Jul 14, 2021 · 1 comment
Closed

SplitFilter 不好用 #4

NaichuanYang opened this issue Jul 14, 2021 · 1 comment

Comments

@NaichuanYang
Copy link

Hi~~
发现splitfilter 不好用,但是同样的方式在 ffmpeg-python下可用
环境 :python3.9

input_v =  ffmpeg.input(src).video
split_v = input_v.split()
split_v[0].output(...).run()
  File "/usr/local/lib/python3.9/site-packages/ffmpeg/nodes.py", line 152, in run
    process = self.run_async(
  File "/usr/local/lib/python3.9/site-packages/ffmpeg/nodes.py", line 128, in run_async
    cmd_args_seq = self.compile(
  File "/usr/local/lib/python3.9/site-packages/ffmpeg/nodes.py", line 108, in compile
    cmd_args_seq = [executable] + self.get_output_args(overwrite, progress)
  File "/usr/local/lib/python3.9/site-packages/ffmpeg/nodes.py", line 84, in get_output_args
    filters_spec = get_filters_spec(type_nodes[NodeTypes.Filter],
  File "/usr/local/lib/python3.9/site-packages/ffmpeg/_node.py", line 271, in get_filters_spec
    return ';'.join(
  File "/usr/local/lib/python3.9/site-packages/ffmpeg/_node.py", line 272, in <genexpr>
    get_filter_spec(node, outgoing_edge_graphs[node], stream_tag_graph)
  File "/usr/local/lib/python3.9/site-packages/ffmpeg/_node.py", line 248, in get_filter_spec
    return f"{''.join(inputs)}{node.get_filter_spec(outgoing_edges)}{''.join(outputs)}"
  File "/usr/local/lib/python3.9/site-packages/ffmpeg/nodes.py", line 2221, in get_filter_spec
    params = escape(self.Label, '\\\'=:') + '=' + ':'.join(args)
TypeError: sequence item 0: expected str instance, int found
fujiawei-dev added a commit that referenced this issue Jul 14, 2021
@fujiawei-dev
Copy link
Owner

好的,我看到了,已经修复这个问题。你可以安装最新版:

pip install -U ffmpeg-generator -i https://pypi.org/simple/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants