Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I've just found that a lot of videos I attempt to stream are now webm as default which mplayer can't play.
So, I've updated the streaming script/app to only play mp4, flv or 3gp files and attached it here.
As mentioned before, it is editable in TextEdit and following the guide on the youtube-dl website, you can customise it to your own needs - this one attempts to play files up to 360P, 240P would be more sensible for low end Macs.
 

Attachments

  • YT.zip
    46 KB · Views: 652
Nope, it says it can't find the current version... :/

Do you have any specific videos that you know work so I can test against them?
 
A bit off topic, but what software do you use to show cpu usage in the menubar with tiger? I use iStatMenus on Leopard but thats not available for Tiger oder even older ones
 
I look forward to using this on my iBook G4! I've installed it, but, unfortunately, I get some error in Terminal whenever I try to download or stream. PPC Media Centre is installed, and I followed the extra step for Tiger but it doesn't work.

Screenshot:
Picture 1.png


Any idea what could be causing this?
 
I look forward to using this on my iBook G4! I've installed it, but, unfortunately, I get some error in Terminal whenever I try to download or stream. PPC Media Centre is installed, and I followed the extra step for Tiger but it doesn't work.

Screenshot:
View attachment 696835

Any idea what could be causing this?

I haven't seen an error remotely like that.
Have you updated youtube-dl (in Terminal, youtube-dl -U)?
Are you using Python that PPC Media Center installed?
 
I haven't seen an error remotely like that.
Have you updated youtube-dl (in Terminal, youtube-dl -U)?
Are you using Python that PPC Media Center installed?
Yes, using the same Python that PPCMC installed. Tried the command:
Picture 1.png

The errors point to /bin/youtube-dl, which is the file I copied from /usr/local/bin to /bin. Maybe it has to be copied differently?
 
Yes, using the same Python that PPCMC installed. Tried the command:
View attachment 696838
The errors point to /bin/youtube-dl, which is the file I copied from /usr/local/bin to /bin. Maybe it has to be copied differently?

From the error message it indicates that there is an encoding conflict where it tries to understand unicode as being ASCII

https://www.python.org/dev/peps/pep-0263/

Can you post your output from Terminal for these commands :

  • which youtube-dl
  • cd /bin
  • ls -ltr youtube*
  • head youtube-dl
  • ./youtube-dl
 
From the error message it indicates that there is an encoding conflict where it tries to understand unicode as being ASCII

https://www.python.org/dev/peps/pep-0263/

Can you post your output from Terminal for these commands :

  • which youtube-dl - "/bin/youtube-dl"
  • cd /bin
  • ls -ltr youtube* - "-rwxrwxrwx 1 henry henry 1229378 Apr 18 17:46 youtube-dl
    "
  • head youtube-dl - CRAZY ERROR, unreadable!
  • ./youtube-dl - SAME AS ABOVE
I've edited your quote with the results. :)
 
I've edited your quote with the results. :)

This is on my PB G4 running Leopard, I didn't install youtube-dl via PPC MediaCenter but the first 2 lines of the head command should show you the environment variable to which the pep error refers.

What output does ./youtube-dl give you ? With me it starts python and outputs the help .

snelboek:~ uz3r$ which youtube-dl
/usr/local/bin/youtube-dl

snelboek:~ uz3r$ cd /usr/local/bin/

snelboek:bin uz3r$ head -n 2 youtube-dl
#!/usr/bin/env python
P??1JIz2?m;youtube_dl/aes.pyUT ?-~XU?Xux

[... I shortened the output }
??Sk;~??8?lA??D?*nN\0?؁/RI…d?o$ۺg??!?ʮi&'T?.Hr??{?/i9"<

snelboek:bin uz3r$ ./youtube-dl
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.


What does :
  • python --version
  • which python
produce ? Either youtube-dl is broken or it can't find python but since I'm not on Tiger I can't tell you where they should be.
 
I think this is a Tiger problem as I had this working fine on Leopard.

./youtube-dl brings up a crazy error that's written with crazy characters and symbols. which youtube-dl returns /bin/youtube-dl but which python returns /usr/bin/python.
 
I think this is a Tiger problem as I had this working fine on Leopard.

./youtube-dl brings up a crazy error that's written with crazy characters and symbols. which youtube-dl returns /bin/youtube-dl but which python returns /usr/bin/python.

That's because the encoding is basically converting a unicode encoded file to ASCII , when you cd /bin , what does
head -n 2 youtube-dl show in the first 2 lines ?
 
Have you tried deleting youtube-dl and downloading it again?
Sorry I can't help - I've installed this on 3 Tiger systems and there's never been a hiccup.
 
what does
head -n 2 youtube-dl show in the first 2 lines ?

For what it's worth:
#!/usr/bin/env python
Pf?\J?$??5?>youtube_dl/aes.pyUT _??Xc??Xux
??՛ksǕ???W?ڕ%?"%?/??*?ѫ?,?l%?]25?? ?@???t5??E????bsv?>L?M?j????h{?.????ᗏ?d?I?L>m?M?]??r?H6ۋ???1}<;?y7?c?????????Y<"?z?]??x????-͢mt???ǥ?|u??/??B??|L?tf???
?Ng????h??k???X????&w???,?5?d|Uk???.??V?8X?O??C?x????r?MVˠ?ul?c??16??3Y????ς?????
vܵ ?X?~??㙬??m??-g?,???????K?H&.?x?]G????9??eC}5k??_f?.eL'Y>?I?{"]?$xT???
d^A+c3???ї?U??sJf?E?N/q?ܷ??dj
fyZ?Kn?!&??v??^?vk??xMa????HM>?? ??!@?.?x?X??????$?G?!?}?Xɇ?G?942???H??WDC???a#eT??0K??I??q*|F????2??&Y?|???w_???h63?}>?q?ޚ????Y?s??N?޸Z??Q?4[~0~p?79Z?H??gql??>y?b?;^???naf?CǛG?X86?H^ y?l?\?1O?Ec޳?/??*^?????????.?=.N]???P0T?fI?c?UX?Zg?,?%?>?9? ???<LYOW?PE?JKSXkت?I?S???]T?Y~^?0??U?0??>?X??]??3???Q?"d???\6???Z?Ln?k?쇋?????"???v
 
Tomorrow I'll be reinstalling Tiger on my iBook G4, then I'll try this again from a fresh install. All I plan to install if TFF, TFF tweaks, and PPCMC before I try it. Then I'll follow the directions exactly.

What could go wrong? :D
 
MAk
What could go wrong?
Make sure you update youtube-dl - since I did the thread there's been three updates - also, you might have to adjust the scripts to you own liking.
Youtube seems to change on a daily basis, one day it works, the next it doesnt, I think they're in the process of replacing all videos with .webm.
I find the safest bet is to instruct the script to go for 3gp files if your on a low end G4 or G3.
 
  • Like
Reactions: AmazingHenry
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.