kelciour / playphrase

Search and play phrases from movies and audiobooks
169 stars 26 forks source link

Implementaion of Moviepy/ffmpeg editing option! #3

Closed raj6996 closed 5 years ago

raj6996 commented 5 years ago

I tried videogrep it was not works on windows. So will you implement moviepy/ffmpeg editing option like vidoegrep on next version. Thanks.

kelciour commented 5 years ago

I'm not sure that I understand what you mean by "implement moviepy/ffmpeg editing option like videogrep", but if you mean to be able to concatenate clips into one long clip then I'm sorry it probably won't be happen any time soon because I'm not sure how useful this option and there may not be the next version.

As an alternative you can use playphrase.py script with -v option to export clips and after that either watch them with mpv (mpv *.mp4) or concatenate them manually by using ffmpeg, maybe, with the help of batch files. to resize them to the same resolution at first and concatenate them after that.

The second possible option is to use videogrep on Windows. It works on Windows, but you can't use it with folder, you can only use it with filenames. It may not work correctly with multiple filenames, but it works fine with single file:

videogrep --input "H:\English Movies\Robin Hood (1973).mp4" --search "Robin"
ghost commented 5 years ago

I sent you an email!

raj6996 commented 5 years ago

Just make like Videogrep, that how it works. No need to sorry, I am not programmer, so I need to wait for you whenever you make it possible!

As an alternative you can use playphrase.py script with -v option to export clips and after that either watch them with mpv (mpv *.mp4) or concatenate them manually by using ffmpeg, maybe, with the help of batch files. to resize them to the same resolution at first and concatenate them after that.

I don't get it, how to use this idea? If possible make clear tutorials video on youtube! Because it help novice user(started learning python from 3 months, you know programming is not easy job)

The second possible option is to use videogrep on Windows. It works on Windows, but you can't use it with folder, you can only use it with filenames. It may not work correctly with multiple filenames, but it works fine with single file: videogrep --input "H:\English Movies\Robin Hood (1973).mp4" --search "Robin"

You sure! I have tried and tired to use this, so I quit and try to found alternative , but tested works fine with you tool but no editing feature like videogrep! https://github.com/antiboredom/videogrep/issues/60 https://github.com/antiboredom/videogrep/issues/57

By the way I used you method i.e. use file name instead of only folder. But got either no.57 issue or 60.

kelciour commented 5 years ago

I don't know what you mean by "this idea", but if you're talking about concatenating video files with ffmpeg, I did a quick google search and found this youtube video tutorial that shows how to concatenate clips with the same resolution and maybe some how to use ffmpeg youtube video tutorials and ffmpeg wiki about scaling can be of any help too.

raj6996 commented 5 years ago

I played ffmpeg tools, but it not good for visual editing even I know it powerful tool. I used openshotQT or vegas for editing. Ok you told me on other issue post about subcut. I will try it later, thanks for great service.

By the way, I still confused how did you use videogrep on windows, it was still mystery for me, tried latest Ubuntu Linux same error like issue 60. Sorry for weak English.

kelciour commented 5 years ago

By the way, I still confused how did you use videogrep on windows

If you get something like TypeError: 'bool' object is not iterable that means that you're trying to input some folder and videogrep doesn't work with folders, you need to use video filename to make it work:

videogrep --input "H:\English Movies\Robin Hood (1973).mp4" --search "Robin"

or use a list of video filenames:

videogrep --input "H:\Robin Hood (1973).mp4" "H:\Balto (1995).mp4" "H:\Gladiator (2000).mp4" --search "Robin"
raj6996 commented 5 years ago

Finally videogrep works on windows, but I can't run videogrep directly but I managed it... Here is new issue....It is not your problem. You're only one to solve this videogrep mystery for me. thanks. https://github.com/Zulko/moviepy/issues/164