Ask Your Question
0

How can I print the video and audio codec of a video with ffprobe?

asked 2023-04-19 11:13:09 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-19 11:14:54 +0000

david gravatar image

updated 2023-04-19 15:57:35 +0000

To print the video and audio codecs of a video using ffprobe, you can use the following command in your terminal or command prompt:

ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 <input_file> && ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 <input_file>

Replace <input_file> with the path to your video file.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

1 follower

Stats

Asked: 2023-04-19 11:13:09 +0000

Seen: 17 times

Last updated: Apr 19 '23