Python script for change playback speed rate
of audio and video media files or extract duration time of them.
- Python3
- ffmpeg
requirements.txt
python packages
import mconv
media_path = '/path/to/media/files'
speed_rate = 2
mconv.change_audio_rate(media_path, speed_rate)
import mconv
videos_path = '/path/to/media/files'
speed_rate = 2
mconv.video_to_audio_and_change_rate(videos_path, speed_rate)
import mconv
media_path = '/path/to/media/files'
durations = mconv.get_audio_details(media_path)