Python Forum

Full Version: how to use this module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi, i new here.
last night i found this program "https://pyscenedetect.readthedocs.io/en/latest/"
i install latest python, success,
install that program using pip, success,
install tqdm using pip, success,
try the program using cmd => SceneDetect -i inputfile detect-content split-video, success,

and after some browsing, i found this syntax at "https://pyscenedetect.readthedocs.io/projects/Manual/en/stable/api/video_splitter.html"

the syntax is => scenedetect.video_splitter.split_video_ffmpeg(input_video_paths, scene_list, output_file_template, video_name, arg_override='-c:v libx264 -preset fast -crf 21 -c:a copy', hide_progress=False, suppress_output=False)

because i am not python programer, i don't have any idea how to run it,
i try many methods but not work,
any of you have a way how to run this syntax?
any link, guide, youtube video, google keyword, or any thing, i will appreciate it!
thanks for your concern
You can run it in your own Python program: https://pyscenedetect.readthedocs.io/en/...ge-python/
Or you could just use the command line interface: https://pyscenedetect.readthedocs.io/en/...les/usage/
(Feb-12-2020, 10:43 AM)DeaD_EyE Wrote: [ -> ]You can run it in your own Python program: https://pyscenedetect.readthedocs.io/en/...ge-python/
Or you could just use the command line interface: https://pyscenedetect.readthedocs.io/en/...les/usage/
thanks for the reply, i can use that you mention in the link that you provide,
that i like to know is: how to use FFmpeg parameter or command in that PySceneDetect,

more or less is this syntax => scenedetect.video_splitter.split_video_ffmpeg(input_video_paths, scene_list, output_file_template, video_name, arg_override='-c:v libx264 -preset fast -crf 21 -c:a copy', hide_progress=False, suppress_output=False)

and another way is i found this https://github.com/Breakthrough/PySceneD...plitter.py, the py file, how to run it?

again, thanks for the reply