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:44] – 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 24: | Line 26: | ||
* **-select_streams a**: This queries all audio streams. | * **-select_streams a**: This queries all audio streams. | ||
- | * Change the **a** for **a:0** or **a:1** to specify a specific stream. | + | * 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.1736721851.txt.gz · Last modified: 2025/01/12 22:44 by peter