{"action":"closed","issue":{"url":"https://api.github.com/repos/JamesHarrison/openob/issues/40","repository_url":"https://api.github.com/repos/JamesHarrison/openob","labels_url":"https://api.github.com/repos/JamesHarrison/openob/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/JamesHarrison/openob/issues/40/comments","events_url":"https://api.github.com/repos/JamesHarrison/openob/issues/40/events","html_url":"https://github.com/JamesHarrison/openob/issues/40","id":372369325,"node_id":"MDU6SXNzdWUzNzIzNjkzMjU=","number":40,"title":"Help with setup: ALSA fails, -a auto results in mono and no audio","user":{"login":"Matzeee","id":6171490,"node_id":"MDQ6VXNlcjYxNzE0OTA=","avatar_url":"https://avatars2.githubusercontent.com/u/6171490?v=4","gravatar_id":"","url":"https://api.github.com/users/Matzeee","html_url":"https://github.com/Matzeee","followers_url":"https://api.github.com/users/Matzeee/followers","following_url":"https://api.github.com/users/Matzeee/following{/other_user}","gists_url":"https://api.github.com/users/Matzeee/gists{/gist_id}","starred_url":"https://api.github.com/users/Matzeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matzeee/subscriptions","organizations_url":"https://api.github.com/users/Matzeee/orgs","repos_url":"https://api.github.com/users/Matzeee/repos","events_url":"https://api.github.com/users/Matzeee/events{/privacy}","received_events_url":"https://api.github.com/users/Matzeee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-22T00:00:02Z","updated_at":"2018-12-28T21:54:19Z","closed_at":"2018-12-28T21:54:19Z","author_association":"NONE","body":"I installed OpenOB on two Debian machines by:\r\n```\r\nsudo aptitude install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gir1.2-gstreamer-1.0 python3-gst-1.0 python3-redis python3-gi python3-setuptools\r\n\r\nsudo aptitude install redis-server\r\nsudo sed -i.bak 's/bind 127.*/bind 0.0.0.0/' /etc/redis/redis.conf && sudo service redis-server restart\r\n\r\nsudo aptitude install python3-pip\r\nsudo pip3 install OpenOB\r\n\r\nsudo aptitude install alsa-utils\r\nsudo alsactl init\r\n```\r\n\r\nI think in the doc in \"If you wish to use Python 3, you must install python3-redis, python3-gst-1.0 and python3-setuptools instead of the Python 2 equivalents.\" `python3-gi` is missing. Maybe two lines to copy would be easier. And maybe add `python-pip`/`python3-pip`\r\n\r\nHere, Redis is at the transmitter.\r\n\r\n---\r\nTRANSMITTER\r\n\r\nQuick test: \r\n`arecord -D hw:1 -f CD test1.wav -V stereo`\r\nwhich shows a moving vu meter.\r\n\r\nHowever\r\n```\r\n openob 192.168.0.188 test-tx-node test-link tx 192.168.0.137 -a alsa -d hw:1\r\n2018-10-22 00:48:37,431 - openob.link.test-link.config - INFO - Connecting to configuration host 192.168.0.188\r\n2018-10-22 00:48:37,449 - openob.node.test-tx-node - INFO - Link test-link initial setup start on test-tx-node\r\n2018-10-22 00:48:37,450 - openob.node.test-tx-node.link.test-link - INFO - Starting up transmitter\r\n2018-10-22 00:48:37,451 - openob.node.test-tx-node.link.test-link.tx - INFO - Creating transmission pipeline\r\n2018-10-22 00:48:37,452 - openob.node.test-tx-node.link.test-link - ERROR - Transmitter crashed for some reason! Restarting...\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/dist-packages/openob/node.py\", line 45, in run_link\r\n    transmitter = RTPTransmitter(self.node_name, link_config, audio_interface)\r\n  File \"/usr/local/lib/python3.5/dist-packages/openob/rtp/tx.py\", line 21, in __init__\r\n    self.build_pipeline()\r\n  File \"/usr/local/lib/python3.5/dist-packages/openob/rtp/tx.py\", line 52, in build_pipeline\r\n    self.source = self.build_audio_interface()\r\n  File \"/usr/local/lib/python3.5/dist-packages/openob/rtp/tx.py\", line 75, in build_audio_interface\r\n    source.set_property('device', self.audio_interface.alsa_device)\r\nAttributeError: 'NoneType' object has no attribute 'set_property'\r\n2018-10-22 00:48:37,955 - openob.node.test-tx-node.link.test-link - INFO - Starting up transmitter\r\n2018-10-22 00:48:37,957 - openob.node.test-tx-node.link.test-link.tx - INFO - Creating transmission pipeline\r\n2018-10-22 00:48:37,959 - openob.node.test-tx-node.link.test-link - ERROR - Transmitter crashed for some reason! Restarting...\r\n```\r\n\r\nInvoking without `-a alsa` results in no audio and\r\n```\r\nopenob 192.168.0.188 test-tx-node test-link tx 192.168.0.137  -d hw:1\r\n2018-10-22 01:12:50,445 - openob.link.test-link.config - INFO - Connecting to configuration host 192.168.0.188\r\n2018-10-22 01:12:50,463 - openob.node.test-tx-node - INFO - Link test-link initial setup start on test-tx-node\r\n2018-10-22 01:12:50,464 - openob.node.test-tx-node.link.test-link - INFO - Starting up transmitter\r\n2018-10-22 01:12:50,465 - openob.node.test-tx-node.link.test-link.tx - INFO - Creating transmission pipeline\r\n2018-10-22 01:12:50,513 - openob.node.test-tx-node.link.test-link.tx - INFO - Set receiver to 192.168.0.137:3000\r\n2018-10-22 01:12:50,537 - openob.node.test-tx-node.link.test-link.tx - WARNING - Waiting for audio interface/caps\r\n2018-10-22 01:12:51,552 - openob.node.test-tx-node.link.test-link.tx - INFO - Started mono audio transmission\r\n```\r\n\r\nAn external interface that was recognized at `hw:2` gave the same result.\r\n\r\n\r\n---\r\nRECEIVER\r\n\r\n\r\nAlso did a successful quick test with `aplay piano2.wav` and `aplay piano2.wav -D hw:0`\r\n\r\n```\r\nopenob 192.168.0.188 test-rx-node test-link rx -a alsa -d hw:0\r\n2018-10-21 19:41:51,114 - openob.link.test-link.config - INFO - Connecting to configuration host 192.168.0.188\r\n2018-10-21 19:41:51,120 - openob.node.test-rx-node - INFO - Link test-link initial setup start on test-rx-node\r\n2018-10-21 19:41:51,122 - openob.node.test-rx-node.link.test-link - INFO - Waiting for transmitter capabilities...\r\n2018-10-21 19:41:51,124 - openob.node.test-rx-node.link.test-link - INFO - Got caps from transmitter\r\n2018-10-21 19:41:51,124 - openob.node.test-rx-node.link.test-link - INFO - Starting up receiver\r\n2018-10-21 19:41:51,126 - openob.node.test-rx-node.link.test-link.rx - INFO - Creating reception pipeline\r\n2018-10-21 19:41:51,139 - openob.node.test-rx-node.link.test-link - ERROR - Receiver crashed for some reason! Restarting...\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/dist-packages/openob/node.py\", line 60, in run_link\r\n    receiver = RTPReceiver(self.node_name, link_config, audio_interface)\r\n  File \"/usr/local/lib/python3.5/dist-packages/openob/rtp/rx.py\", line 20, in __init__\r\n    self.build_pipeline()\r\n  File \"/usr/local/lib/python3.5/dist-packages/openob/rtp/rx.py\", line 42, in build_pipeline\r\n    self.output = self.build_audio_interface()\r\n  File \"/usr/local/lib/python3.5/dist-packages/openob/rtp/rx.py\", line 62, in build_audio_interface\r\n    sink.set_property('device', self.audio_interface.alsa_device)\r\nAttributeError: 'NoneType' object has no attribute 'set_property'\r\n2018-10-21 19:41:51,244 - openob.node.test-rx-node.link.test-link - INFO - Waiting for transmitter capabilities...\r\n2018-10-21 19:41:51,247 - openob.node.test-rx-node.link.test-link - INFO - Got caps from transmitter\r\n2018-10-21 19:41:51,247 - openob.node.test-rx-node.link.test-link - INFO - Starting up receiver\r\n2018-10-21 19:41:51,250 - openob.node.test-rx-node.link.test-link.rx - INFO - Creating reception pipeline\r\n2018-10-21 19:41:51,260 - openob.node.test-rx-node.link.test-link - ERROR - Receiver crashed for some reason! Restarting...\r\n```\r\n```\r\n openob 192.168.0.188 test-rx-node test-link rx  -d hw:0\r\n2018-10-21 19:49:56,249 - openob.link.test-link.config - INFO - Connecting to configuration host 192.168.0.188\r\n2018-10-21 19:49:56,254 - openob.node.test-rx-node - INFO - Link test-link initial setup start on test-rx-node\r\n2018-10-21 19:49:56,256 - openob.node.test-rx-node.link.test-link - INFO - Waiting for transmitter capabilities...\r\n2018-10-21 19:49:56,257 - openob.node.test-rx-node.link.test-link - INFO - Got caps from transmitter\r\n2018-10-21 19:49:56,258 - openob.node.test-rx-node.link.test-link - INFO - Starting up receiver\r\n2018-10-21 19:49:56,267 - openob.node.test-rx-node.link.test-link.rx - INFO - Creating reception pipeline\r\n2018-10-21 19:49:56,310 - openob.node.test-rx-node.link.test-link.rx - INFO - Listening for stream on 192.168.0.137:3000\r\n2018-10-21 19:49:57,440 - openob.node.test-rx-node.link.test-link.rx - INFO - Receiving mono audio transmission\r\n```\r\n---\r\nEDIT1:\r\nUsing `hw:1,0` instead `hw:1` makes no difference for `arecord` and `openob … tx`\r\nMy next try would be python2.\r\n\r\n---\r\nEDIT2:\r\nI also tried trx from http://www.pogo.org.uk/%7Emark/trx/\r\nhttps://github.com/eugenehp/trx (old version only)\r\n\r\nInstalled via\r\n```\r\nsudo aptitude install libasound2-dev libopus-dev libortp-dev checkinstall\r\ngit clone http://www.pogo.org.uk/~mark/trx.git \r\ncd trx\r\nmake\r\nsudo checkinstall\r\n```\r\n\r\nIt works with `tx -d plughw:1 -h 192.168.0.137` and just `rx` on the receiver. Interestingly, it gives me noise after the tx is stopped. OpenOB stays totally silent.\r\n\r\nInvoking\r\n`openob 192.168.0.188 test-tx-node test-link tx 192.168.0.137 -a alsa -d plughw:1`\r\nleads to the exact same error as written above.\r\n\r\n"}}
{"actor":{"display_login":"JamesHarrison"}}