-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade GStreamer to 1.0 #34
Conversation
(definitely doesn't work yet)
This looks fantastic - I'll try and get this set up for testing but on the face of it it looks good. Many thanks for breathing new life into the thing! |
Seem to have problems with just firing up the TX side. RX seems happy. I'll start debugging, but posting here in the hope it's something you've come accross! pi@ob-ob:~/openob $ openob 10.0.1.192 studio ob1 tx 10.0.1.192 -a test |
It looks like your GStreamer install is missing the |
Disregard - I was being really impatient and getting too excited about it possible working, Missing a few packages! "Full" instructions from a base linux image to up and running:
Can also confirm I can RX & TX correctly with this package using alsa. Having a few issues running two streams at once (RX & TX on both ends) but that's probably local audio config as both 'clients' are running correctly. Thanks for this PR, much appreciated! |
Cool - no worries, gstreamer is a tangled mess of history! |
As you can see from above, i'm whipping up a little Travis build to test the basic functionality - it doesn't really work yet, but i'll hopefully look at it some more tomorrow! |
@jonty-comp I've added Travis to the project, so that should auto-build on future commits. @scottgrobinson If you could provide some feedback on how this is working for you, that'd be great - once it's looking stable we can merge this into master and roll a new "proper" release. |
@JamesHarrison Will do! I'll be testing over the next few days in the hope it works nicely for an event at beginning of August. |
There we go - i've updated the packages required in the documentation, and tested on Dockerized versions of Debian Jessie, Stretch and Buster, and Ubuntu Trusty, Xenial and Bionic. This sounds like a lot of testing but it's very much not real-world - as I said, I don't have any audio equipment here! Jessie & Trusty require |
If I fire up a new Pi, what's the best way of testing this end to end for you? I assume I can't use pip yet until it's released? I could just follow the docs end to end and sub out 'sudo pip install OpenOB' for git clone, switch to pr, python setup.py install? |
That's probably the easiest path, yes. In the most recent versions of pip you can run e: looks like you can do |
Neither of the above commands worked: I had to checkout and run it as per previous comment. It's still referencing 3.1 as opposed to 4.0dev when building from git though. Now having problems running without sudo so I'll start this over again. Collecting git+https://github.com/jonty-comp/[email protected] |
That's bizarre...I don't know enough about pip to make any assumptions. ...oh wait, I just noticed that setup.py still references it as version 3.1.0, that'll be why! You should still be getting the latest code. |
Maybe I was just too tired... Worked fine this time! sudo apt install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gir1.2-gstreamer-1.0 python-gst-1.0 python-redis python-gi python-setuptools git redis-server python-pip I've tested alsa RX and TX, anything else that would want testing before a merge? EDIT: I forgot. To get alsa working I needed some extra packages. Not sure if it's just the alsa package or all of the below as I just ran this to be on the safe side: |
Ah right, gstreamer officially lists alsa as being in the base package but I guess debian/ubuntu splits it out. Bizarre, as it seems jack is in the main package! |
It's works ! |
FYI - Latest release is fully working and used in a 'production' environment successfully. Both ends ran a TX & RX for two way (Only got the commands from studio end, OB end is somewhere in the field...) RX: /usr/local/bin/openob 10.100.40.53 studio ob1 rx -a alsa -d hw:0 RX using RapsberryPi onboard |
Alright - I'm inclined to merge this into the master branch and cut a new release on PyPi as a new major version, given the positive feedback thus far. Any objections, shout, but if not I'll cut it in a day or two. |
Fine by me! I did some random work on another branch off this based on the daemon idea we discussed years ago, but I haven't finished it yet. Hopefully I'll get a chance to pick it up again sometime soon. |
@whohoho Yes, absolutely! |
Woo! Hopefully everyone can enjoy the new version without having to juggle old dependencies. Just a quickie, I noticed setup.py and the documentation still reference old versions. |
@jonty-comp I'm planning to scrap the gh-pages docs and just stick the relevant bits in the wiki in GitHub, tbh. |
NOTE! I have no actual broadcast infrastructure to test this on, just my trusty ThinkPad with Debian and JACK. That being said, it seems to work fine on there.
I don't recommend pushing this as a new version until at least someone else has tested it!