16

Is there's a difference between these two commands?

ffmpeg -i input.mp4 -c:v copy -c:a copy output.mkv

ffmpeg -i input.mp4 -vcodec copy -acodec copy output.mkv

1 Answer 1

18

There is no difference. If you check the manual:

-vcodec codec (output)
Set the video codec. This is an alias for -codec:v.

And of course -codec is the same as -c.

-c[:stream_specifier] codec (input/output,per-stream)
-codec[:stream_specifier] codec (input/output,per-stream)

However, I would encourage people to use the -codec/-c version, since it makes use of stream specifiers (:v, :a, :s), which are also used in filtergraphs or stream mapping.

2
  • Just so I don't make bad assumptions - does this mean that -c:a means audio stream, -c:v means video stream, etc? Feb 2, 2023 at 2:26
  • 1
    @aggregate1166877 Yes, that's right.
    – slhck
    Feb 2, 2023 at 8:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .