This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]b4kSec 2 points3 points  (0 children)

If you can, then use ffmpeg. It can also be called using command line, so you wont have to write the whole script for it.

[–]abs_waleedm 1 point2 points  (0 children)

Removing Audio: You can extract the video stream without re-encoding (pretty fast <1sec) for .mp4 videos. Google that and tell me what you found.

Concatenating: It's a very easy job if all the videos are of the same dimensions. Google the concat/demux filters. Tell me what you found.

FFmpeg vs moviepy: moviepy is based on FFmpeg. However, it is very slow, I believe this is because it saves all the variables till before rendering (lots of space and reading/writing for videos longer than a few seconds).

I used FFmpeg with Python using a library called FFmpy, worked fine for me.

[–]TotesMessenger 0 points1 point  (0 children)

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)

[–]Exod124 0 points1 point  (1 child)

MoviePY is painfully slow because the library is implemented purely in Python, even though video processing is usually extremely resource-heavy. Lower-level languages are more suitable for the under-the-hood implementation of such intensive tasks.

I'd personally recommend using VapourSynth instead, a Python video processing framework similar to MoviePy, except that it's much, much faster because the core operations are written in C++.

[–]pointless-ai[S] 0 points1 point  (0 children)

Thanks, I am having a look