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.
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
Asked: 2023-04-19 11:13:09 +0000
Seen: 17 times
Last updated: Apr 19 '23
How can I print FPS and Resolution from a Video using ffprobe?
How can I quickly showcase my videos similar to Instagram reels?
How can I add a video to the lower right corner of my WordPress website?
What is the method for incorporating subtitles into a video utilizing the ffmpeg filter?
How to embed the YouTube API video player without related videos appearing at the end (rel=0)?