{"action":"created","issue":{"url":"https://api.github.com/repos/rigaya/NVEnc/issues/43","repository_url":"https://api.github.com/repos/rigaya/NVEnc","labels_url":"https://api.github.com/repos/rigaya/NVEnc/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/rigaya/NVEnc/issues/43/comments","events_url":"https://api.github.com/repos/rigaya/NVEnc/issues/43/events","html_url":"https://github.com/rigaya/NVEnc/issues/43","id":307664278,"number":43,"title":"When encoding anamorphic video, then the aspect ratio in the target file is obtained incorrectly.","user":{"login":"drSHLEFF","id":11748220,"avatar_url":"https://avatars1.githubusercontent.com/u/11748220?v=4","gravatar_id":"","url":"https://api.github.com/users/drSHLEFF","html_url":"https://github.com/drSHLEFF","followers_url":"https://api.github.com/users/drSHLEFF/followers","following_url":"https://api.github.com/users/drSHLEFF/following{/other_user}","gists_url":"https://api.github.com/users/drSHLEFF/gists{/gist_id}","starred_url":"https://api.github.com/users/drSHLEFF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drSHLEFF/subscriptions","organizations_url":"https://api.github.com/users/drSHLEFF/orgs","repos_url":"https://api.github.com/users/drSHLEFF/repos","events_url":"https://api.github.com/users/drSHLEFF/events{/privacy}","received_events_url":"https://api.github.com/users/drSHLEFF/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-22T14:21:43Z","updated_at":"2018-03-22T22:09:15Z","closed_at":null,"author_association":"NONE","body":"Source: DVD PAL 4:3 (1,333333) Anamorph - DAR: 1,333333 (not ITU PAL), SAR: 1,25 (720x576), PAR: 16:15;\r\nAfter encoding:  We have h264 video 785x576 (AR=1,36284722) - absolutely wrong aspect, the picture turns out to be stretched. Right aspect must be - 768x576 = 1,333333 (and if use avisynth + ffmpeg - it turns out that way).\r\nThe screenshot shows that the data in the command line is transmitted correctly and NVEnc applies PAR 16:15 correctly, but the output is a video with the wrong aspect ratio.\r\nIf manualy use --dar 4:3 - doesn't change anything;\r\n\r\nSo, instead PAR=16:15 (1,0666667), NVEnc used PAR: 785/576= 1,36284722 / 1,25 = 1,0902777 - ITU PAL?? but ITU PAL 12:11 = 1,0909090;\r\n\r\n![inked2018-03-22 36 _li](https://user-images.githubusercontent.com/11748220/37775149-38872bf0-2df3-11e8-8e65-29c47d0b6b12.jpg)\r\n![inked2018-03-22 37 _li](https://user-images.githubusercontent.com/11748220/37775153-3a85d14a-2df3-11e8-851c-81a8752b303f.jpg)\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rigaya/NVEnc/issues/comments/375473787","html_url":"https://github.com/rigaya/NVEnc/issues/43#issuecomment-375473787","issue_url":"https://api.github.com/repos/rigaya/NVEnc/issues/43","id":375473787,"user":{"login":"rigaya","id":815947,"avatar_url":"https://avatars1.githubusercontent.com/u/815947?v=4","gravatar_id":"","url":"https://api.github.com/users/rigaya","html_url":"https://github.com/rigaya","followers_url":"https://api.github.com/users/rigaya/followers","following_url":"https://api.github.com/users/rigaya/following{/other_user}","gists_url":"https://api.github.com/users/rigaya/gists{/gist_id}","starred_url":"https://api.github.com/users/rigaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rigaya/subscriptions","organizations_url":"https://api.github.com/users/rigaya/orgs","repos_url":"https://api.github.com/users/rigaya/repos","events_url":"https://api.github.com/users/rigaya/events{/privacy}","received_events_url":"https://api.github.com/users/rigaya/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T22:09:15Z","updated_at":"2018-03-22T22:09:15Z","author_association":"OWNER","body":"OK, I have got the same value from MKVToolnix, when I have made mkv from raw h264 ouput.\r\n\r\nHowever, I checked internal calculation of NVEncC, but its display resolution is set to 768x576, and this value is sent to NVENC API, so it should have no problem.\r\n\r\nFurthermore, if you directly output video in mkv format from NVEncC, you should also have no problem.\r\n\r\n![image](https://user-images.githubusercontent.com/815947/37801072-8320c1e2-2e68-11e8-8119-ee261aecfc1e.png)\r\n\r\nPlease consider direct mkv output from NVEncC."}}
{"actor":{"display_login":"rigaya"}}