User Tools

Site Tools


ffprobe:streams:get_the_number_of_available_streams

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ffprobe:streams:get_the_number_of_available_streams [2025/01/12 20:37] – created peterffprobe:streams:get_the_number_of_available_streams [2025/01/12 20:51] (current) peter
Line 2: Line 2:
  
 <code bash> <code bash>
-ffprobe input -show_entries format=nb_streams -v 0 -of compact=p=0:nk=1+ffprobe <input-show_entries format=nb_streams -v 0 -of csv=p=0
  
 or  or 
Line 11: Line 11:
 <WRAP info> <WRAP info>
 **NOTE:** This can be filtered for only video or audio streams by adding **-select_streams v** or **-select_streams a**, respectively. **NOTE:** This can be filtered for only video or audio streams by adding **-select_streams v** or **-select_streams a**, respectively.
 +
 +  * **-v 0** only show fatal errors which could lead the process to crash, such as an assertion failure. 
 +    * This hides "info" output (version info, etc) which makes parsing easier.
 +  * **-show_entries format=nb_streams** shows the number of streams.
 +  * **-of csv=p=0** sets the output formatting. In this case it hides the descriptions and only shows the value. 
 +    * See [[https://ffmpeg.org/ffprobe.html#Writers|FFprobe Writers]] for info on other formats including JSON.
 +
 </WRAP> </WRAP>
  
 +----
 +
 +===== References =====
 +
 +https://trac.ffmpeg.org/wiki/FFprobeTips
 +
 +https://ffmpeg.org/ffprobe.html#Writers
ffprobe/streams/get_the_number_of_available_streams.1736714269.txt.gz · Last modified: 2025/01/12 20:37 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki