30 Days of Python - Day 15 - Automated Video Processing with Moviepy - Python TUTORIAL

Sdílet
Vložit
  • čas přidán 8. 04. 2020
  • 30 Days of Python - Day 15 - Processing Videos with Moviepy. Create thumbnails from videos, mix audio, composite video, create intros, and more. All with Moviepy, ffmpeg, and ImageMagick - Python TUTORIAL
    Sections:
    Mac Install - 01:30
    Windows Install - 02:57
    Base Project Setup - 08:10
    Create Thumbnails from Video - 12:09
    Video from Images in a Directory - 35:46
    Gifs from Clips - 51:45
    Audio Mixing - 01:04:22
    Overlay Text, Mix Audio, Mix Video - 01:18:48
    Direct reference: github.com/codingforentrepren...
    We're going to be using Moviepy to do the following:
    - Create thumbnails from videos
    - Image Collection to Video
    - Generate a GIF animation
    - Combine Audio Samples in a Video
    - Overlay Text, Image, or Video
    Requirements:
    - Python 3.6+
    - Pipenv (or another virtual environment)
    - moviepy==1.0.2 (or greater)
    - ffmpeg & imagemagick installed (see direct reference link above)
    In 30 Days of Python, I'll teach you the fundamentals of Python. We created this series as an introduction to programming with Python.
    Why Python? It's a very popular way to writing computer programs and automations with board applications: SpaceX & NASA use it to launch rockets, Tesla with autonomous driving, Instagram as a web app backend, Intel to pilot drones/UAVs, and many many others.
    What you can do with Python is nearly endless:
    Run powerful web applications
    Fly drones and launch rockets
    Run autonomous robots like drones and self-driving cars
    Build connected systems with Arduino and Raspberry PI
    Automate business intelligences and perform financial analysis
    Machine learning including deep learning
    And many more ways
    That list is fancy but don't let it scare you. Python is just a tool for writing a series of step-by-step automation rules and that's exactly what software is: a collection of rules for a computer to follow.
    The right tools in the right hands can impact the world in such amazing ways.
    Shakespeare had very few tools for writing plays and yet he continues to influence our entertainment despite being long gone. Creativity mixed with the right tools can transform how we do everything or why we do it.
    That's why I want to teach you this tool. The world needs your creatively, your perspective, your project.
    Let's do this!
    Python on Windows Install GUIDE: www.codingforentrepreneurs.co...
    Python on macOS Install GUIDE: www.codingforentrepreneurs.co...
    Code: github.com/codingforentrepren...
    Subscribe: cfe.sh/youtube

Komentáře • 75

  • @CodingEntrepreneurs
    @CodingEntrepreneurs  Před 4 lety +15

    Mac Install - 01:30
    Windows Install - 02:57
    Base Project Setup - 08:10
    Create Thumbnails from Video - 12:09
    Video from Images in a Directory - 35:46
    Gifs from Clips - 51:45
    Audio Mixing - 01:04:22
    Overlay Text, Mix Audio, Mix Video - 01:18:48

  • @jahangircs
    @jahangircs Před 4 lety +9

    One of the best tutorial series ...😍

  • @abhishekrai9816
    @abhishekrai9816 Před 3 lety

    Just what I was looking for. Wonderful content. :)

  • @nataliiasorokina4485
    @nataliiasorokina4485 Před 4 lety

    Thank you for this amazing course!

  • @CodingEntrepreneurs
    @CodingEntrepreneurs  Před 4 lety +2

    Interested in Computer Vision? Check out my series on OpenCV - czcams.com/play/PLEsfXFp6DpzRyxnU-vfs3vk-61Wpt7bOS.html

  • @malikrumi1206
    @malikrumi1206 Před 4 lety +3

    Wow! Didn't even know something like moviepy existed! Thanks for that all by itself!

  • @JuanGabrielOyolaCardona

    Amazing content. Thanks for sharing ☺️🇨🇴

  • @erikfrits6553
    @erikfrits6553 Před 4 lety +2

    Good content. Thank you, man

  • @kolavithonduraski5031
    @kolavithonduraski5031 Před 4 lety

    thank's for your videos !

  • @paristar3079
    @paristar3079 Před 4 lety +3

    You deserve million subscribers

  • @h-freed
    @h-freed Před 2 měsíci

    The Best! Thanks!

  • @datapilot2282
    @datapilot2282 Před 4 lety

    Good explanation 👍👍

  • @davidsrinivasan7764
    @davidsrinivasan7764 Před 10 měsíci

    love this !

  • @bikashkarmokar
    @bikashkarmokar Před 4 lety +5

    Django with Angular will be great. Full Stack Development Example.

  • @prashlovessamosa
    @prashlovessamosa Před rokem

    This is gold

  • @deaglegaming3119
    @deaglegaming3119 Před 3 lety

    NGL THIS GUY IS OPPPP

  • @pasanga2027
    @pasanga2027 Před 4 lety

    thanks a lot bro

  • @surya-td4dg
    @surya-td4dg Před 4 lety

    Which editor are you using in this video ? Awsome content btw

  • @animeshsahu6267
    @animeshsahu6267 Před 4 lety +1

    @01:17:04 even after writing all the codec aurguments my output cropped video is still without audio, what to do? also loaded the separate audio file but still doesn't work

  • @akl561
    @akl561 Před 3 lety

    I didn't watch this entire video, but I'm not seeing a way to attach a thumbnail to a video as metadata (or technically a second stream), which is what I was looking for. Does moviepy do that, or do I have to use ffmpeg?

  • @manishbhurtel5244
    @manishbhurtel5244 Před 3 lety

    Great tutorial. How can we do it for Live Video Streaming? Getting the live video frames, splitting the video and audio frames, process the video frames, and finally merge the processed video frame and audio frame. Can we do it using moviepy?

  • @Rubded
    @Rubded Před 2 lety

    I would love to build a template I can use for my projects. Would I combine everything into once script or keep the scripts separate and tun them all against then video?

  • @krumss
    @krumss Před 3 lety

    This is best

  • @JIN7KHOJA
    @JIN7KHOJA Před 3 lety

    can u explain which program u r using for this video and screen recording

  • @GoodBoyDanny
    @GoodBoyDanny Před 3 lety

    is there a way to loop a gif over music for the entire video

  • @onionface5233
    @onionface5233 Před 4 lety +1

    is there any reason why moviepy is speeding up clipped clips?

  • @danhao7833
    @danhao7833 Před 3 lety

    thanks for the video, i can't use ABS_PATH = os.path.abspath()use conf.py. it will cause the error: "ImportError: cannot import name 'SAMPLE_INPUTS' from 'conf'". Therefore, I have to change it into ABS_PATH = os.path.abspath("conf.py"), then it works. But is it fine? I mean will it cause chaos sometimes?

  • @syedhamzashahbaz3406
    @syedhamzashahbaz3406 Před 3 lety

    sir how we can find key frame in video using python. i'm new in python and computer vision.if you don't mind give brief lecture in key framing.

  • @asyou_00
    @asyou_00 Před 3 lety

    Can you please make a video of how we can compress a video file with moviepy.I have made a video compressor with moviepy and pillow that is quiet slow and it take same time as the video duration please help me out.

  • @earwaxremoval6430
    @earwaxremoval6430 Před 10 měsíci

    how to crop batch videos and save to auto name with new folder ?

  • @venktesh6600
    @venktesh6600 Před 10 měsíci

    Hi CE, im a beginner to coding/python, can I start working on coiding from here from Moviepy and expand my learning to other packages as n when required? ? because starting textbook way won't be holding my curiosity for long, I guess.

  • @redditcamp543
    @redditcamp543 Před 4 lety +3

    This is the best video about MoviePy on CZcams. Thanks. Can you post anything on CZcamsAPI as well, i.e. auto-uploading?

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  Před 4 lety +3

      That’s a great idea!

    • @booksunder5mins454
      @booksunder5mins454 Před 2 lety

      @@CodingEntrepreneurs I tried it. YT doesn't upload videos made by moviepy; it says ' Processing Abandoned - The Video could not be abandoned '...Any solns?

  • @ahmadabdallah2896
    @ahmadabdallah2896 Před 3 lety

    I don't know why but my code ran successfully and the video was generated correctly with the new sound at 01:16:13 without the codec argument.

  • @danhao7833
    @danhao7833 Před 3 lety

    mac, TextClip does not work for font.....I even installed ghostscript

  • @hemantsharma7986
    @hemantsharma7986 Před 3 lety

    how to create loop of videos?

  • @alothaiqi
    @alothaiqi Před 4 lety +2

    Flutter with Django Back-end tutorial! can you? 😅

    • @farisabbasi3331
      @farisabbasi3331 Před 4 lety

      yes please crud with django and connect with it flutter

  • @mkmcraftman2635
    @mkmcraftman2635 Před 3 měsíci

    I am using moviepy to automate making portrait videos but sometimes the videos end up becoming glitchy, like sometimes the video dimension decreases, sometimes the video goes off and becomes full black and only the image which I am putting at the top of the background video is visible. Can you help me with this problem?

  • @ayushbansal3353
    @ayushbansal3353 Před 4 lety

    TextClip is now working in Windows. It is showing some imagemagick path error . Can somebody help me with this?

    • @pongdylan4367
      @pongdylan4367 Před 4 lety

      I had the same problem, it seems ImageMagick cannot automatically detected by MoviePy in windows, you will need to locate the Moviepy folder, change the default config setting and reinstall MoviePy. Link below for your reference.
      zulko.github.io/moviepy/install.html

  • @user-zl8ur8vl9f
    @user-zl8ur8vl9f Před 3 měsíci

    can we play video fast in python

  • @aramkader6504
    @aramkader6504 Před 4 lety

    how I can add a logo to videos ?

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  Před 4 lety

      Just like what we did with the text but use ImageClip() and pass a path to a image file.

  • @nihalmankar4743
    @nihalmankar4743 Před 2 lety

    I have to make automated program for video editing. How to can we communicate. I am willing to pay for this.

  • @sriramkasu5286
    @sriramkasu5286 Před 4 lety

    can we combine an audio and video file using python(moviepy) sir

    • @sriramkasu5286
      @sriramkasu5286 Před 4 lety

      if so plz reply the timeline sir plz

    • @adamkadaban
      @adamkadaban Před 3 lety +1

      @@sriramkasu5286 ffmpeg can do that. I can post the code in a bit if you still need it

  • @paristar3079
    @paristar3079 Před 4 lety

    What Happened there? 1:05:53
    Can someone explain?

  • @chadchampion7985
    @chadchampion7985 Před 3 lety +1

    u should've just used pathlib instead of os

  • @mr.do-it-allllc.3143
    @mr.do-it-allllc.3143 Před 3 lety

    Needs more glob.