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:38] – 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> | ||
ffprobe -v 0 -select_streams a -show_entries stream file | ffprobe -v 0 -select_streams a -show_entries stream file | ||
- | |||
- | or | ||
- | |||
- | ffprobe -v 0 -select_streams a:0 -show_entries stream file | ||
</ | </ | ||
Line 18: | Line 16: | ||
profile=unknown | profile=unknown | ||
codec_type=audio | codec_type=audio | ||
- | codec_tag_string=[0][0][0][0] | + | ... |
- | codec_tag=0x0000 | + | |
- | sample_fmt=fltp | + | |
- | sample_rate=48000 | + | |
- | channels=6 | + | |
- | channel_layout=5.1(side) | + | |
- | bits_per_sample=0 | + | |
- | initial_padding=0 | + | |
- | id=N/A | + | |
- | r_frame_rate=0/ | + | |
- | avg_frame_rate=0/ | + | |
- | time_base=1/ | + | |
- | start_pts=0 | + | |
- | start_time=0.000000 | + | |
- | duration_ts=N/ | + | |
- | duration=N/ | + | |
- | bit_rate=384000 | + | |
- | max_bit_rate=N/ | + | |
- | bits_per_raw_sample=N/ | + | |
- | nb_frames=N/ | + | |
- | nb_read_frames=N/ | + | |
- | nb_read_packets=N/ | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
- | DISPOSITION: | + | |
TAG: | TAG: | ||
- | TAG: | + | ... |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
- | TAG: | + | |
[/STREAM] | [/STREAM] | ||
</ | </ | ||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * **-select_streams a**: This queries all audio streams. | ||
+ | * Change the **a** for **a:0** or **a:1** to specify a specific stream. <code bash> | ||
+ | ffprobe -v 0 -select_streams a:0 -show_entries stream file | ||
+ | </ | ||
+ | |||
+ | Be aware that the result will not returned in the order specified in the command. | ||
+ | |||
+ | * 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.1736721499.txt.gz · Last modified: 2025/01/12 22:38 by peter