Apparently some version of makedir doesn't like trailing slashes. Find MakeDir T:YT/ and remove the slash.
There might also be an issue with slow speeds causing the video to pause/stutter for some people. It isn't happening to me though. If that happens to you, send me a private message with a link to at least the debug log file (preferably all the files generated). There's a thread about that here: https://www.amigans.net/modules/newbb/viewtopic.php?topic_id=9286
@MickJT Ah yes. It was the Enhancer2 version of makedir that didn't like the trailing slash. I mentioned that in the comments section of the yt download page on OS4Depot back in September.
As for the stuttering, I have a Sam460 and it struggles with the MP4 format when using MPlayer. So I don't think I'll be much use to you but happy to test if it helps.
Cheers
Edit. I've read that thread again and seen the problem is also with Emotion for some.
Emotion seems to work fine with YT for me. Again, happy to get involved with any testing.
I don't know why you'd post remarks about a MattyOS bug on the comments section of the YT.rexx.
I don't know why you would post a response like this? Is "MattyOS" supposed to be a derogatory term?
I posted about it in the YT.lha commensts section on OS4Depot, so that the author might see it and make a fix, and so others, who might be having the same problem, might go to leave a comment and see find the workaround.
In addition, I also posted on Amgians about it Here
I also submitted a bug report to Mantis on Sept. 30, 2022. Not long after my initial reports. Unfortunatly the bug is still open but I did do all i could to do something positive and bring attention to it.
Yes, that is exactly what it is supposed to mean. Some even like to somewhat hide their blind zealotism by calling it "fair criticism from customers".
But it is what it is. And it's a rot within the ever shrinking Amigaos4 community.
Back to the subject. It's the final googlevideo link that causes the issue that I experience. The one that aiostreams creates to the same video is playing just fine. I've send both logs to MickJT so hopefully he is able to find a solution.
Unfortunately, YouTube does a lot of changes constantly, making it harder for everyone to keep their software working. You did well and informed the YT.rexx dev. If aiostreams breaks, please let me know as well.
walkero wrote:Unfortunately, YouTube does a lot of changes constantly, making it harder for everyone to keep their software working. You did well and informed the YT.rexx dev. If aiostreams breaks, please let me know as well.
Since aiostream is your script, could you please explain me how I have to use it with Odyssey and Emotion for YouTube streams?
I read your readme but didn't quite understand it.
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
# Configuration
# At this file you can change the behaviour of the scripts, by setting
# various parameteres, and most important the preferred video players
#
# Set this to True to enable autoplay of the video with your preffered video player. Set it to False to disable it.
autoplay = True
# Set this to True to get more info from the script during the execution. Set it to False to disable it.
verbose = False
# Set the path to your preffered video player. This is going to be used on recorded streams only.
# This is used only if autoplay is set to True.
vPlayer = "sys:Utilities/Emotion/emotion"
# Set the arguments that are going to be used with your preffered video player.
vPlayerArgs = ""
# Set the path to your preffered video player. This is going to be used mostly on live streams,
# but depending the network, might be used on recorder streams as well.
# This is used only if autoplay is set to True.
sPlayer = "sys:Utilities/Emotion/emotion"
# Set the arguments that are going to be used with your preffered streaming player.
sPlayerArgs = ""
I've also made an assign aiostreams: to where I've stored the aiostreams scripts (in my case sys:Utilities/aiostreams/).
THen you'll need to create a new context meny in Odyssey (Settings -> Preferences-> Contextual Menus) I've added the following line: Category: Link Label: Open with Aiostreams: Action: python aiostreams:youtube.py -shh -u %l
Now, go to youtube and press rmb on a youtube video link thumbnail and select " Open with Aiostreams".
The video will now be opened with Emotion. Or any other player that you've configured in cgf.py.
It doesn't work on every movie so it might crash Emotion. It works on the videos from kas1e. Search for example for "Sound blaster fx x5000" It doesn't work on "Guardian of the galaxy: Awesome mix Vol. 1" but using aiostreams directly on this movie will also result in an io error. (https://www.youtube.com/watch?v=dssPrlCQrvM)
Edited by geennaam on 2023/8/8 18:17:21 Edited by geennaam on 2023/8/8 18:17:52
Traceback (most recent call last): File "KDH1:Comm/aiostreams/twitch.py", line 302, in <module> main(sys.argv[1:]) File "KDH1:Comm/aiostreams/twitch.py", line 279, in main videoInfo = aioapi.getVideoInfo(video['id'], video['type']) File "KDH1:Comm/aiostreams/twitch.py", line 126, in getVideoInfo return json.loads(responseData) File "Utilidades:Comm/aiostreams/simplejson/__init__.py", line 518, in loads return _default_decoder.decode(s) File "Utilidades:Comm/aiostreams/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "Utilidades:Comm/aiostreams/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) File "Utilidades:Comm/aiostreams/simplejson/scanner.py", line 79, in scan_once return _scan_once(string, idx) File "Utilidades:Comm/aiostreams/simplejson/scanner.py", line 70, in _scan_once raise JSONDecodeError(errmsg, string, idx) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #
Traceback (most recent call last): File "KDH1:Comm/aiostreams/twitch.py", line 302, in main(sys.argv[1:]) File "KDH1:Comm/aiostreams/twitch.py", line 279, in main videoInfo = aioapi.getVideoInfo(video['id'], video['type']) File "KDH1:Comm/aiostreams/twitch.py", line 126, in getVideoInfo return json.loads(responseData) File "Utilidades:Comm/aiostreams/simplejson/__init__.py", line 518, in loads return _default_decoder.decode(s) File "Utilidades:Comm/aiostreams/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "Utilidades:Comm/aiostreams/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) File "Utilidades:Comm/aiostreams/simplejson/scanner.py", line 79, in scan_once return _scan_once(string, idx) File "Utilidades:Comm/aiostreams/simplejson/scanner.py", line 70, in _scan_once raise JSONDecodeError(errmsg, string, idx) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #
To get back to the actual topic, I also noticed something with YT.rexx when playing YouTube streams via Odyssey. There is always a small window with the error message "Fontconfig error" but the YouTube stream is playing.
Maybe someone knows what is causing the problem?
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
@Maijestro I don't know how fonts work in Odyssey, my AmigaOS 3.x and 4.x ports of OWB ports used the AmigaOS native font functions instead of libfreetype and fontconfig, but you could try if executing "fc-cache -f" in a shell helps. Depending on how much TTF/OTF fonts you have installed that may take a long time to complete.
joerg wrote:@Maijestro I don't know how fonts work in Odyssey, my AmigaOS 3.x and 4.x ports of OWB ports used the AmigaOS native font functions instead of libfreetype and fontconfig, but you could try if executing "fc-cache -f" in a shell helps. Depending on how much TTF/OTF fonts you have installed that may take a long time to complete.
Thanks for trying to help, but it doesn't solve the problem.
New shell process 7
7.Workbench:> fc-cache -f
fonts:_truetype: failed to write cache
Edit:I recorded the output with Snoopy, I'm not sure if it might be a problem with MPlayer/YT.rexx or Odyssey. Maybe it will help someone identify the problem.
I also noticed something with YT.rexx when playing YouTube streams via Odyssey. There is always a small window with the error message "Fontconfig error" but the YouTube stream is playing. Maybe someone knows what is causing the problem?
This is not a YT problem. It's a problem with the version of MPlayer you are using. Please report it to the developers.
I also noticed something with YT.rexx when playing YouTube streams via Odyssey. There is always a small window with the error message "Fontconfig error" but the YouTube stream is playing. Maybe someone knows what is causing the problem?
This is not a YT problem. It's a problem with the version of MPlayer you are using. Please report it to the developers.
I was unsure but after looking at Snoopy's log file I suspect that this is the problem: