{"action":"created","issue":{"url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/604","labels_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/604/labels{/name}","comments_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/604/comments","events_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/604/events","html_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/issues/604","id":94910838,"number":604,"title":"Bug in the Xbox 360 video transcoding setting","user":{"login":"valib","id":1472678,"avatar_url":"https://avatars.githubusercontent.com/u/1472678?v=3","gravatar_id":"","url":"https://api.github.com/users/valib","html_url":"https://github.com/valib","followers_url":"https://api.github.com/users/valib/followers","following_url":"https://api.github.com/users/valib/following{/other_user}","gists_url":"https://api.github.com/users/valib/gists{/gist_id}","starred_url":"https://api.github.com/users/valib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valib/subscriptions","organizations_url":"https://api.github.com/users/valib/orgs","repos_url":"https://api.github.com/users/valib/repos","events_url":"https://api.github.com/users/valib/events{/privacy}","received_events_url":"https://api.github.com/users/valib/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T10:02:58Z","updated_at":"2015-07-14T10:29:52Z","closed_at":"2015-07-14T10:29:52Z","body":"There is a discrepancy between the code and the Microsoft-Xbox360.conf where is set \r\n```java\r\nTranscodeVideo = WMV\r\n```\r\nbut in FFmpeg is hardcoded\r\n```java\r\nif (\r\n\t\t\t(\r\n\t\t\t\trenderer.isTranscodeToWMV() &&\r\n\t\t\t\t!renderer.isXbox360()\r\n\t\t\t) ||\r\n\t\t\t(\r\n\t\t\t\trenderer.isXboxOne() &&\r\n\t\t\t\tpurpose() == VIDEO_WEBSTREAM_PLAYER\r\n\t\t\t)\r\n\t\t) { // WMV\r\n\t\t\ttranscodeOptions.add(\"-c:v\");\r\n\t\t\ttranscodeOptions.add(\"wmv2\");\r\n\r\n\t\t\tif (!customFFmpegOptions.contains(\"-c:a \")) {\r\n\t\t\t\ttranscodeOptions.add(\"-c:a\");\r\n\t\t\t\ttranscodeOptions.add(\"wmav2\");\r\n\t\t\t}\r\n\r\n\t\t\ttranscodeOptions.add(\"-f\");\r\n\t\t\ttranscodeOptions.add(\"asf\");\r\n\t\t} else { // MPEGPSMPEG2AC3, MPEGTSMPEG2AC3, MPEGTSH264AC3 or MPEGTSH264AAC\r\n```\r\nand the same logic is hardcoded in MEncoder and VLC\r\n```java\r\n else if (\r\n\t\t\t(\r\n\t\t\t\tparams.mediaRenderer.isTranscodeToWMV() &&\r\n\t\t\t\t!params.mediaRenderer.isXbox360()\r\n\t\t\t) ||\r\n\t\t\tisXboxOneWebVideo\r\n\t\t) {\r\n\t\t\twmv = true;\r\n\t\t\tvcodec = \"wmv2\";\r\n\t\t}\r\n```\r\nwhich means that for Xbox 360 the option to transcode to WMV is never used. I don't know if it is an intention or not."},"comment":{"url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/comments/121195644","html_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/issues/604#issuecomment-121195644","issue_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/604","id":121195644,"user":{"login":"SubJunk","id":584228,"avatar_url":"https://avatars.githubusercontent.com/u/584228?v=3","gravatar_id":"","url":"https://api.github.com/users/SubJunk","html_url":"https://github.com/SubJunk","followers_url":"https://api.github.com/users/SubJunk/followers","following_url":"https://api.github.com/users/SubJunk/following{/other_user}","gists_url":"https://api.github.com/users/SubJunk/gists{/gist_id}","starred_url":"https://api.github.com/users/SubJunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SubJunk/subscriptions","organizations_url":"https://api.github.com/users/SubJunk/orgs","repos_url":"https://api.github.com/users/SubJunk/repos","events_url":"https://api.github.com/users/SubJunk/events{/privacy}","received_events_url":"https://api.github.com/users/SubJunk/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T10:29:52Z","updated_at":"2015-07-14T10:29:52Z","body":"It's intentional because I found that Xbox 360 can handle MPEG-2 if we trick it into thinking we are giving it WMV. It's messy code because it was hard to find people to keep testing it"}}