{"action":"created","issue":{"url":"https://api.github.com/repos/RReverser/mpegts/issues/33","repository_url":"https://api.github.com/repos/RReverser/mpegts","labels_url":"https://api.github.com/repos/RReverser/mpegts/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/RReverser/mpegts/issues/33/comments","events_url":"https://api.github.com/repos/RReverser/mpegts/issues/33/events","html_url":"https://github.com/RReverser/mpegts/issues/33","id":171031292,"number":33,"title":"Live thumbnails generation","user":{"login":"iongion","id":867609,"avatar_url":"https://avatars.githubusercontent.com/u/867609?v=3","gravatar_id":"","url":"https://api.github.com/users/iongion","html_url":"https://github.com/iongion","followers_url":"https://api.github.com/users/iongion/followers","following_url":"https://api.github.com/users/iongion/following{/other_user}","gists_url":"https://api.github.com/users/iongion/gists{/gist_id}","starred_url":"https://api.github.com/users/iongion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iongion/subscriptions","organizations_url":"https://api.github.com/users/iongion/orgs","repos_url":"https://api.github.com/users/iongion/repos","events_url":"https://api.github.com/users/iongion/events{/privacy}","received_events_url":"https://api.github.com/users/iongion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-13T22:39:02Z","updated_at":"2016-08-16T13:08:32Z","closed_at":null,"body":"This is not an issue, it is a question - no such feature on github except than abusing labels.\r\n\r\nIs it possible to use the h264 parser to extract a keyframe near a timestamp ?\r\nI currently do this with ffmpeg which is smart enough to do `byte-ranges` request, which is very efficient but still needs caching and CDNs support.\r\n\r\nWhat I would like to do is to perform all this client side, browsers are able to:\r\n- Parse the header of the mpeg-ts file\r\n- From the header, find the byte address where the keyframe nearest to the input timestamp exist\r\n- Issue bytes-ranges requests\r\n- Download, process/parse and generate binary data\r\n- Extract the keyframe byes and convert them to something useful\r\n- Load the pixels into a canvas or such\r\n\r\nWill this project offer the ability to parse the mpeg-ts header and navigate to a a keyframe in h264 stream contained in the mpeg-ts segment ?"},"comment":{"url":"https://api.github.com/repos/RReverser/mpegts/issues/comments/240095937","html_url":"https://github.com/RReverser/mpegts/issues/33#issuecomment-240095937","issue_url":"https://api.github.com/repos/RReverser/mpegts/issues/33","id":240095937,"user":{"login":"RReverser","id":557590,"avatar_url":"https://avatars.githubusercontent.com/u/557590?v=3","gravatar_id":"","url":"https://api.github.com/users/RReverser","html_url":"https://github.com/RReverser","followers_url":"https://api.github.com/users/RReverser/followers","following_url":"https://api.github.com/users/RReverser/following{/other_user}","gists_url":"https://api.github.com/users/RReverser/gists{/gist_id}","starred_url":"https://api.github.com/users/RReverser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RReverser/subscriptions","organizations_url":"https://api.github.com/users/RReverser/orgs","repos_url":"https://api.github.com/users/RReverser/repos","events_url":"https://api.github.com/users/RReverser/events{/privacy}","received_events_url":"https://api.github.com/users/RReverser/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T13:08:31Z","updated_at":"2016-08-16T13:08:31Z","body":"Generally this should be totally possible, except I didn't really parse keyframes and can't help with the image encoding format.\r\n\r\nIs there any particular reason you don't want to go the easier way - just creating temporary `<video src>`, setting time to the needed one, starting load manually with `.load` (then browser will send range request as well) and drawing that video element to the canvas?"}}
{"actor":{"display_login":"RReverser"}}