I have two videos v1.flv and v2.flv and would like to create v3.flv which contains video stream from v1.flv and "mixed" audio streams from v1.flv and v2.flv. Is something like this possible using ffmpeg command? Thanks.
相关问题
- Improving accuracy of Google Cloud Speech API
- MP4 codec support in Chromium
- Streaming video (C# using FFmpeg AutoGen) sends mu
- How do I decode opus file to pcm file using libavc
- ffmpeg for Android: neon build has text relocation
相关文章
- Handling ffmpeg library interface change when upgr
- How to use a framework build of Python with Anacon
- c++ mp3 library [closed]
- Passing a native fd int to FFMPEG from openable UR
- FFmpeg - What does non monotonically increasing dt
- ffmpeg run from shell runs properly, but does not
- Issues in executing FFmpeg command in Java code in
- Terminal text becomes invisible after terminating
I think it isn't a good idea to use ffmpeg to mix the audio tracks; Using sox is a better idea.
You could use it as follows:
Extract the audio from v1.flv and v2.flv using ffmpeg:
ffmpeg -i v1.flv -vn -acodec copy v1.mp3
ffmpeg -i v2.flv -vn -acodec copy v2.mp3
Mix the audio tracks using sox, something like this (not tested):
sox -M v1.mp3 v2.mp3 v3.mp3
Multiplex audio and video using ffmpeg. Try the following (also not tested):
ffmpeg -i v1.flv -i v3.mp3 -vcodec copy -acodec copy v3.flv
If the commands aren't exactly right, hopefully the idea is clear.