1 | initial version |
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.
2 | No.2 Revision |
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> <input_file>
with the path to your video file.