]> git.sesse.net Git - ffmpeg/commit
avformat/utils: Stream specifier enhancement
authorBela Bodecs <bodecsb@vivanet.hu>
Sun, 1 Apr 2018 21:29:14 +0000 (23:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 21:52:59 +0000 (23:52 +0200)
commit37d0213968a2b58499f52dfe09c8d7a27d4c5a86
treec27b83e73fb5fa7d3b11998191c3e1e1aded4ecc
parent4d544f608608f69e68136b8333d3649866e2a7ed
avformat/utils: Stream specifier enhancement

Currently when specifying the program id you can only decide to select
all stream of the specified program (e.g. p:103 will select all streams
of program 103) or narrow the selection to a specific stream sub index
(e.g. p:145:1 will select 2nd stream of program 145.) But you can not
specify like all audio streams of program 145 or 3rd video stream of
program 311.
In some case, mainly working with multiprogram mpeg-ts containers as
input, this feature would be handy.
This patch makes it possible to narrow the stream selection among
streams of the specified program by stream type and optionally its
index. Handled types: a, v, s, d.
Examples: p:601:a  will select all audio streams of program 601,
p:603:a:1 will select 2nd audio streams of program 603,
p:604:v:0 will select first video stream of program 604.

Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
doc/fftools-common-opts.texi
libavformat/utils.c