A
A
Anton_repr2020-05-26 16:59:58
C++ / C#
Anton_repr, 2020-05-26 16:59:58

How to merge audio and video without compression?

I have audio and video (1080p).
I'm trying to merge:

await ffmpeg.ExecuteAsync([email protected]"-i video.mp4 -i audio.wav -c:v copy -c:a aac newVideo.mp4");


everything works, but the resolution changes to 720p

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2020-05-26
@Anton_repr

Put "-c:v copy" between "-i video.mp4" and "-i audio.waw", the option applies to the last specified source.

await ffmpeg.ExecuteAsync([email protected]"-i video.mp4 -c:v copy -i audio.wav -c:a aac newVideo.mp4");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question