Skip to content

Convert play speed of audio & video files by ffmpeg

Notifications You must be signed in to change notification settings

peynaj/mediaConvertor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python script for change playback speed rate of audio and video media files or extract duration time of them.

Requirements

  • Python3
  • ffmpeg
  • requirements.txt python packages

Change speed rate

import mconv

media_path = '/path/to/media/files'
speed_rate = 2
mconv.change_audio_rate(media_path, speed_rate)

Convert video files to audio & change speed rate

import mconv

videos_path = '/path/to/media/files'
speed_rate = 2
mconv.video_to_audio_and_change_rate(videos_path, speed_rate)

Extract medias duration seconds

import mconv

media_path = '/path/to/media/files'
durations = mconv.get_audio_details(media_path)

About

Convert play speed of audio & video files by ffmpeg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages