From 6f26f14f134e753d6168591f30815b1c08c1498b Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 23 Nov 2014 17:30:35 +0200 Subject: sidxindex: Write mimeType=audio/mp4 for audio-only representations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes playback with dash.js, when the input is one separate mp4 file per track. Signed-off-by: Martin Storsjö --- tools/sidxindex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/sidxindex.c b/tools/sidxindex.c index da41d09871..62f021fd5c 100644 --- a/tools/sidxindex.c +++ b/tools/sidxindex.c @@ -327,7 +327,7 @@ static int output_mpd(struct Tracks *tracks, const char *filename) for (i = 0; i < nb_tracks[set]; ) { struct Track *first_track = adaptation_sets[set][i]; int width = 0, height = 0, sample_rate = 0, channels = 0, bitrate = 0; - fprintf(out, "\t\t\tname, first_track->name)) @@ -345,7 +345,8 @@ static int output_mpd(struct Tracks *tracks, const char *filename) fprintf(out, ","); fprintf(out, "%s", track->codec_str); } - fprintf(out, "\" bandwidth=\"%d\"", bitrate); + fprintf(out, "\" mimeType=\"%s/mp4\" bandwidth=\"%d\"", + width ? "video" : "audio", bitrate); if (width > 0 && height > 0) fprintf(out, " width=\"%d\" height=\"%d\"", width, height); if (sample_rate > 0) -- cgit v1.2.3