Source Community
I've been trying to figure out an ffmpeg command with following requirements while converting 'avi' to 'mp4' with H264 video codecs. One command I tried was generic one like this which is recommended on most forums.
ffmpeg -I input.avi -acodec copy -vcodec copy output.mp4
But this copies same video codec & doesn't convert to H264. Can anyone of you guys help me compose a line of code that would do the task with following requirements.
=> Video Options
Codec: H264 Video Aspect Ratio: No Change Video Resolution: No Change Video FPS: No Change
=> Audio Options
Codec: AC Audio Channels: No Change Audio Frequency: No Change Audio Normalization: No Change
Thanks in advance!
-c:v libx264
? (i.e. instead of-c:v copy
, also-c:v
is the same as-vcodec
)