'How to Convert MP4 to HLS with Multiple Audio and Multiple Video Quality in Python/Django?

I have tried with ffmpeg library and I can convert videos mp4 to hls with multiple quality but multiple audio is not working. > [Commands Excuting from Terminal]

And with subprocess library calling subprocess.call. > [ Want to know is this the right way? to do with Django? ]



Solution 1:[1]

Here is the solution https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming

Read the documentation and modify as your requirement.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sanjay Sikdar