{"action":"created","issue":{"url":"https://api.github.com/repos/NVIDIA/nvvl/issues/11","repository_url":"https://api.github.com/repos/NVIDIA/nvvl","labels_url":"https://api.github.com/repos/NVIDIA/nvvl/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/NVIDIA/nvvl/issues/11/comments","events_url":"https://api.github.com/repos/NVIDIA/nvvl/issues/11/events","html_url":"https://github.com/NVIDIA/nvvl/issues/11","id":313977322,"number":11,"title":"issue of decoding difference fps videos","user":{"login":"pikerbright","id":29423786,"avatar_url":"https://avatars2.githubusercontent.com/u/29423786?v=4","gravatar_id":"","url":"https://api.github.com/users/pikerbright","html_url":"https://github.com/pikerbright","followers_url":"https://api.github.com/users/pikerbright/followers","following_url":"https://api.github.com/users/pikerbright/following{/other_user}","gists_url":"https://api.github.com/users/pikerbright/gists{/gist_id}","starred_url":"https://api.github.com/users/pikerbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikerbright/subscriptions","organizations_url":"https://api.github.com/users/pikerbright/orgs","repos_url":"https://api.github.com/users/pikerbright/repos","events_url":"https://api.github.com/users/pikerbright/events{/privacy}","received_events_url":"https://api.github.com/users/pikerbright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-13T05:52:14Z","updated_at":"2018-04-13T14:47:36Z","closed_at":null,"author_association":"NONE","body":"if I use the same one video loader and decoder difference fps videos one by one, it may hang sometimes when fps changes.\r\n\r\nThere seems to be bugs in frame count calculation in NvDecoder handle_display_  that causes we can find the right frame in sequence.\r\n\r\n**Example:**\r\nfor one  9fps video A, 30fps video B, decoded by the same one video loader\r\n\r\n**case 1**: only decode A, we get timestamp in CUVIDPARSERDISPINFO equals to [0, 1111111, 2222222, 3333333,...]. That's right!\r\n\r\n**case 2**: first decode B, Then decode A. we get A timestamp in CUVIDPARSERDISPINFO like [672333, 146726,...]. This will lead to wrong frame calculation in av_rescale_q()\r\n\r\nIs it support difference fps videos?\r\n\r\nThanks very much"},"comment":{"url":"https://api.github.com/repos/NVIDIA/nvvl/issues/comments/381159186","html_url":"https://github.com/NVIDIA/nvvl/issues/11#issuecomment-381159186","issue_url":"https://api.github.com/repos/NVIDIA/nvvl/issues/11","id":381159186,"user":{"login":"jaredcasper","id":155158,"avatar_url":"https://avatars0.githubusercontent.com/u/155158?v=4","gravatar_id":"","url":"https://api.github.com/users/jaredcasper","html_url":"https://github.com/jaredcasper","followers_url":"https://api.github.com/users/jaredcasper/followers","following_url":"https://api.github.com/users/jaredcasper/following{/other_user}","gists_url":"https://api.github.com/users/jaredcasper/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredcasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredcasper/subscriptions","organizations_url":"https://api.github.com/users/jaredcasper/orgs","repos_url":"https://api.github.com/users/jaredcasper/repos","events_url":"https://api.github.com/users/jaredcasper/events{/privacy}","received_events_url":"https://api.github.com/users/jaredcasper/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T14:47:36Z","updated_at":"2018-04-13T14:47:36Z","author_association":"CONTRIBUTOR","body":"You are right, we assume all the videos are the same frame rate (all of our videos are).  Thanks for tracking this down!\r\n\r\nI'll take a look and get a fix in soon, something like what you've done looks correct."}}
{"actor":{"display_login":"jaredcasper"}}