我正在尝试使用linux的apply_video实用程序的gmic选项应用gmic过滤器。

./gmic --apply_video 'small.mp4','-denoise 30,10' -o convert.avi

但输出是终端错误
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Apply command 'small.mp4,-denoise 30,10' on video stream '', with output filename '', first frame 0, last frame -1 and frame step 1.
[gmic] *** Error in ./apply_video/*local/*substitute/ *** Command '-basename': Undefined argument '$1', in expression '$1' (for 2 arguments specified).
[gmic] Command '-basename' has the following description:

-basename:
                    file_path,_variable_name_for_folder

    Return the basename of a file path, and opt. its folder location.
    When specified 'variable_name_for_folder' must starts by an underscore
    (global variable accessible from calling function).

那么gmic的正确语法是什么——应用视频?
我使用的是1.7.3版

最佳答案

我正在使用最新的可用版本1.7.5_pre,我使用它的方式如下:

$ gmic -w -apply_video input.avi,\"-denoise 30,10\",0,-1,1,output.avi

10-02 07:35