{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/2117","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/2117/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/2117/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/2117/events","html_url":"https://github.com/mpv-player/mpv/pull/2117","id":93916308,"number":2117,"title":"vf_vdpaurb: Add a new filter for reading back vdpau decoded frames","user":{"login":"philipl","id":512286,"avatar_url":"https://avatars.githubusercontent.com/u/512286?v=3","gravatar_id":"","url":"https://api.github.com/users/philipl","html_url":"https://github.com/philipl","followers_url":"https://api.github.com/users/philipl/followers","following_url":"https://api.github.com/users/philipl/following{/other_user}","gists_url":"https://api.github.com/users/philipl/gists{/gist_id}","starred_url":"https://api.github.com/users/philipl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipl/subscriptions","organizations_url":"https://api.github.com/users/philipl/orgs","repos_url":"https://api.github.com/users/philipl/repos","events_url":"https://api.github.com/users/philipl/events{/privacy}","received_events_url":"https://api.github.com/users/philipl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-08T23:59:15Z","updated_at":"2015-09-03T14:53:38Z","closed_at":"2015-07-11T08:46:41Z","pull_request":{"url":"https://api.github.com/repos/mpv-player/mpv/pulls/2117","html_url":"https://github.com/mpv-player/mpv/pull/2117","diff_url":"https://github.com/mpv-player/mpv/pull/2117.diff","patch_url":"https://github.com/mpv-player/mpv/pull/2117.patch"},"body":"Normally, vdpau decoded frames are passed directly to a suitable\r\nvo (vo_vdpau or vo_opengl) without ever touching system memory. This\r\nis efficient for output purposes, but prevents any of the regular\r\nfilters from being used with such frames.\r\n\r\nThis new filter implements a read-back step to pull the frames back\r\ninto system memory where they can be acted on by other filters.\r\nEventually the frames will be sent to the vo as if they were normal\r\nsoftware-decoded frames.\r\n\r\nNote that a vdpau compatible vo must still be used to ensure that\r\nthe decoder is properly initialised."},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/137475391","html_url":"https://github.com/mpv-player/mpv/pull/2117#issuecomment-137475391","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/2117","id":137475391,"user":{"login":"kokoko3k","id":1230726,"avatar_url":"https://avatars.githubusercontent.com/u/1230726?v=3","gravatar_id":"","url":"https://api.github.com/users/kokoko3k","html_url":"https://github.com/kokoko3k","followers_url":"https://api.github.com/users/kokoko3k/followers","following_url":"https://api.github.com/users/kokoko3k/following{/other_user}","gists_url":"https://api.github.com/users/kokoko3k/gists{/gist_id}","starred_url":"https://api.github.com/users/kokoko3k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokoko3k/subscriptions","organizations_url":"https://api.github.com/users/kokoko3k/orgs","repos_url":"https://api.github.com/users/kokoko3k/repos","events_url":"https://api.github.com/users/kokoko3k/events{/privacy}","received_events_url":"https://api.github.com/users/kokoko3k/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T14:53:38Z","updated_at":"2015-09-03T14:53:38Z","body":"Would it be possible to make the filter a little smarter so that it would (detach) attach itself if:\r\n1) hw decoding is (not) active\r\n2) (no) other video filters are in the chain\r\n\r\nRight now,\r\nif i try to play a not hw accelerated codec with -vf=vdpaurb, video playback will just fail.\r\nIt also seems to do unnecessary work by copying frames even if there are no other active video filters.\r\n\r\nThanks for the commit."}}