2016-08-10 114 views
0

我正在嘗試使用apply_video選項gmic實用程序爲linux應用gmic過濾器。gmic的正確語法是什麼apply_video

./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 --apply_video正確的語法?

我使用1.7.3版

回答

0

我使用的是最新版本1.7.5_pre,我用它是這樣的:

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

./gmic -apply_video small.mp4,\ 「 - 降噪30,10 \」,0,-1,1,small.mp4 我想這命令和輸出仍然是一些錯誤。 [gmic] -0./開始G'MIC解釋器。 (1)&&(1)&&(1> = 0 || 1) == - 1)&& small.mp4> = 1'爲false(並且不存在具有此名稱的文件)。 – Greyhatmoder

0

對於G'MIC選項,您可以使用優秀的脫機幫助

gmic -h 

gmic -h -apply_video 

這爲1.7.8版本給

gmic: GREYC's Magic for Image Computing. 

    Version 1.7.8, Copyright (c) 2008-2016, David Tschumperle. 
    (http://gmic.eu) 

-apply_video: 
        video_filename,_"command",_first_frame>=0,_last_frame={ >=0 | -1=last }, 
         _frame_step>=1,_output_filename 

    Apply a G'MIC command on all frames of the specified input video file, in a streamed way. 
    If a display window is opened, rendered frames are displayed in it during processing. 
    The output filename may have extension '.avi' (saved as a video), or any other usual image file 
     extension (saved as a sequence of images). 

    Default values: 'first_frame=0', 'last_frame=-1', 'frame_step=1' and 
     'output_filename=(undefined)'.