updating Youtubedl
Steve Pampling (1551) 8170 posts |
The problem you hit there is that Rick doesn’t have Windows 10(or Win7 for that matter) and everything else is retro. :) |
George T. Greenfield (154) 748 posts |
No criticism of Vince was intended. But I’m glad you’ve alerted him. |
Rick Murray (539) 13840 posts |
Retro 1 it might be, but is it wrong? 1 s/retro/prehistoric |
Raik (463) 2061 posts |
Have made a Package and try on a new card. |
David Pitt (3386) 1248 posts |
I have been round the loop again making a new installation on a newly installed OS5.28 HardDisc4 image on a spare SSD on the Titanium. (Last time I used a USB SCSI memory stick which did work but also demonstrated how desperately slow this stuff can be.)
Python itself have does certificates at The only other suggestion I have is are the |
Doug Webb (190) 1180 posts |
Raik, I tried a fresh install on 5.28 and Pi4 myself and found that in addition to the following mentioned in your help file: LibFFI6 That these also needed installing via Packman: TaskRunner I then installed/upgraded setuptools,youtube-dl and youtube-search-python version 1.3.9. The setuptools upgrade needs to be done twice as the first attempt errors as per previous posts. Hope that helps. Doug Update: Obviously Python-38,Python-38-pip, Python-38-Core, mplayer, ffmpeg, ffplay as well :-) |
Chris Gransden (337) 1207 posts |
Also add CryptRandom to the list. |
Vince M Hudd (116) 534 posts |
As Doug notes, the instructions were based on his presentation of how to set things up at a MUG meeting, and in turn on the versions of the software available at the time. On RISCOSitory, it should be noted that it was a post in the general news feed – everything in that feed is at risk of going out of date. That’s the thing about ‘news’ (and features that are included in that news); they become ‘olds’, and ‘olds’ are really just a historical record. I can’t seriously be expected to update ‘olds’ – but in this case I’ve added a ‘readme’ box at the top, which reads: Update: 20th February, 2021. Being an article in the general RISCOSitory ‘news feed’ the information As Rick noted, the helpful thing to do if you really felt that the instructions were misleading was to let me know – so thanks to Doug for doing so. (And typically, it’s only after copying/pasting the paragraph here and posting this that I noticed the silly mistake. Now fixed.) |
Raik (463) 2061 posts |
Have picked up all the packages dependencies and it works for me with a fresh 5.28 RPi ROOL image. |
George T. Greenfield (154) 748 posts |
I’d just like to say a sincere ‘thank you’ to Chris, Raik and everyone else who has contributed to the development of all the apps involved in being able to play YouTube videos on RISC OS native hardware. Now that I’ve got a fully-configured ‘PackMan compliant’ version of RO5.28 up and running on a mildly overclocked Pi4, it’s a doddle to drag YouTube links from Netsurf into YTPlay and view them at 720p using a recent version of MPlayer. YTPlay is the only app that needs to be launched: it is sufficient for PythonSite, Python3 and MPlayer to have been seen during the boot sequence, and YTPlay launched, all of which can be configured to happen automatically. Youtube links can then be found using Netsurf and the URLs dragged directly to YTPlay from the Netsurf address field. With the latest versions of Python and YTPlay the detailed procedure described in Vince Hudd’s Riscository article (reference above) has been greatly simplified – progress indeed! I have tested FFPlay/FFMpeg and MPlayer on the same link at 360p and 720p; FFMpeg is smooth at the lower but freezes at the higher resolution, whilst MPlayer is acceptably smooth at 720p. It is therefore my default player (the Pi is running at 1800Mhz). |
Raik (463) 2061 posts |
Thanks for your feedback. |
Doug Webb (190) 1180 posts |
Hi Raik, Tried your test package on a new install for the Pi400 and it works. Obviously the manual bits are required for MPlayer/FFplay/FFMpeg also install of Youtube-dl/Youtube-search via YTplay needs to be done but a lot easier so thanks for that. |
Raik (463) 2061 posts |
Thanks for the info. |
George T. Greenfield (154) 748 posts |
Me too, on a Pi4. All went according to plan and YTPlay works perfectly, having rebooted. One thing I will mention, to bear in mind when upgrading: the install of Youtube-dl/Youtube-search via YTplay both take several minutes, during which the task window dialogue doesn’t change, and it is quite tempting to conclude that the process has stalled (and this is on an overclocked Pi4, so updating on a Pi3 or lesser Pi could be quite protracted). So just be patient! Thanks as ever to Raik for his ongoing development. |
George T. Greenfield (154) 748 posts |
Except it doesn’t! I should explain: the zip (dropped onto !PackMan – didn’t know it could do that – neat) created a new directory ‘Youtube’ for the new version of YTPlay, in Apps, while the current version (V3.02a) lives in Apps.Video, and is set to be launched automatically by the boot sequence. So when I thought I was testing the latest RC version, in fact I was not, because 3.02a hadn’t been updated. Furthermore, V3.1 RC2 will load, but it won’t launch MPlayer so won’t display links. V3.02a continues to work as normal. I’m willing to test the RC version if someone will tell me how to get it running. |
Raik (463) 2061 posts |
At first, there is a new package with a bugfix. Drop the URL not work or only work if you use searching before in the latest RC2. I’m not sure. I try install the new package in my “biotop”. looks like all is working. |
George T. Greenfield (154) 748 posts |
That’s correct. I don’t normally use the ‘search’ feature, but I will try it.
That’s not good – it is my default player :-( |
Raik (463) 2061 posts |
Is only if you try to play “audio only”. Is a feature that nobody needs ;-) |
George T. Greenfield (154) 748 posts |
I did that – deleted the existing YTPlay and replaced it with V3.2 from the archive. I then went through the ‘Install/Update youtube-dl’ routine – all good. Then ‘Update/Install youtube-search’. This process failed with error message:
but I decided to ignore that as I don’t use youtube-search. I also updated Python to the latest PackMan versions. Anyway, V3.2 is working, exactly as V3.02a, so that’s a result! |
Raik (463) 2061 posts |
The update-routine is a bit a “wonderbag”. If an update fails, anytime a second try works. |
Doug Webb (190) 1180 posts |
Yep it does that but running it a second time after that fail will update/install yourtube-search , though you may get some other errors. Good to see you have updated OK now. |
Doug Webb (190) 1180 posts |
Just updated this myself now and overwrote my old YTplay by just dragging the install option to the directory where it was installed. |
George T. Greenfield (154) 748 posts |
No need to apologise, Raik! YTPlay works extremely well, and adds important functionality to our platform. I applaud your efforts. |
Raik (463) 2061 posts |
Thanks for your words. |
George T. Greenfield (154) 748 posts |
That exactly describes my current procedure (except that format and player choices have already been selected and saved, and the format (720p) only gets adjusted in case of problems such as dropped frames, excessive jerkiness etc), so a ‘lite’ version probably wouldn’t benefit me, though others may have a different view. In truth, as soon as I realized how simple it was to find a Youtube topic using Netsurf and drag the URL from Netsurf’s address bar to the YTPlay icon I gave up trying to master the use of ‘Search’. |