{"action":"created","issue":{"url":"https://api.github.com/repos/chris-rudmin/Recorderjs/issues/52","repository_url":"https://api.github.com/repos/chris-rudmin/Recorderjs","labels_url":"https://api.github.com/repos/chris-rudmin/Recorderjs/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/chris-rudmin/Recorderjs/issues/52/comments","events_url":"https://api.github.com/repos/chris-rudmin/Recorderjs/issues/52/events","html_url":"https://github.com/chris-rudmin/Recorderjs/issues/52","id":154457107,"number":52,"title":"Encoded files can't be decoded by node-opus","user":{"login":"Robbson","id":7016181,"avatar_url":"https://avatars.githubusercontent.com/u/7016181?v=3","gravatar_id":"","url":"https://api.github.com/users/Robbson","html_url":"https://github.com/Robbson","followers_url":"https://api.github.com/users/Robbson/followers","following_url":"https://api.github.com/users/Robbson/following{/other_user}","gists_url":"https://api.github.com/users/Robbson/gists{/gist_id}","starred_url":"https://api.github.com/users/Robbson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Robbson/subscriptions","organizations_url":"https://api.github.com/users/Robbson/orgs","repos_url":"https://api.github.com/users/Robbson/repos","events_url":"https://api.github.com/users/Robbson/events{/privacy}","received_events_url":"https://api.github.com/users/Robbson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-12T11:11:16Z","updated_at":"2016-05-12T22:02:37Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to send the encoded ogg-opus files to a node server for decoding using the package node-opus which also handles the ogg container using node-ogg. \r\nUnfortunately node crashes. The output of the format event seems also to be weird because it's showing always 44100Hz, that is not supported by opus, independent from my chosen encoder settings on the client.\r\n\r\nAfter some investigation I noticed that the libopus version of node-opus was pretty old (1.1 Beta).\r\nSo I replaced it using the current 1.1.2 build. Now it doesn't crash anymore but there is still no decoded data. And the weird 44100Hz are still shown as format.\r\n\r\nIf you use the opusinfo command line tool you can also see those 44100Hz. By the way opusdec tool plays the ogg-opus file successfully but it also shows several errors before (\"Error playing audio\").\r\n\r\nIt can be easily tested using your encoder example (recording some microphone input to a blob/file) and the stream-to-alsa example from node-opus (but using output to a file stream instead of alsa).\r\n\r\nWell, the browser as well as VLC can play those files (besides there is no progress bar available) so it can be expected that it is rather a problem of node-opus. But I had a look in its source code and it is really a very thin layer to the native libraries. Anyway, I also submitted an issue there.\r\n\r\nTo make things easier, I attached a problematic sample recorded by this fork of RecorderJS:\r\n[test-file.ogg.txt](https://github.com/chris-rudmin/Recorderjs/files/261125/test-file.ogg.txt)\r\n(The file has to be renamed before because of the file type restrictions on GitHub)\r\n\r\nThanks,\r\nRobbson\r\n"},"comment":{"url":"https://api.github.com/repos/chris-rudmin/Recorderjs/issues/comments/218899159","html_url":"https://github.com/chris-rudmin/Recorderjs/issues/52#issuecomment-218899159","issue_url":"https://api.github.com/repos/chris-rudmin/Recorderjs/issues/52","id":218899159,"user":{"login":"chris-rudmin","id":506755,"avatar_url":"https://avatars.githubusercontent.com/u/506755?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-rudmin","html_url":"https://github.com/chris-rudmin","followers_url":"https://api.github.com/users/chris-rudmin/followers","following_url":"https://api.github.com/users/chris-rudmin/following{/other_user}","gists_url":"https://api.github.com/users/chris-rudmin/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-rudmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-rudmin/subscriptions","organizations_url":"https://api.github.com/users/chris-rudmin/orgs","repos_url":"https://api.github.com/users/chris-rudmin/repos","events_url":"https://api.github.com/users/chris-rudmin/events{/privacy}","received_events_url":"https://api.github.com/users/chris-rudmin/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T22:02:37Z","updated_at":"2016-05-12T22:02:37Z","body":"@Robbson Its not clear to me what your setup is.  Are you streaming ogg packets to your node backend and then serving a http data stream for VLC to consume?\r\n\r\nWhen I create a ogg file from Recorderjs and save it locally, I don't see any decoding issues, and VLC correctly shows me the progress when playing back the file. There is also no looping at the end of a file for me."}}