Skip to main content

library for add music to video in very simple code

Project description

mhmovie

mhmovie is a Python library for add music to video and convert music to mp4 mhmovie can run in python 3+ mhmovie can add music to video with very simple code

examples

from mhmovie.code import *

m = movie("movie")
print(":".join(m.time()))# 00:03:06
mu = music("music.wav")# you can wav,ogg or flv
mu.Aconvert()  # convert the music to mp3 from wav, ogg or flv
final = m + mu 
final.save("final.mp4")
final.clear()#delete music.wav

##########################
f = folder("some_folder")
f.save()  # save movie+music as output.mp4
# or
f.save("the_final.mp4")  #save movie+music as the final.mp4 in the folder
######################
from mhmovie.youtube import yt_download
yt_download("https://www.youtube.com/watch?v=qjtmgCb8NcE", "video.mp4")
yt_download("https://www.youtube.com/watch?v=qjtmgCb8NcE", "music.mp3")
yt_download("https://www.youtube.com/watch?v=qjtmgCb8NcE", "video.video_format")
yt_download("https://www.youtube.com/watch?v=qjtmgCb8NcE", "music.music_format")
############################
m = movie("movie")
m.mute()#mute music of movie to mute.mp4
mu = m.extract_music()
mu.vol(1.5)# up volume in 150% to vol.mp3
m.clear() # delete movie,

Prerequisites

mhmovie depends on the python modules: pydub, youtube_dl, and moviepy all these libraries will be automatically installed during mhmovie installation.

and you need ffmpeg on you commuter. to installation guide

Installing

to install with pip- type in terminal:

(sudo) pip install moviepy

to install by hand - download files from pypi unzip files to folder and type in terminal

cd folder
(sudo) python setup.py install

or windows:

py setup.py install

Built With

Author

matan h

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mhmovie, version 2.1
Filename, size File type Python version Upload date Hashes
Filename, size mhmovie-2.1-py3-none-any.whl (6.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mhmovie-2.1.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page