From 370ed5777c6f0b7e89542bcd3357270b88e09e93 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 3 Dec 2019 21:04:53 +0100 Subject: demux: do not make up demuxer_id The demuxer_id (exported in as "src-id" property) is supposed to be the native stream ID, as it exists in the file, or -1 if that does not exist (actually any negative value), or if it is unknown. Until now, an ID was made up if it was missing. That seems like strange non-sense, and I can't find the reason why it was done. But it was probably for convenience by the EDL stuff or so. Stop doing this. Fortunately, the src-id property was documented as being unavailable if the ID is not known. Even the code for this was present, it was just inactive until now. Extend input.rst with some explanations. Also fixing 3 other places where negative demuxer_id was ignored or avoided. --- DOCS/man/input.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'DOCS/man/input.rst') diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index c96fd57300..323a961804 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -2145,7 +2145,11 @@ Property list String describing the media type. One of ``audio``, ``video``, ``sub``. ``track-list/N/src-id`` - Track ID as used in the source file. Not always available. + Track ID as used in the source file. Not always available. (It is + missing if the format has no native ID, if the track is a pseudo-track + that does not exist in this way in the actual file, or if the format + is handled by libavformat, and the format was not whitelisted as having + track IDs.) ``track-list/N/title`` Track title as it is stored in the file. Not always available. -- cgit v1.2.3