The Computer Oracle

Difference between -c:v and -vcodec, and -c:a and -acodec?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: RPG Blues Looping

--

Chapters
00:00 Difference Between -C:V And -Vcodec, And -C:A And -Acodec?
00:16 Accepted Answer Score 18
00:44 Thank you

--

Full question
https://superuser.com/questions/835048/d...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#ffmpeg

#avk47



ACCEPTED ANSWER

Score 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.