How to merge video from WMV file plus audio from two MP4 video files into a third MP4 file and retain stereo...
Can a space-faring robot still function over a billion years?
Split a number into equal parts given the number of parts
Can a Mimic (container form) actually hold loot?
Why do we call complex numbers “numbers” but we don’t consider 2 vectors numbers?
Is divide-by-zero a security vulnerability?
Short story about an infectious indestructible metal bar?
How to make sure I'm assertive enough in contact with subordinates?
Where is the fallacy here?
Can you run a ground wire from stove directly to ground pole in the ground
How to chmod files that have a specific set of permissions
3.5% Interest Student Loan or use all of my savings on Tuition?
Are small insurances worth it
Ultrafilters as a double dual
Affine transformation of circular arc in 3D
I've given my players a lot of magic items. Is it reasonable for me to give them harder encounters?
PTiJ: How should animals pray?
The need of reserving one's ability in job interviews
Where do you go through passport control when transiting through another Schengen airport on your way out of the Schengen area?
How spaceships determine each other's mass in space?
Deal the cards to the players
Can inspiration allow the Rogue to make a Sneak Attack?
Does the in-code argument passing conventions used on PDP-11's have a name?
Create chunks from an array
Dukha vs legitimate need
How to merge video from WMV file plus audio from two MP4 video files into a third MP4 file and retain stereo in the resulting MP4?
Trying to encode multiple audio files and map them to specific channels with FFmpegExtracting audio from MP4 video into MP3Merge two audio channels (stereo) into one (mono) on GSM6.10 using FFMPEGAdd background music at specific time period in mp3 files using ffmpegMerge two audio and one video when reecondingFFMPEG is doubling audio length when extracting from videoHow to merge two 4 channel audio into a single 2 channel outputHow to select the left audio channel with ffmpeg and downmix to mono?FFMPEG Cutting multiple audio for specific durations and merging with video at specific timeffmpeg used to extract audio track, video track and then merge them, produces smaller mp4Audio Lost in FFMpeg Picture in Picture Conversion
I'm currently using this FFmpeg command to create an MP4 video from WMV video, to be a component of a mosaic file from multiple MP4's; duration of this video is about 30 seconds:
ffmpeg -i TFootpFA.wmv -vf "crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706" -b:v 3M TFootpFA.mp4
I want to adjust to take audio from two other video files (which both have either mono or left/right stereo audio), and use their audio as the audio for the final MP4 file as follows; calling these files audioL.mp4
and audioR.mp4
):
- I would like to create that MP4 with stereo audio.
- The audio from
audioL.mp4
will be the left channel. - The audio from
audioR.mp4
will be the right channel. - Each channel should have its audio combined/downmixed into one channel if that audio is stereo.
The duration of all three files is the same (within a few frames), but I want the target duration to be strictly that of the main WMV file I'm already using, TFootpFA.wmv
.
What parameters can I use to achieve this?
EDIT: After originally posting this question, I found this other Super User question that seems to be asking the same thing, and that arrives at this command “Trying to encode multiple audio files and map them to specific channels with FFmpeg”:
ffmpeg -i video.mov -i audio1.wav -i audio2.wav -filter_complex
"[1:a][2:a]amerge=inputs=2,pan=stereo|c0<c0+c1|c1<c2+c3,apad[aout]"
-map 0:v -map "[aout]" -shortest output.mp3
While this command has its output as an MP3 file rather than a video file, is it possible to use these settings for the FFmpeg command I already have?
EDIT: FWIW, I discovered that the command line I was originally using takes stereo audio in the source WMV file, and produces mono audio in the resulting MP4 file. I tried various filters to make the resulting MP4 file retain the stereo audio of the original WMV file, but nothing I tried worked. How would I accomplish this?
EDIT: I tried the method Gyan has posted in his answer:
ffmpeg -i TFootpFA.wmv -i audioL.mp4 -i audioR.mp4 -filter_complex "[0]crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706[v];[1]aformat=channel_layouts=mono[l];[2]aformat=channel_layouts=mono[r];[l][r]amerge=2,apad[a]" -map "[v]" -map "[a]" -b:v 3M -shortest TFootpFA.mp4
Unfortunately, the result was FFmpeg got stuck on frame=1
endlessly, while its “time” setting racked up over 3 hours in a matter of minutes of execution, until I terminated it. The final file was nonfunctional, although it did indeed report a length of over 3 hours.
As it happens, getting stuck on frame=1
is the same as what happened to me before when I tried to use a WMV file in a -filter_complex
operation, as described in a question I asked over a year ago here on the Video Stack Exchange.
At that time, I settled on a workaround where I converted the WMV files to MP4 files before using them to create a “video mosaic” with -filter_complex
. That is, in fact, what my original command line for this question was an example of.
After this current failure with a WMV file, I tried Gyan's method with an MP4 file instead.
Now, I mentioned earlier here that all my files have the same duration; short clips that are around 30 seconds. Gyan’s command with an MP4 file did avoid getting stuck on frame=1
, but after its time got to about 30 seconds, instead of completing, it got stuck on frame=900
and then quickly racked up its own lengthy time value (stating over an hour before I terminated it). The resulting file played for about 30 seconds, and then got stuck again. This is as far as I got with this.
In the meantime, I searched around for alternative strategies. I didn’t find anything that actually worked for me, but I tried something I devised based on clues I picked up on the way.
I fell back on the lengthier approach of extracting the audio from my two audio-source video files (both of which turned out to be mono audio, I found out) into MP3 files, and then combining these MP3 files’ audio data into a stereo MP3 file with this command:
ffmpeg -i audioL.mp3 -i audioR.mp3 -filter_complex "join=map=0.0-FL|1.0-FR" TwoSound.mp3
It ran okay until it got to about 21 seconds out of 30 seconds, and then FFmpeg crashed.
However, the resulting file was at least a functional stereo MP3 file of 21 seconds duration of something that worked.
I then decided to go back and re-create TFootpFA.wmv
with this new file as its audio track, using Windows Live Movie Maker, where I had created the WMV file in the first place.
As the sound itself was just sound effects of a very generalized nature, I applied the new 21-second audio file to the video to be produced, and then added 9 seconds of a second iteration of the audio file, to make the full 30 seconds the video needed. This worked fine, and I now had my file TFootpFA.wmv
already incorporating my desired stereo audio (or a satisfactory approximation thereof), and went to carry out my original command line to obtain TFootpFA.mp4
with the desired stereo audio.
But that's where I hit my latest snag: With my original command, the resulting MP4 had the audio reduced to mono! Apparently my conversion-to-MP4 method has always had that result; I just never checked into that before.
So then I went and tried various FFmpeg filters to try and insure that the resulting MP4 file retained the stereo nature of the WMV source, but nothing has worked: the MP4 file always comes out mono.
So I end with the question:
Does anyone know how I can induce FFmpeg to have the finished MP4 file retain the stereo audio of the WMV source?
command-line audio ffmpeg
New contributor
add a comment |
I'm currently using this FFmpeg command to create an MP4 video from WMV video, to be a component of a mosaic file from multiple MP4's; duration of this video is about 30 seconds:
ffmpeg -i TFootpFA.wmv -vf "crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706" -b:v 3M TFootpFA.mp4
I want to adjust to take audio from two other video files (which both have either mono or left/right stereo audio), and use their audio as the audio for the final MP4 file as follows; calling these files audioL.mp4
and audioR.mp4
):
- I would like to create that MP4 with stereo audio.
- The audio from
audioL.mp4
will be the left channel. - The audio from
audioR.mp4
will be the right channel. - Each channel should have its audio combined/downmixed into one channel if that audio is stereo.
The duration of all three files is the same (within a few frames), but I want the target duration to be strictly that of the main WMV file I'm already using, TFootpFA.wmv
.
What parameters can I use to achieve this?
EDIT: After originally posting this question, I found this other Super User question that seems to be asking the same thing, and that arrives at this command “Trying to encode multiple audio files and map them to specific channels with FFmpeg”:
ffmpeg -i video.mov -i audio1.wav -i audio2.wav -filter_complex
"[1:a][2:a]amerge=inputs=2,pan=stereo|c0<c0+c1|c1<c2+c3,apad[aout]"
-map 0:v -map "[aout]" -shortest output.mp3
While this command has its output as an MP3 file rather than a video file, is it possible to use these settings for the FFmpeg command I already have?
EDIT: FWIW, I discovered that the command line I was originally using takes stereo audio in the source WMV file, and produces mono audio in the resulting MP4 file. I tried various filters to make the resulting MP4 file retain the stereo audio of the original WMV file, but nothing I tried worked. How would I accomplish this?
EDIT: I tried the method Gyan has posted in his answer:
ffmpeg -i TFootpFA.wmv -i audioL.mp4 -i audioR.mp4 -filter_complex "[0]crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706[v];[1]aformat=channel_layouts=mono[l];[2]aformat=channel_layouts=mono[r];[l][r]amerge=2,apad[a]" -map "[v]" -map "[a]" -b:v 3M -shortest TFootpFA.mp4
Unfortunately, the result was FFmpeg got stuck on frame=1
endlessly, while its “time” setting racked up over 3 hours in a matter of minutes of execution, until I terminated it. The final file was nonfunctional, although it did indeed report a length of over 3 hours.
As it happens, getting stuck on frame=1
is the same as what happened to me before when I tried to use a WMV file in a -filter_complex
operation, as described in a question I asked over a year ago here on the Video Stack Exchange.
At that time, I settled on a workaround where I converted the WMV files to MP4 files before using them to create a “video mosaic” with -filter_complex
. That is, in fact, what my original command line for this question was an example of.
After this current failure with a WMV file, I tried Gyan's method with an MP4 file instead.
Now, I mentioned earlier here that all my files have the same duration; short clips that are around 30 seconds. Gyan’s command with an MP4 file did avoid getting stuck on frame=1
, but after its time got to about 30 seconds, instead of completing, it got stuck on frame=900
and then quickly racked up its own lengthy time value (stating over an hour before I terminated it). The resulting file played for about 30 seconds, and then got stuck again. This is as far as I got with this.
In the meantime, I searched around for alternative strategies. I didn’t find anything that actually worked for me, but I tried something I devised based on clues I picked up on the way.
I fell back on the lengthier approach of extracting the audio from my two audio-source video files (both of which turned out to be mono audio, I found out) into MP3 files, and then combining these MP3 files’ audio data into a stereo MP3 file with this command:
ffmpeg -i audioL.mp3 -i audioR.mp3 -filter_complex "join=map=0.0-FL|1.0-FR" TwoSound.mp3
It ran okay until it got to about 21 seconds out of 30 seconds, and then FFmpeg crashed.
However, the resulting file was at least a functional stereo MP3 file of 21 seconds duration of something that worked.
I then decided to go back and re-create TFootpFA.wmv
with this new file as its audio track, using Windows Live Movie Maker, where I had created the WMV file in the first place.
As the sound itself was just sound effects of a very generalized nature, I applied the new 21-second audio file to the video to be produced, and then added 9 seconds of a second iteration of the audio file, to make the full 30 seconds the video needed. This worked fine, and I now had my file TFootpFA.wmv
already incorporating my desired stereo audio (or a satisfactory approximation thereof), and went to carry out my original command line to obtain TFootpFA.mp4
with the desired stereo audio.
But that's where I hit my latest snag: With my original command, the resulting MP4 had the audio reduced to mono! Apparently my conversion-to-MP4 method has always had that result; I just never checked into that before.
So then I went and tried various FFmpeg filters to try and insure that the resulting MP4 file retained the stereo nature of the WMV source, but nothing has worked: the MP4 file always comes out mono.
So I end with the question:
Does anyone know how I can induce FFmpeg to have the finished MP4 file retain the stereo audio of the WMV source?
command-line audio ffmpeg
New contributor
Cleaned up this question. The reality is while I believe I condensed it, I still see this question as a valid question that asks too much of the community to support. At the end of the day, one question morphed into new question and then even newer info based on an answer that still did not solve the issue. Phew! The way I am reading this is simply: “How to merge audio from two WMV video files into a third MP4 file and still retain the WMV audio as well?” I edited only as much as I feel I can do. Bu encourage the original poster to review and condense further. Good question but too long.
– JakeGould
yesterday
add a comment |
I'm currently using this FFmpeg command to create an MP4 video from WMV video, to be a component of a mosaic file from multiple MP4's; duration of this video is about 30 seconds:
ffmpeg -i TFootpFA.wmv -vf "crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706" -b:v 3M TFootpFA.mp4
I want to adjust to take audio from two other video files (which both have either mono or left/right stereo audio), and use their audio as the audio for the final MP4 file as follows; calling these files audioL.mp4
and audioR.mp4
):
- I would like to create that MP4 with stereo audio.
- The audio from
audioL.mp4
will be the left channel. - The audio from
audioR.mp4
will be the right channel. - Each channel should have its audio combined/downmixed into one channel if that audio is stereo.
The duration of all three files is the same (within a few frames), but I want the target duration to be strictly that of the main WMV file I'm already using, TFootpFA.wmv
.
What parameters can I use to achieve this?
EDIT: After originally posting this question, I found this other Super User question that seems to be asking the same thing, and that arrives at this command “Trying to encode multiple audio files and map them to specific channels with FFmpeg”:
ffmpeg -i video.mov -i audio1.wav -i audio2.wav -filter_complex
"[1:a][2:a]amerge=inputs=2,pan=stereo|c0<c0+c1|c1<c2+c3,apad[aout]"
-map 0:v -map "[aout]" -shortest output.mp3
While this command has its output as an MP3 file rather than a video file, is it possible to use these settings for the FFmpeg command I already have?
EDIT: FWIW, I discovered that the command line I was originally using takes stereo audio in the source WMV file, and produces mono audio in the resulting MP4 file. I tried various filters to make the resulting MP4 file retain the stereo audio of the original WMV file, but nothing I tried worked. How would I accomplish this?
EDIT: I tried the method Gyan has posted in his answer:
ffmpeg -i TFootpFA.wmv -i audioL.mp4 -i audioR.mp4 -filter_complex "[0]crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706[v];[1]aformat=channel_layouts=mono[l];[2]aformat=channel_layouts=mono[r];[l][r]amerge=2,apad[a]" -map "[v]" -map "[a]" -b:v 3M -shortest TFootpFA.mp4
Unfortunately, the result was FFmpeg got stuck on frame=1
endlessly, while its “time” setting racked up over 3 hours in a matter of minutes of execution, until I terminated it. The final file was nonfunctional, although it did indeed report a length of over 3 hours.
As it happens, getting stuck on frame=1
is the same as what happened to me before when I tried to use a WMV file in a -filter_complex
operation, as described in a question I asked over a year ago here on the Video Stack Exchange.
At that time, I settled on a workaround where I converted the WMV files to MP4 files before using them to create a “video mosaic” with -filter_complex
. That is, in fact, what my original command line for this question was an example of.
After this current failure with a WMV file, I tried Gyan's method with an MP4 file instead.
Now, I mentioned earlier here that all my files have the same duration; short clips that are around 30 seconds. Gyan’s command with an MP4 file did avoid getting stuck on frame=1
, but after its time got to about 30 seconds, instead of completing, it got stuck on frame=900
and then quickly racked up its own lengthy time value (stating over an hour before I terminated it). The resulting file played for about 30 seconds, and then got stuck again. This is as far as I got with this.
In the meantime, I searched around for alternative strategies. I didn’t find anything that actually worked for me, but I tried something I devised based on clues I picked up on the way.
I fell back on the lengthier approach of extracting the audio from my two audio-source video files (both of which turned out to be mono audio, I found out) into MP3 files, and then combining these MP3 files’ audio data into a stereo MP3 file with this command:
ffmpeg -i audioL.mp3 -i audioR.mp3 -filter_complex "join=map=0.0-FL|1.0-FR" TwoSound.mp3
It ran okay until it got to about 21 seconds out of 30 seconds, and then FFmpeg crashed.
However, the resulting file was at least a functional stereo MP3 file of 21 seconds duration of something that worked.
I then decided to go back and re-create TFootpFA.wmv
with this new file as its audio track, using Windows Live Movie Maker, where I had created the WMV file in the first place.
As the sound itself was just sound effects of a very generalized nature, I applied the new 21-second audio file to the video to be produced, and then added 9 seconds of a second iteration of the audio file, to make the full 30 seconds the video needed. This worked fine, and I now had my file TFootpFA.wmv
already incorporating my desired stereo audio (or a satisfactory approximation thereof), and went to carry out my original command line to obtain TFootpFA.mp4
with the desired stereo audio.
But that's where I hit my latest snag: With my original command, the resulting MP4 had the audio reduced to mono! Apparently my conversion-to-MP4 method has always had that result; I just never checked into that before.
So then I went and tried various FFmpeg filters to try and insure that the resulting MP4 file retained the stereo nature of the WMV source, but nothing has worked: the MP4 file always comes out mono.
So I end with the question:
Does anyone know how I can induce FFmpeg to have the finished MP4 file retain the stereo audio of the WMV source?
command-line audio ffmpeg
New contributor
I'm currently using this FFmpeg command to create an MP4 video from WMV video, to be a component of a mosaic file from multiple MP4's; duration of this video is about 30 seconds:
ffmpeg -i TFootpFA.wmv -vf "crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706" -b:v 3M TFootpFA.mp4
I want to adjust to take audio from two other video files (which both have either mono or left/right stereo audio), and use their audio as the audio for the final MP4 file as follows; calling these files audioL.mp4
and audioR.mp4
):
- I would like to create that MP4 with stereo audio.
- The audio from
audioL.mp4
will be the left channel. - The audio from
audioR.mp4
will be the right channel. - Each channel should have its audio combined/downmixed into one channel if that audio is stereo.
The duration of all three files is the same (within a few frames), but I want the target duration to be strictly that of the main WMV file I'm already using, TFootpFA.wmv
.
What parameters can I use to achieve this?
EDIT: After originally posting this question, I found this other Super User question that seems to be asking the same thing, and that arrives at this command “Trying to encode multiple audio files and map them to specific channels with FFmpeg”:
ffmpeg -i video.mov -i audio1.wav -i audio2.wav -filter_complex
"[1:a][2:a]amerge=inputs=2,pan=stereo|c0<c0+c1|c1<c2+c3,apad[aout]"
-map 0:v -map "[aout]" -shortest output.mp3
While this command has its output as an MP3 file rather than a video file, is it possible to use these settings for the FFmpeg command I already have?
EDIT: FWIW, I discovered that the command line I was originally using takes stereo audio in the source WMV file, and produces mono audio in the resulting MP4 file. I tried various filters to make the resulting MP4 file retain the stereo audio of the original WMV file, but nothing I tried worked. How would I accomplish this?
EDIT: I tried the method Gyan has posted in his answer:
ffmpeg -i TFootpFA.wmv -i audioL.mp4 -i audioR.mp4 -filter_complex "[0]crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706[v];[1]aformat=channel_layouts=mono[l];[2]aformat=channel_layouts=mono[r];[l][r]amerge=2,apad[a]" -map "[v]" -map "[a]" -b:v 3M -shortest TFootpFA.mp4
Unfortunately, the result was FFmpeg got stuck on frame=1
endlessly, while its “time” setting racked up over 3 hours in a matter of minutes of execution, until I terminated it. The final file was nonfunctional, although it did indeed report a length of over 3 hours.
As it happens, getting stuck on frame=1
is the same as what happened to me before when I tried to use a WMV file in a -filter_complex
operation, as described in a question I asked over a year ago here on the Video Stack Exchange.
At that time, I settled on a workaround where I converted the WMV files to MP4 files before using them to create a “video mosaic” with -filter_complex
. That is, in fact, what my original command line for this question was an example of.
After this current failure with a WMV file, I tried Gyan's method with an MP4 file instead.
Now, I mentioned earlier here that all my files have the same duration; short clips that are around 30 seconds. Gyan’s command with an MP4 file did avoid getting stuck on frame=1
, but after its time got to about 30 seconds, instead of completing, it got stuck on frame=900
and then quickly racked up its own lengthy time value (stating over an hour before I terminated it). The resulting file played for about 30 seconds, and then got stuck again. This is as far as I got with this.
In the meantime, I searched around for alternative strategies. I didn’t find anything that actually worked for me, but I tried something I devised based on clues I picked up on the way.
I fell back on the lengthier approach of extracting the audio from my two audio-source video files (both of which turned out to be mono audio, I found out) into MP3 files, and then combining these MP3 files’ audio data into a stereo MP3 file with this command:
ffmpeg -i audioL.mp3 -i audioR.mp3 -filter_complex "join=map=0.0-FL|1.0-FR" TwoSound.mp3
It ran okay until it got to about 21 seconds out of 30 seconds, and then FFmpeg crashed.
However, the resulting file was at least a functional stereo MP3 file of 21 seconds duration of something that worked.
I then decided to go back and re-create TFootpFA.wmv
with this new file as its audio track, using Windows Live Movie Maker, where I had created the WMV file in the first place.
As the sound itself was just sound effects of a very generalized nature, I applied the new 21-second audio file to the video to be produced, and then added 9 seconds of a second iteration of the audio file, to make the full 30 seconds the video needed. This worked fine, and I now had my file TFootpFA.wmv
already incorporating my desired stereo audio (or a satisfactory approximation thereof), and went to carry out my original command line to obtain TFootpFA.mp4
with the desired stereo audio.
But that's where I hit my latest snag: With my original command, the resulting MP4 had the audio reduced to mono! Apparently my conversion-to-MP4 method has always had that result; I just never checked into that before.
So then I went and tried various FFmpeg filters to try and insure that the resulting MP4 file retained the stereo nature of the WMV source, but nothing has worked: the MP4 file always comes out mono.
So I end with the question:
Does anyone know how I can induce FFmpeg to have the finished MP4 file retain the stereo audio of the WMV source?
command-line audio ffmpeg
command-line audio ffmpeg
New contributor
New contributor
edited 19 hours ago
Alan Rat
New contributor
asked Mar 3 at 17:05
Alan RatAlan Rat
112
112
New contributor
New contributor
Cleaned up this question. The reality is while I believe I condensed it, I still see this question as a valid question that asks too much of the community to support. At the end of the day, one question morphed into new question and then even newer info based on an answer that still did not solve the issue. Phew! The way I am reading this is simply: “How to merge audio from two WMV video files into a third MP4 file and still retain the WMV audio as well?” I edited only as much as I feel I can do. Bu encourage the original poster to review and condense further. Good question but too long.
– JakeGould
yesterday
add a comment |
Cleaned up this question. The reality is while I believe I condensed it, I still see this question as a valid question that asks too much of the community to support. At the end of the day, one question morphed into new question and then even newer info based on an answer that still did not solve the issue. Phew! The way I am reading this is simply: “How to merge audio from two WMV video files into a third MP4 file and still retain the WMV audio as well?” I edited only as much as I feel I can do. Bu encourage the original poster to review and condense further. Good question but too long.
– JakeGould
yesterday
Cleaned up this question. The reality is while I believe I condensed it, I still see this question as a valid question that asks too much of the community to support. At the end of the day, one question morphed into new question and then even newer info based on an answer that still did not solve the issue. Phew! The way I am reading this is simply: “How to merge audio from two WMV video files into a third MP4 file and still retain the WMV audio as well?” I edited only as much as I feel I can do. Bu encourage the original poster to review and condense further. Good question but too long.
– JakeGould
yesterday
Cleaned up this question. The reality is while I believe I condensed it, I still see this question as a valid question that asks too much of the community to support. At the end of the day, one question morphed into new question and then even newer info based on an answer that still did not solve the issue. Phew! The way I am reading this is simply: “How to merge audio from two WMV video files into a third MP4 file and still retain the WMV audio as well?” I edited only as much as I feel I can do. Bu encourage the original poster to review and condense further. Good question but too long.
– JakeGould
yesterday
add a comment |
1 Answer
1
active
oldest
votes
Use
ffmpeg -i TFootpFA.wmv -i audioL.mp4 -i audioR.mp4 -filter_complex "[0]crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706[v];[1]aformat=channel_layouts=mono[l];[2]aformat=channel_layouts=mono[r];[l][r]amerge=2,apad[a]" -map "[v]" -map "[a]" -b:v 3M -shortest TFootpFA.mp4
(As your audio inputs may be mono, the linked answer isn't reliable since it assumes stereo inputs)
add a comment |
protected by Ramhound yesterday
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use
ffmpeg -i TFootpFA.wmv -i audioL.mp4 -i audioR.mp4 -filter_complex "[0]crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706[v];[1]aformat=channel_layouts=mono[l];[2]aformat=channel_layouts=mono[r];[l][r]amerge=2,apad[a]" -map "[v]" -map "[a]" -b:v 3M -shortest TFootpFA.mp4
(As your audio inputs may be mono, the linked answer isn't reliable since it assumes stereo inputs)
add a comment |
Use
ffmpeg -i TFootpFA.wmv -i audioL.mp4 -i audioR.mp4 -filter_complex "[0]crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706[v];[1]aformat=channel_layouts=mono[l];[2]aformat=channel_layouts=mono[r];[l][r]amerge=2,apad[a]" -map "[v]" -map "[a]" -b:v 3M -shortest TFootpFA.mp4
(As your audio inputs may be mono, the linked answer isn't reliable since it assumes stereo inputs)
add a comment |
Use
ffmpeg -i TFootpFA.wmv -i audioL.mp4 -i audioR.mp4 -filter_complex "[0]crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706[v];[1]aformat=channel_layouts=mono[l];[2]aformat=channel_layouts=mono[r];[l][r]amerge=2,apad[a]" -map "[v]" -map "[a]" -b:v 3M -shortest TFootpFA.mp4
(As your audio inputs may be mono, the linked answer isn't reliable since it assumes stereo inputs)
Use
ffmpeg -i TFootpFA.wmv -i audioL.mp4 -i audioR.mp4 -filter_complex "[0]crop=1092:788, eq=1.2:.03:gamma_g=.8:gamma_b=.7, scale=1020x706[v];[1]aformat=channel_layouts=mono[l];[2]aformat=channel_layouts=mono[r];[l][r]amerge=2,apad[a]" -map "[v]" -map "[a]" -b:v 3M -shortest TFootpFA.mp4
(As your audio inputs may be mono, the linked answer isn't reliable since it assumes stereo inputs)
answered Mar 4 at 4:52
GyanGyan
15.4k21846
15.4k21846
add a comment |
add a comment |
protected by Ramhound yesterday
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Cleaned up this question. The reality is while I believe I condensed it, I still see this question as a valid question that asks too much of the community to support. At the end of the day, one question morphed into new question and then even newer info based on an answer that still did not solve the issue. Phew! The way I am reading this is simply: “How to merge audio from two WMV video files into a third MP4 file and still retain the WMV audio as well?” I edited only as much as I feel I can do. Bu encourage the original poster to review and condense further. Good question but too long.
– JakeGould
yesterday