ffprobe:streams:get_stream_fields
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ffprobe:streams:get_stream_fields [2025/01/12 22:43] – peter | ffprobe:streams:get_stream_fields [2025/01/12 22:47] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ffprobe - Streams - Get stream fields ====== | ====== ffprobe - Streams - Get stream fields ====== | ||
+ | |||
+ | ===== Get all fields ===== | ||
<code bash> | <code bash> | ||
Line 21: | Line 23: | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
- | Change the **a** for **a:0** or **a:1** to specify a specific stream. | + | * **-select_streams a**: This queries all audio streams. |
- | + | * Change the **a** for **a:0** or **a:1** to specify a specific stream. <code bash> | |
- | <code bash> | + | |
ffprobe -v 0 -select_streams a:0 -show_entries stream file | ffprobe -v 0 -select_streams a:0 -show_entries stream file | ||
</ | </ | ||
- | Be aware that the result | + | Be aware that the result |
+ | * It is in the order that the metadata is in the file. | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Get selected fields ===== | ||
+ | |||
+ | <code bash> | ||
+ | ffprobe -v 0 -select_streams a -show_entries stream=index, | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | < | ||
+ | 1 | ||
+ | ac3 | ||
+ | 6 | ||
+ | rus | ||
+ | 2 | ||
+ | ac3 | ||
+ | 6 | ||
+ | eng | ||
+ | </ | ||
ffprobe/streams/get_stream_fields.1736721792.txt.gz · Last modified: 2025/01/12 22:43 by peter