ffmpy

Adding silence between words in audio file using ffmpeg

蹲街弑〆低调 提交于 2020-02-07 05:40:06
问题 What I am trying to do is to concat wav files which contain short audios. I am able to concat them into one file, but I am trying to set each file at a specific time. Currently, I can concat the files but I can't place each one at the specific time they need to be. I thought maybe I can just add the right amount of silence between them and solve the problem this way. I am new to ffmpeg I have a text file with the file names i.e. text.txt file a.wav file b.wav file c.wav and I use this cmd:

ffmpy concatenate multiple files with a file list

时间秒杀一切 提交于 2019-12-11 15:49:21
问题 I'm currently trying to merge multiple video files with a python script using ffmpeg and ffmpy. The names of the files are being written into a file list, as suggested by the ffmpeg concatenate wiki. In my example I'm only using two files, but in practice, there will be several hundert files, that's why I'm choosing the file list approach. My current code looks like this: import os import ffmpy base_dir = "/path/to/the/files" # where to seek the files file_list = open("video_list.txt", "x") #