Recherche avancée
Sur d’autres sites (233)
-
FFmpeg + getID3() : Detect audio's average level volume and change another audio's volume to match it
12 mars 2019, par lukistarI have two audio files.
First audio could be anything.
Second audio is always wav file, that contains sequence of silence(well I used adelay to create it)( 15 seconds) speech( 1 second) .. silence .. speech etc.
I am using amix to combine them, but I need to adjust second audio to match the volume level of the first audio for best results.
So first I need to detect the average volume level of the first audio and then change the volume level of the second.
Any idea how to do that using ffmpeg(or even easier for me using getID3) ? Thanks.
-
Upload a picture to generate a video with special effects
8 novembre 2019, par ZeddI am stucked by a video processing feature, Specifically, upload an image and then generate a video based on various video templates.
Here are the video templates :
- http://video-static.biku8.com/data/video/template/3286012076458048/7437ab55-2e83-4a36-9046-5708fcddf4c1.mp4
- http://video-static.biku8.com/data/video/template/3274256089907264/ae8fa3f7-6c9c-45ca-810f-48db92cc14cb.mp4
- http://video-static.biku8.com/data/video/template/3213894231425088/bf107d439b9043a58c1ea0ba26f811db_template.mp4
- ...
As shown in the video templates above, I just need to upload a photo to generate a great video.
My question
- What is the specific idea for implementing this video ?
- Which third-party libraries are needed ? (ffmpeg, opencv)
PS : I am using dlib and opencv for face recognition. I can generate face image, but I don’t know how to insert face image into the correct position of these template videos.
-
How to specify the audio path for ffmpeg and how to conduct a silence removal using ffmpeg
15 octobre 2020, par LeoI wish to conduct a silence removal for wav files.


import ffmpeg
inPath = "/home/test/Speech/Wang/dataset/testsets/disgust/0_002_00_021_F002_d.wav"
outPath = "/home/test/Speech/Wang/dataset/testsets/disgust/0_002_00_021_F002_d_trimed.wav"
ffmpeg -i inPath -af silenceremove=0:0:-50dB outPath



Error occurred.


File "", line 3
 ffmpeg -i inPath -af silenceremove=0:0:-50dB outPath
 ^
SyntaxError: invalid syntax



How should I assign the path ?


The question is that why we set the threshold to a negative value ?