|
Post by Pjot on May 21, 2019 18:06:49 GMT 1
All, For fun, I have ported the old Haiku program from vovchik to the Minimal Interface GUI. - The latest 'mi.bac' context 0.17 is here
- The Haiku program is here
BR Peter Attachments:
|
|
|
Post by vovchik on May 21, 2019 23:37:40 GMT 1
Dear Peter, Thanks. I like the MI version. I added a tiny bit of prettiness - not at all needed - but just for fun. With kind regards, vovchik
|
|
|
Post by vovchik on May 22, 2019 14:43:15 GMT 1
Dear all, As if we couldn't get enough of the real thing, here is some Trump-themed poetic gibberish per mouse click. With kind regards, vovchik Attachments:trump-src.tar.gz (17.06 KB)
|
|
|
Post by vovchik on Jun 8, 2019 10:43:49 GMT 1
Dear all, I cleaned up the code a bit for haiku (and did a bit of golfing) and can report that it works on Pi3 using Joe's ubuntu version after installing all the necessary webkit bits. With kind regards, vovchik
|
|
|
Post by bigbass on Jun 8, 2019 14:12:56 GMT 1
Hello vovchik I am only using the raspberry pi3 for everything It is great news that you got the latest cutting edge install of the bionic (ubuntu base xfce desktop) and you are using the cutting edge fossil also I should note ------------------------------------------------------ TIP : You will need the latest fossil version of bacon at least as of this date 2019-05-11 17:25 [320515728f] Added TOASCII. ----------------------------------------------------- 'there are many packages and ppa's that the latest ubuntu based rpi3 has that are still not available for rpi3 debian another pic I am happy to say I can now test your demos! and those to come and those Peter posted earlier here also P.S thanks for giving the rpi3 xubuntu a try (I know setting up a new box takes time and many people try to put it off but once done you will discover the many more options you now have available ) and on the rpi3 its just swapping sdcards so less painful Joe
|
|
|
Post by vovchik on Jun 8, 2019 15:40:50 GMT 1
Dear Joe,
Thanks for preparing that image. I have discovered that ubuntu's gcc does not really like creating normal ELF executables and, in their place, creates executable shared libs. To create normal executables, you can either use a command like like mine:
bacon -l -no-pie -o -fno-pie -o -Os -o -fdata-sections -o -ffunction-sections -o -Wl,--gc-sections -l -s haiku-mi17c.bac
where "-l -no-pie -o -fno-pie" are the key bits (thanks to Peter for the advice). Also you can get the same result by adding PRAGMA LDFLAGS -no-pie and PRAGMA CFLAGS -fno-pie to the top of your BaCon code.
The biptv prog does not entirely work yet on PI3/ubuntu because there is an EGL/GLES/DRI problem with the libs. When a channel plays you get the sound, but no video stream (libEGL warning: DRI2: failed to authenticate). I am looking into that. The bug also causes some QT progs to misbehave. All in all, however, things are working nicely, so thanks again.
With kind regards, vovchik
|
|
|
Post by bigbass on Jun 9, 2019 3:08:54 GMT 1
Hello vovchik
Thanks for the compiler info and code I got the same problem you had egl gstreamer in a prior post in the previous page in this thread
here is a clue I haven't had time to go deeper into the problem but vlc plays the video stream correctly and the raspberrypi packages its own special egl and company maybe this week I can go at it again let me know if you figure it out first it is very important for me too
just built the full xubuntu nothing removed !
it takes two days to download all the packages needed into a chroot then dist upgrade then build the image that is bootable everything gets mounted on 2 loops then written to the image thats the short explanation there are many other steps setting everything up and since there is no "updated official xubuntu 18.04 " to compare to it is quite a tedious process checking along the way then several hours uploading
Joe
|
|
|
Post by bigbass on Jun 9, 2019 20:05:19 GMT 1
hello vovchik if you install vlc and select the media tab you can see that it will play your link now we just need to figure out why and get it working with webkit too we a re closer now to solving it Joe
|
|
|
Post by bigbass on Jun 27, 2019 6:43:31 GMT 1
hello vovchik gstreamer was what was marking the errors so I thought to focus on just that for now some dependencies may need more sudo apt-get install gstreamer1.0-tools sudo apt-get install gstreamer1.0-plugins-base-apps sudo apt-get install libdrm-dev this is used low level to just work with gstreamer a nice way to debug and get info from the video gst-discoverer-1.0 http://skydvn-nowtv-atv-prod.skydvn.com/atv/skynews/1404/live/05.m3u8 -v
I got this to play the video but have to figure out the rest to sink the audio *we needed to see if the video would work or not gst-launch-1.0 souphttpsrc is-live=true location=http://skydvn-nowtv-atv-prod.skydvn.com/atv/skynews/1404/live/05.m3u8 ! hlsdemux ! decodebin ! videorate ! videoconvert ! ximagesink so in theory the rpi3 can get the video there are a lot of pipes going on the ! is the pipe command in gstreamer it is pretty intensive cpu wise like this without adding any other layers to the mix so my final thought is probably wait for the rpi4 and then try this again or use gstreamer directly and finding the best command line options to have a compromise I didn't want to leave that unsolved without taking the time to investigate good things came out of this the xubuntu rpi3 18.04 and a deeper understanding of gstreamer which is very complex to compile on the rpi3 at the moment I am using only official packages on a clean install but gstreamer + mesa is a monster with 10 heads on the rpi3 due to its own special packages and it uses /opt/vc plus the standard locations to place the libs this is well done and goes deep into the matter gstreamer.freedesktop.org/documentation/tutorials/basic/gstreamer-tools.html?gi-language=cJoe
|
|
|
Post by vovchik on Jun 27, 2019 10:51:14 GMT 1
Dear Joe, Thanks for all that magnificent investigation and work. I have had a little setback the past few days in that my old Intel tower finally bit the dust (even melting a USB sound card in the process), so I had to revive an old Lenovo Ideacentre with Mint 19.1 (64 bit). I have been busy getting that system working and should, within a few days, be back to programming. The PI3 survived all this and served as my functional backup computer. With kind regards, vovchik
|
|
|
Post by bigbass on Jun 27, 2019 16:41:35 GMT 1
Hello vovchik Sorry to hear that but that will make space for something new to take up the space those old power supplies are very useful too to ease the pain and process setting up a new box by automating things to save some time to speed up the setup part this will help basic-converter.proboards.com/post/11365added some tests for video and audio for gstreamer all run from the terminal as is for a demo ============================================================ Generate a pure sine tone to test the audio output: gst-launch-1.0 audiotestsrc ! audioconvert ! audioresample ! osssink
Generate a familiar test pattern to test the video output: gst-launch-1.0 videotestsrc ! ximagesink
Joe
|
|
|
Post by bigbass on Jul 16, 2019 17:08:43 GMT 1
hello vovchik I finally got the webkit tv viewer to work on the rpi3! and the good news it can be solved I spent many hours -days with nothing on the video end until today *and all default packages used I hope after solving it on archlinux I can go back and get all the runtime dependencies sorted out on xubuntu also your code and Peter's code compile and work correctly as is (of course) It will still take time to sort it all out since It was done on archlinux and the naming of packages differ but the most important thing is to never give up so we can do "all webkit demos" on the rpi3 now fltk bacon gui gtk and build bacon from source so far all works correctly related to bacon the video is still slower than real time but works clean compile and run time except failed drawable warning but the video plays Joe
|
|
|
Post by vovchik on Jul 16, 2019 20:39:51 GMT 1
Dear Joe,
Great work and congratulations!!!! I hope you can get the xubuntu webkit stuff sorted out eventually, too. Thanks!!!
With kind regards, vovchik
|
|
|
Post by bigbass on Oct 11, 2019 14:53:25 GMT 1
Hello vovchik and Peter and all the raspberry pi users I have excellent news! using the latest OS for the raspberry pi3 all the problems we were having with webkit are fixed!!! this means we can continue to support all the excellent hard work done in this thread on the raspberry pi3 finally using an official download (another long story all the work to build an xubuntu 18.04 RPI3) The main thing I want to say is sometimes beyond all our serious efforts to solve problems things still don't work for many reasons and in this case debian RPI3 was using a very old version of webkit and there was no known workaround for it I am very happy to say vovchik your first tv viewer demo with sound and video you have done so many excellent demos (and many more on the official bacon page) and I am always inspired and usually amazed by the creativity that goes into them thanks again for all your work! Joe now here is the tech info Dependencies www.basic-converter.org/mi.bactech notes: then name it mi6.bac because the include looks for that name in this app or rename the include to mi.bac Dependencies sudo apt-get install webkit2gtk-4.0 reference link basic-converter.proboards.com/post/12184
|
|
|
Post by vovchik on Oct 11, 2019 21:11:42 GMT 1
Dear Joe, Thanks for the kind words and for discovering a new solution for Pi. I will try it out soon. I am still busy trying to fix my main Mint Intel Lenovo. It was fine for about a month and yesterday started exhibiting the same symptoms I had cured right after I made some updates. I think I may have just fixed it again, but I am still testing, so I should be ready for the Pi adventure tomorrow or Sunday if the Lenovo is fine. In any case, great news. With kind regards, vovchik
|
|