show stream info of media files
Find a file
Rainer Suhm 8f210dbb8f increment file-index when called with multiple filenames
ffprobe can't be given more than one file to analyse. If sv is called
with multiple filenames, it invokes ffprobe for every single file. Because
of this the file-index is for all files #0. In contrast to this ffmpeg
can be called with multiple input files. The first one has file-index #0,
the second one #1 and so on.
As the file-index is part of the stream number, the output of sv and
ffmpeg are not identical.

Add a counter, and process the output of ffprobe through sed to substitute
the file-index with an incrementing index, to make the stream numbering
identical to ffmpeg.
2023-05-15 22:01:10 +02:00
PKGBUILD increment file-index when called with multiple filenames 2023-05-15 22:01:10 +02:00
si increment file-index when called with multiple filenames 2023-05-15 22:01:10 +02:00