librosa for sound track| Python© Dhana Design

librosa for sound track| Python

python

Cite: 叁公子KCN; 2019

import librosa

import matplotlib.pyplot as plt
import librosa.display

File = "input.mkv"

x , sr = librosa.load(File, sr=8000)

plt.figure(figsize=(14, 5))
librosa.display.waveplot(x[:10000], sr=sr)
plt.show()

ffmpeg

Cite: dennyyoung

# Video split
ffmpeg -y -ss 0 -t 3 -i Function.mkv -c:v libx264 -c:a copy 123.mkv

# Video merge
ffmpeg -y -i filename -i filename2 -vcode copy -acodec copy
Author

Karobben

Posted on

2021-09-18

Updated on

2024-01-11

Licensed under

Comments