
semi-high: convert video to 720p (will only happen if original bitrate is high enough).high: convert video to 1080p (will only happen if original bitrate is high enough).original: convert video with similar bitrate as the original one (max bitrate defined in settings) and keep video dimensions.

By now django-webvideo can convert to h264, ogg-vorbis and webm in 5 different qualities: Converting is handled by ffmpeg and queued with rq. We will start by importing the libraries.Conclusion Python 3 Django FFMPEG Web Video Converter Using django-webvideo Library in Browser django-webvideoĭjango-webvideo is a Django module to convert videos into web video formats. You can use a text editor or Jupyter Notebook. In case you are having issues when installing moviepy library, make sure the ffmpeg library is installed correctly. MoviePy is a library that can read and write all the most common audio and video formats, including GIFs. Write the following line in your terminal window: pip install ffmpeg moviepyįfmpeg is a leading multimedia framework, that decodes, encodes, transcodes, mux, demux, stream, filter and play pretty much anything that humans and machines have created.

You can even install a couple of libraries in one line of code. Installing a module library is very straightforward in python. If you are ready, let’s start by installing the libraries! Using a library called MoviePy, we will extract the audio from the video recording. It can even be a short recording of yourself speaking to the camera.


Let’s get started!Īs you can understand from the title, we will need a video recording for this project. Before moving to the programming part, I would like to give some information about the library we will use in this project: MoviePy. It will not take us more than five minutes to finish the whole project.
