{"action":"created","issue":{"url":"https://api.github.com/repos/flathub/net.ankiweb.Anki/issues/7","repository_url":"https://api.github.com/repos/flathub/net.ankiweb.Anki","labels_url":"https://api.github.com/repos/flathub/net.ankiweb.Anki/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/flathub/net.ankiweb.Anki/issues/7/comments","events_url":"https://api.github.com/repos/flathub/net.ankiweb.Anki/issues/7/events","html_url":"https://github.com/flathub/net.ankiweb.Anki/issues/7","id":360411462,"node_id":"MDU6SXNzdWUzNjA0MTE0NjI=","number":7,"title":"No Audio","user":{"login":"cwmke","id":1923967,"node_id":"MDQ6VXNlcjE5MjM5Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/1923967?v=4","gravatar_id":"","url":"https://api.github.com/users/cwmke","html_url":"https://github.com/cwmke","followers_url":"https://api.github.com/users/cwmke/followers","following_url":"https://api.github.com/users/cwmke/following{/other_user}","gists_url":"https://api.github.com/users/cwmke/gists{/gist_id}","starred_url":"https://api.github.com/users/cwmke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwmke/subscriptions","organizations_url":"https://api.github.com/users/cwmke/orgs","repos_url":"https://api.github.com/users/cwmke/repos","events_url":"https://api.github.com/users/cwmke/events{/privacy}","received_events_url":"https://api.github.com/users/cwmke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-14T18:37:00Z","updated_at":"2018-09-18T05:13:26Z","closed_at":null,"author_association":"NONE","body":"Trying this out but I get an error stating it needs mpv or mplayer installed. I'm running Fedora 28.\r\n\r\n```\r\nException in thread Thread-70:\r\nTraceback (most recent call last):\r\n  File \"/app/share/anki/anki/sound.py\", line 226, in startProcess\r\n    env=env)\r\n  File \"/usr/lib/python3.5/subprocess.py\", line 947, in __init__\r\n    restore_signals, start_new_session)\r\n  File \"/usr/lib/python3.5/subprocess.py\", line 1551, in _execute_child\r\n    raise child_exception_type(errno_num, err_msg)\r\nFileNotFoundError: [Errno 2] No such file or directory: 'mplayer'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/threading.py\", line 914, in _bootstrap_inner\r\n    self.run()\r\n  File \"/app/share/anki/anki/sound.py\", line 173, in run\r\n    self.startProcess()\r\n  File \"/app/share/anki/anki/sound.py\", line 229, in startProcess\r\n    raise Exception(\"Did you install mplayer?\")\r\nException: Did you install mplayer?\r\n```"},"comment":{"url":"https://api.github.com/repos/flathub/net.ankiweb.Anki/issues/comments/422257547","html_url":"https://github.com/flathub/net.ankiweb.Anki/issues/7#issuecomment-422257547","issue_url":"https://api.github.com/repos/flathub/net.ankiweb.Anki/issues/7","id":422257547,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjI1NzU0Nw==","user":{"login":"dsd","id":81864,"node_id":"MDQ6VXNlcjgxODY0","avatar_url":"https://avatars2.githubusercontent.com/u/81864?v=4","gravatar_id":"","url":"https://api.github.com/users/dsd","html_url":"https://github.com/dsd","followers_url":"https://api.github.com/users/dsd/followers","following_url":"https://api.github.com/users/dsd/following{/other_user}","gists_url":"https://api.github.com/users/dsd/gists{/gist_id}","starred_url":"https://api.github.com/users/dsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsd/subscriptions","organizations_url":"https://api.github.com/users/dsd/orgs","repos_url":"https://api.github.com/users/dsd/repos","events_url":"https://api.github.com/users/dsd/events{/privacy}","received_events_url":"https://api.github.com/users/dsd/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T05:13:26Z","updated_at":"2018-09-18T05:13:26Z","author_association":"COLLABORATOR","body":"Anki uses mplayer and this can't be trivially replaced with another audio player because it actually uses mplayer features (manages a playlist etc).\r\n\r\nWondering if there might be legal concerns with codecs etc, I looked at building a minimal mplayer only with support for MP3/vorbis/wav. But that's pretty hard.\r\n * When you build mplayer there is no \"--disable-everything\" approach as there is for ffmpeg. \r\n * Even when you add the 100ish \"--disable-\" options that mplayer does support, the internal ffmpeg gets built with loads and loads of decoders/encoders/etc enabled\r\n * Hacking the configure script to force it to build the internal ffmpeg with only a minimal set of decoders causes loads of fun build difficulties\r\n * I see that audacity on flathub has a minimal ffmpeg build recipe so I was wondering if we could use that, but I faced build errors making mplayer use the external ffmpeg (which they do discourage)\r\n\r\nGiving up on that, and thinking of another approach: what does Debian do?\r\n\r\nDebian preinstalls loads of build deps and then builds mplayer with these args:\r\n```\r\nCONFIGURE_FLAGS = \\\r\n\t--prefix=/usr \\\r\n\t--confdir=/etc/mplayer \\\r\n\t--enable-xvmc \\\r\n\t--enable-menu \\\r\n\t--enable-radio --enable-radio-capture \\\r\n\t--disable-arts \\\r\n\t--language=all\r\n```\r\n\r\nThat'll use the internal ffmpeg with loads of demuxers/filters/decoders enabled.\r\n\r\nI could just use a similarly small set of build args and let mplayer's autodetection do the rest (based on which other libs are available in the build root), also including many internal ffmpeg-supported formats. I'm thinking if Debian are OK shipping it along these lines then we should be too?\r\n\r\n@nedrichards @ramcq  thoughts?"}}
{"actor":{"display_login":"dsd"}}