2016-07-26, 20:16
In the Netherlands, when you like to view the Dutch Parliament live streams ("Tweede Kamer"), you get an error in the log file
saying that it can not open the stream, trying to detect it as a HLS/AppleHTTP and after that as a MpegTS, in that order and trying several probe sizes.
Example (put in a STRM file): http://tweedekamer.rr.kpnstreaming.nl/b2...index.m3u8 (is HLS stream).
Cause:
File: ffmpeg-2.8.6/avformat/format.c, in routine av_probe_input_format3.
There is a loop to score the potential stream formats (in this case HLS and MPegTS) and both give a 100 score, so in the end
the decision is that no format wins (score == score_max) and the routine returns (fmt=) NULL.
Possible solution: When the score of a potential/probed format is 100 (=AVPROBE_SCORE_MAX), then you can return that format
immediately, because that one has the maximum score. It prevents the routine from returning NULL. I have tried it and it works.
Bye.
saying that it can not open the stream, trying to detect it as a HLS/AppleHTTP and after that as a MpegTS, in that order and trying several probe sizes.
Example (put in a STRM file): http://tweedekamer.rr.kpnstreaming.nl/b2...index.m3u8 (is HLS stream).
Cause:
File: ffmpeg-2.8.6/avformat/format.c, in routine av_probe_input_format3.
There is a loop to score the potential stream formats (in this case HLS and MPegTS) and both give a 100 score, so in the end
the decision is that no format wins (score == score_max) and the routine returns (fmt=) NULL.
Possible solution: When the score of a potential/probed format is 100 (=AVPROBE_SCORE_MAX), then you can return that format
immediately, because that one has the maximum score. It prevents the routine from returning NULL. I have tried it and it works.
Bye.