我正在尝试使用apply_video
实用程序的gmic
选项为linux应用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的正确语法是什么--apply_video?
我使用的是1.7.3版本
答案 0 :(得分:0)
我正在使用最新的可用版本1.7.5_pre
,我这样使用它:
$ gmic -w -apply_video input.avi,\"-denoise 30,10\",0,-1,1,output.avi
答案 1 :(得分: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)'.