{"action":"created","issue":{"url":"https://api.github.com/repos/brion/ogv.js/issues/321","labels_url":"https://api.github.com/repos/brion/ogv.js/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/brion/ogv.js/issues/321/comments","events_url":"https://api.github.com/repos/brion/ogv.js/issues/321/events","html_url":"https://github.com/brion/ogv.js/issues/321","id":118285802,"number":321,"title":"Theora/Vorbis decoder failed mysteriously?","user":{"login":"cromdev","id":863967,"avatar_url":"https://avatars.githubusercontent.com/u/863967?v=3","gravatar_id":"","url":"https://api.github.com/users/cromdev","html_url":"https://github.com/cromdev","followers_url":"https://api.github.com/users/cromdev/followers","following_url":"https://api.github.com/users/cromdev/following{/other_user}","gists_url":"https://api.github.com/users/cromdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cromdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cromdev/subscriptions","organizations_url":"https://api.github.com/users/cromdev/orgs","repos_url":"https://api.github.com/users/cromdev/repos","events_url":"https://api.github.com/users/cromdev/events{/privacy}","received_events_url":"https://api.github.com/users/cromdev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-22T20:20:54Z","updated_at":"2015-11-23T18:02:24Z","closed_at":null,"body":"After encoding mp4 video to ogv (either with linux ffmpeg or windows XMedia Recode) it gives following output in console:\r\nVorbis decoder failed mysteriously? -135\r\nTheora decoder failed mysteriously? -24\r\n\r\nTried with both vorbis (c-bunny video) and opus (c1-bunny video) audio codecs.\r\n\r\nYou can see it temporarily here: http://pbb2.linuxpl.info/video-flip-player/min2.html\r\n\r\nSeems to be related to https://github.com/brion/ogv.js/issues/196"},"comment":{"url":"https://api.github.com/repos/brion/ogv.js/issues/comments/159013152","html_url":"https://github.com/brion/ogv.js/issues/321#issuecomment-159013152","issue_url":"https://api.github.com/repos/brion/ogv.js/issues/321","id":159013152,"user":{"login":"brion","id":103075,"avatar_url":"https://avatars.githubusercontent.com/u/103075?v=3","gravatar_id":"","url":"https://api.github.com/users/brion","html_url":"https://github.com/brion","followers_url":"https://api.github.com/users/brion/followers","following_url":"https://api.github.com/users/brion/following{/other_user}","gists_url":"https://api.github.com/users/brion/gists{/gist_id}","starred_url":"https://api.github.com/users/brion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brion/subscriptions","organizations_url":"https://api.github.com/users/brion/orgs","repos_url":"https://api.github.com/users/brion/repos","events_url":"https://api.github.com/users/brion/events{/privacy}","received_events_url":"https://api.github.com/users/brion/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T18:02:24Z","updated_at":"2015-11-23T18:02:24Z","body":"It looks like your file doesn't have a skeleton track, so these are actually from re-seeking to the beginning of the stream after seeking to the end to calculate the file's duration manually (by checking the timestamps on the last packets in the stream).\r\n\r\nWhen we get back to the beginning, we start with the header packets and the decoder complains they're not valid. This is a bug in the decoder insofar as we should silently skip over them. :)\r\n\r\nYou can avoid the seek-related warning (and avoid an extra network round-trip) by including a v4 ogg skeleton track in the file, which provides duration and seek metadata for the player to use. Unfortunately ffmpeg doesn't (currently) produce a skeleton track, but you can use ffmpeg2theora.\r\n\r\nPlayer-side fix will probably be to check for header-ness of packets before tossing them in to the decoder after that seek."}}