dashenc: default to one AdaptationSet per stream
authorPeter Große <pegro@friiks.de>
Sun, 29 Jan 2017 14:26:29 +0000 (15:26 +0100)
committerMartin Storsjö <martin@martin.st>
Mon, 30 Jan 2017 22:33:07 +0000 (00:33 +0200)
commitca9bc9de690258d4761a19b0df6e9c9113b80115
tree3b3cdb40eb6fbf735c9adb3b76b9063964ffdde7
parentefd2fc41b3f0749f9715d50b581f22bbaa8c5b99
dashenc: default to one AdaptationSet per stream

Previously all mapped streams of a media type (video, audio) where assigned
to a single AdaptationSet. Using the DASH live profile it is mandatory, that
the segments of all representations are aligned, which is currently not
enforced. This leads to problems when using video streams with different
key frame intervals. So to play safe, default to one AdaptationSet per stream,
unless overwritten by explicit assignment.

To get the old assignment scheme, use

  -adaptation_sets "id=0,streams=v id=1,streams=a"

Signed-off-by: Peter Große <pegro@friiks.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/dashenc.c