data_juicer.ops.mapper.video_ffmpeg_wrapped_mapper module¶
- class data_juicer.ops.mapper.video_ffmpeg_wrapped_mapper.VideoFFmpegWrappedMapper(filter_name: str | None = None, filter_kwargs: Dict | None = None, global_args: List[str] | None = None, capture_stderr: bool = True, overwrite_output: bool = True, save_dir: str = None, *args, **kwargs)[源代码]¶
基类:
Mapper
Simple wrapper for FFmpeg video filters.
- __init__(filter_name: str | None = None, filter_kwargs: Dict | None = None, global_args: List[str] | None = None, capture_stderr: bool = True, overwrite_output: bool = True, save_dir: str = None, *args, **kwargs)[源代码]¶
Initialization method.
- 参数:
filter_name -- ffmpeg video filter name.
filter_kwargs -- keyword-arguments passed to ffmpeg filter.
global_args -- list-arguments passed to ffmpeg command-line.
capture_stderr -- whether to capture stderr.
overwrite_output -- whether to overwrite output file.
save_dir -- The directory where generated video files will be stored. If not specified, outputs will be saved in the same directory as their corresponding input files. This path can alternatively be defined by setting the DJ_PRODUCED_DATA_DIR environment variable.
args -- extra args
kwargs -- extra args