[FFmpeg-trac] #6787(undetermined:new): mpeg-dash: Codec type of stream 1 doesn't match AdaptationSet's media type
FFmpeg
trac at avcodec.org
Sun Oct 29 21:36:42 EET 2017
#6787: mpeg-dash: Codec type of stream 1 doesn't match AdaptationSet's media type
-------------------------------------+-------------------------------------
Reporter: themihai | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: dash | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by themihai):
I will try to simplify the command to bare minimum and send a reduced test
case. I've checked the latest commits but I think they don't fix the
issue. The issue is related to line 457
http://git.videolan.org/?p=ffmpeg.git;a=blob_plain;f=libavformat/dashenc.c;hb=refs/heads/master
The mediaType of the adaptation set doesn't need to match all the codec
types of the streams because an adaptationSet may include streams of
different media types (i.e. both audio, video representations not only
video or only audio representation). Line 457 seems to restrict the media
type of the streams to the media type of the adaptation set.
if (as->media_type != s->streams[i]->codecpar->codec_type) {
av_log(s, AV_LOG_ERROR, "Codec type of stream %d doesn't match
AdaptationSet's media type\n", i);
return AVERROR(EINVAL);
}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6787#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list