User Tools

Site Tools


ffprobe:streams:get_stream_fields

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ffprobe:streams:get_stream_fields [2025/01/12 22:38] peterffprobe: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 
 </code> </code>
  
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/1000 +
-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:default=0 +
-DISPOSITION:dub=0 +
-DISPOSITION:original=0 +
-DISPOSITION:comment=0 +
-DISPOSITION:lyrics=0 +
-DISPOSITION:karaoke=0 +
-DISPOSITION:forced=0 +
-DISPOSITION:hearing_impaired=0 +
-DISPOSITION:visual_impaired=0 +
-DISPOSITION:clean_effects=0 +
-DISPOSITION:attached_pic=0 +
-DISPOSITION:timed_thumbnails=0 +
-DISPOSITION:non_diegetic=0 +
-DISPOSITION:captions=0 +
-DISPOSITION:descriptions=0 +
-DISPOSITION:metadata=0 +
-DISPOSITION:dependent=0 +
-DISPOSITION:still_image=0+
 TAG:language=eng TAG:language=eng
-TAG:BPS=384000 +...
-TAG:BPS-eng=384000 +
-TAG:DURATION=00:59:52.544000000 +
-TAG:DURATION-eng=00:59:52.544000000 +
-TAG:NUMBER_OF_FRAMES=112267 +
-TAG:NUMBER_OF_FRAMES-eng=112267 +
-TAG:NUMBER_OF_BYTES=172442112 +
-TAG:NUMBER_OF_BYTES-eng=172442112 +
-TAG:_STATISTICS_WRITING_APP=mkvmerge v8.3.0 ('Blah Blah') 64bit +
-TAG:_STATISTICS_WRITING_APP-eng=mkvmerge v8.3.0 ('Blah Blah') 64bit +
-TAG:_STATISTICS_WRITING_DATE_UTC=2022-03-02 19:29:34 +
-TAG:_STATISTICS_WRITING_DATE_UTC-eng=2022-03-02 19:29:34 +
-TAG:_STATISTICS_TAGS=BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES +
-TAG:_STATISTICS_TAGS-eng=BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES+
 [/STREAM] [/STREAM]
 </code> </code>
  
 +<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
 +</code>
 +
 +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.
 +
 +</WRAP>
 +
 +
 +----
 +
 +===== Get selected fields =====
 +
 +<code bash>
 +ffprobe -v 0 -select_streams a -show_entries stream=index,codec_name,channels:stream_tags=language -of default=nk=1:nw=1 a.mkv
 +</code>
 +
 +returns:
 +
 +<code>
 +1
 +ac3
 +6
 +rus
 +2
 +ac3
 +6
 +eng
 +</code>
  
ffprobe/streams/get_stream_fields.1736721499.txt.gz · Last modified: 2025/01/12 22:38 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki