Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio-mixing over a video that already has volume #31

Open
chancebeyer1 opened this issue Oct 1, 2024 · 4 comments
Open

Audio-mixing over a video that already has volume #31

chancebeyer1 opened this issue Oct 1, 2024 · 4 comments

Comments

@chancebeyer1
Copy link

Hello, I am trying to add background music to a video that already has a voice-over. However the background completely removed the voiceover in the video and replaced it with the background music. Is this supposed to happen?

@stephengpope
Copy link
Owner

ah, great catch, no you should be able to layer it, maybe we should have a option to overwrite / or mix.

thanks for all the help!!

@gormson
Copy link

gormson commented Oct 27, 2024

Hello, I'm reaching the same point in my process where I need to add music to a video with voice-over.
I tried different settings regarding the volumes of both the videos and/or the audio file without any success (ex: video_vol=100 and audio_vol=10 or video_vol=90 and audio_vol=10).

Is is something that is supposed to be fixed or is it still under development or do I even use it correctly?

Thanks a lot for your great work again, what you've done so far is crazy.

@stephengpope
Copy link
Owner

stephengpope commented Oct 31, 2024

we actually have a new endpoint that we're going to release called ffmpeg_compose which will let you better design and call these type of audio mixing functions. so we will be fixing it soon.

@jomynn
Copy link

jomynn commented Dec 25, 2024

From ChatGPT , I try with this payload, But after webhook return multiple video files.
The /v1/ffmpeg/compose endpoint produced two output files in your case likely due to one of the following reasons
{
"inputs": [
{"file_url": "https://example.com/input_video.mp4"},
{"file_url": "https://example.com/input_audio.mp3"}
],
"filters": [],
"outputs": [
{
"options": [
{"option": "-c:v", "argument": "copy"},
{"option": "-c:a", "argument": "aac"}
]
}
],
"id": "unique-request-id"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants