{"action":"created","issue":{"url":"https://api.github.com/repos/gpac/gpac/issues/360","labels_url":"https://api.github.com/repos/gpac/gpac/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/gpac/gpac/issues/360/comments","events_url":"https://api.github.com/repos/gpac/gpac/issues/360/events","html_url":"https://github.com/gpac/gpac/issues/360","id":123559946,"number":360,"title":"-url-template not reliable, may try to load non-existing segment","user":{"login":"blacktrash","id":168338,"avatar_url":"https://avatars.githubusercontent.com/u/168338?v=3","gravatar_id":"","url":"https://api.github.com/users/blacktrash","html_url":"https://github.com/blacktrash","followers_url":"https://api.github.com/users/blacktrash/followers","following_url":"https://api.github.com/users/blacktrash/following{/other_user}","gists_url":"https://api.github.com/users/blacktrash/gists{/gist_id}","starred_url":"https://api.github.com/users/blacktrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacktrash/subscriptions","organizations_url":"https://api.github.com/users/blacktrash/orgs","repos_url":"https://api.github.com/users/blacktrash/repos","events_url":"https://api.github.com/users/blacktrash/events{/privacy}","received_events_url":"https://api.github.com/users/blacktrash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-12-22T21:32:58Z","updated_at":"2016-01-15T20:00:18Z","closed_at":null,"body":"Test stream: http://media.blacktrash.org/fp/test/night1.mpd\r\n\r\nThe dash.js (I can't get Osmo to work on OS X, only white screen) sample player tries to load http://media.blacktrash.org/fp/test/night1/dash/1-6.m4s as last audio segment which does not exist.\r\n\r\nCounter example without template: http://stream.flowplayer.org/night1.mpd works without problems.\r\n\r\nSegment template for the audio representation is:\r\n\r\n```xml\r\n<SegmentTemplate timescale=\"44100\" media=\"$RepresentationID$-$Number$.m4s\" startNumber=\"1\" duration=\"88064\" initialization=\"$RepresentationID$-.mp4\"/>\r\n```\r\n\r\nMaybe because 88064 / 44100 = 1.99691609977324263038 is minutely less than 2 (2 second segments)?\r\n\r\nSee also: https://github.com/Dash-Industry-Forum/dash.js/issues/950\r\n\r\nMaybe related or duplicate of #223."},"comment":{"url":"https://api.github.com/repos/gpac/gpac/issues/comments/172069897","html_url":"https://github.com/gpac/gpac/issues/360#issuecomment-172069897","issue_url":"https://api.github.com/repos/gpac/gpac/issues/360","id":172069897,"user":{"login":"blacktrash","id":168338,"avatar_url":"https://avatars.githubusercontent.com/u/168338?v=3","gravatar_id":"","url":"https://api.github.com/users/blacktrash","html_url":"https://github.com/blacktrash","followers_url":"https://api.github.com/users/blacktrash/followers","following_url":"https://api.github.com/users/blacktrash/following{/other_user}","gists_url":"https://api.github.com/users/blacktrash/gists{/gist_id}","starred_url":"https://api.github.com/users/blacktrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacktrash/subscriptions","organizations_url":"https://api.github.com/users/blacktrash/orgs","repos_url":"https://api.github.com/users/blacktrash/repos","events_url":"https://api.github.com/users/blacktrash/events{/privacy}","received_events_url":"https://api.github.com/users/blacktrash/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T20:00:18Z","updated_at":"2016-01-15T20:00:18Z","body":"* On Friday, January 15, 2016, you wrote:\n> I think you don't use the last version,\n\n$ MP4Box -version\nMP4Box - GPAC version 0.5.2-DEV-rev1125-gd7c3b1a-master\nGPAC Copyright (c) Telecom ParisTech 2000-2012\nGPAC Configuration: --prefix=/usr/local --use-openjpeg=no\nFeatures: GPAC_64_BITS GPAC_HAS_SSL GPAC_HAS_JPEG GPAC_HAS_PNG\n\nwhich means it contains\nhttps://github.com/gpac/gpac/commit/d7c3b1a3f30e341c02f155478dbeca449261a351\n\n> my MPD looks like this:\n> ```\n> <snip ...>\n>     <SegmentTemplate timescale=\"44100\" media=\"night1-360p_dash_track2_$Number$.m4s\" startNumber=\"1\" duration=\"88200\" initialization=\"night1-360p_dash_track2_init.mp4\"/>\n> <snip ...>\n> ```\n> \n> It looks right, right?\n\nYes, that's what I would expect.\n\n> PS: command line ```-dash 2000 -profile live night1-360p.mp4#audio```\n\nWhy `-live`, it's VOD? I can try that, but why should it make a difference? Maybe I have to comit `-rap` and `-frag-rap` (although at least `-rap` makes sense with my IDR frame placing) or start again playing with some options. I must have `-bs-switching merge` though because AVC3 does not fare well in Safari. Did you try in conjunction with video? \n\n"}}