{"action":"created","issue":{"url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/691","labels_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/691/labels{/name}","comments_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/691/comments","events_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/691/events","html_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/issues/691","id":110705572,"number":691,"title":"Panasonic TV / PS4: mencoder has a return code of 1","user":{"login":"goncalossilva","id":102931,"avatar_url":"https://avatars.githubusercontent.com/u/102931?v=3","gravatar_id":"","url":"https://api.github.com/users/goncalossilva","html_url":"https://github.com/goncalossilva","followers_url":"https://api.github.com/users/goncalossilva/followers","following_url":"https://api.github.com/users/goncalossilva/following{/other_user}","gists_url":"https://api.github.com/users/goncalossilva/gists{/gist_id}","starred_url":"https://api.github.com/users/goncalossilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goncalossilva/subscriptions","organizations_url":"https://api.github.com/users/goncalossilva/orgs","repos_url":"https://api.github.com/users/goncalossilva/repos","events_url":"https://api.github.com/users/goncalossilva/events{/privacy}","received_events_url":"https://api.github.com/users/goncalossilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-09T17:43:33Z","updated_at":"2015-10-10T20:36:52Z","closed_at":null,"body":"Whenever I try to use UMS with my Panasonic TV or Playstation 4, videos don't play if MEncoder is enabled and with a high priority.\r\n\r\nOn UMS's log, I see this:\r\n```\r\nProcess /Applications/Universal Media Server.app/Contents/Resources/osx/mencoder has a return code of 1! Maybe an error occurred... check the log file\r\n```\r\n\r\nIf I check the log file, I see this:\r\n```\r\nDEBUG 2015-10-09 18:37:24.100 [mencoder-20] Starting /Applications/Universal Media Server.app/Contents/Resources/osx/mencoder -ss 0 /Users/goncalossilva/Movies/Movie.avi -msglevel statusline=2 -oac copy -of lavf -lavfopts format=mpegts -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=libx264:threads=8:o=preset=superfast,crf=19,g=250,i_qfactor=0.71,qcomp=0.6,level=3.1,weightp=0,8x8dct=0,aq-strength=0,me_range=16:vrc_maxrate=1000:vrc_buf_size=2500 -ass -ass-color ffffff00 -ass-border-color 00000000 -ass-font-scale 1.4 -font /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/fonts/LucidaSansRegular.ttf -ass-force-style FontName=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/fonts/LucidaSansRegular.ttf,Outline=1,Shadow=1,MarginV=10 -noflip-hebrew -subcp ISO-8859-1 -nosub -sub /Users/goncalossilva/Movies/Movie.srt -ofps 24 -lavdopts fast -mc 0 -noskip -o - -really-quiet -msglevel statusline=2\r\nDEBUG 2015-10-09 18:37:24.110 [mencoder-20] Attaching thread: mencoder-20\r\nDEBUG 2015-10-09 18:37:24.110 [mencoder-20] Unix process ID (/Applications/Universal Media Server.app/Contents/Resources/osx/mencoder): 77874\r\nINFO  2015-10-09 18:37:24.211 [mencoder-20] Process /Applications/Universal Media Server.app/Contents/Resources/osx/mencoder has a return code of 1! Maybe an error occurred... check the log file\r\n```\r\n\r\nIf I try the command myself, while removing `-really-quiet` to see the output, I get this:\r\n```\r\nvideocodec: libavcodec (1280x720 fourcc=34363268 [h264])\r\nYour options /preset=superfast,crf=22,g=250,i_qfactor=0.71,qcomp=0.6,level=4.1,weightp=0,8x8dct=0,aq-strength=0,me_range=16/ look like gibberish to me pal\r\nFATAL: Cannot initialize video driver.\r\n```\r\n\r\nThis happens with avi, mkv and mp4 movies files. It has happened for many months (years?) now on OS X, which wasn't a problem because my PS3 played them fine, but now using a PS4 or a Panasonic TV I can't get past this error without disabling mencoder and resorting to ffmpeg, which has much lower quality.\r\n\r\nIs there any other information I can share to help debug and fix this? Thank you."},"comment":{"url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/comments/147123269","html_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/issues/691#issuecomment-147123269","issue_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/691","id":147123269,"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-10-10T20:36:52Z","updated_at":"2015-10-10T20:36:52Z","body":"The string of commands \"preset=superfast,crf=22,g=250,i_qfactor=0.71,qcomp=0.6,level=4.1,weightp=0,8x8dct=0,aq-strength=0,me_range=16\" is important because MEncoder can't really use libx264 by default, the way we use it. So these are just settings to make that work.\r\n\r\nIs there an OS X build of MPlayer/MEncoder that you recommend we use? The one linked from the official website had its last release in 2013 (http://mplayerosx.ch/) so I'm not sure if that would be a good choice either."}}