There will be a v2.9 soon because of changes at YouTube that stopped most links working. However the message you are getting is because of invalid command line arguments. Open up the debug log file in T:YT and on the 2nd line you will see which command line arguments were given to the script. The first argument needs to be the YouTube URL and I'm guessing it's not.
Also check that the .rexx isn't corrupt. It's a very weird error message. Or maybe you just pasted extra stuff by accident after the word "instead".
Or are you trying to use it on a non-YouTube site that contains YouTube video links, but that site is password protected? In any case, the debug log should help.
I have a problem with YT.rexx, I try to make it work but I always have an output window that tells me "Unrecognizable Youtube URL, scanning for links instead Enter host password for user '-A': Unable to open T:YT/YT-Site.html
I also noticed that even with Aiostreams you can't play videos anymore.
Youtube where I don't know who is messing things up.
A little more information would be helpful
I also had the problem you described, it was because I had entered it incorrectly in the context menu in Odyssey.
This is how it should be entered. In the YT.cfg I have entered it for MPlayer like this....
PathMP="AmigaOs4.1:Utilities/MPlayer/MPlayer" /* Full path to MPlayer executable */
ArgsMP="-quiet -really-quiet -vo comp_yuv2 -autosync 35 %u -cache 2048 -framedrop" /* Optional parameters for mplayer */
The path to MPlayer must of course be adapted accordingly.
AioStreams via Emotion is fully configured on my system, as well as YT.rexx with MPlayer, since there are always problems that streaming YouTube videos via AioStreams fails, I still have an alternative with YT.rexx where there are currently no problems. Unfortunately I couldn't get YT.rexx to work with Emotion, there is always an "I/O error" when retrieving YouTube streams. With MPlayer it works well, but leads to an increased CPU load, as the videos are not accelerated here.
MickJT wrote:There will be a v2.9 soon because of changes at YouTube that stopped most links working.
Thanks for providing the new YTScript
If I want to stream YouTube videos with YT.rexx on https://aiostreams.amiga-projects.net/invidious/trending it still works, but if I use AioStreams directly there is an error message that I have already posted in the AioStream thread.
It would be great if we could customize YT.rexx so that we could also use Emotion as a streaming player. Or someone teaches MPlayer accelerated video output
It looks like the undocumented MEDIACONNECT command line option will give working links, but displays HLS links first, so just press enter to skip those. Also ANDROID might work.
I see -shh -x in your parameters a couple of posts above, which doesn't look right (or maybe you that's what you were trying to say).
Edit: v2.9 is nearly ready.
Edited by MickJT on 2024/8/12 11:58:01 Edited by MickJT on 2024/8/13 9:03:48
V2.9 Downloaded and seems to be working on my X1000 with MPlayer. I may have missed it but, do you know why it can no longer retreive 720p videos when using autoplay?
I assume you're not getting a 720p option when not using autoplay either? Except within DASH or HLS links.
YouTube only provides a 360p option for single link non-DASH/HLS options now. I'm not sure exactly when they did that. I've kept those tag numbers there in case it comes back.
You can use the experimental dualplay command line option to pair the 720p DASH video with audio, but you need to change this line
IF Tag="134" THEN DualVID=YURL2
To tag 136.
I have yet to finish that feature, so it's hardcoded at the moment.
You can use the experimental dualplay command line option to pair the 720p DASH video with audio, but you need to change this line IF Tag="134" THEN DualVID=YURL2 To tag 136.
Thanks, this seems to work well. 720p videos seem to play well on my X1000.
Good to know! I've sent you a private message as well.
Edit: In your cfg example above, the quotation marks are shown as “ and ” rather than ". The former is likely to cause problems but I'm guessing it's not actually like that in the .cfg
Verified that Emotion works well on the A1222+. The scaling on Emotion works very well, so even the YouTube default 360p looks decent when setting Emotion to open in a 720p default size and even full screen on my 13.2" monitor. Note the the DualPlay option to play 720p videos does not work with Emotion. Tested with v 3.0.
Verified that Emotion works well on the A1222+. The scaling on Emotion works very well, so even the YouTube default 360p looks decent when setting Emotion to open in a 720p default size and even full screen on my 13.2" monitor. Note the the DualPlay option to play 720p videos does not work with Emotion. Tested with v 3.0.
I am currently conducting a few experiments together with MickJT and testing which functions Emotion offers for streaming, where MickJT can also permanently integrate Emotion into YT.rexx. For us users with real hardware, it would be the best choice.
The default resolution of YT.rexx uses 640x360 as far as I know and yes, Emotion it scales very well for that resolution.
In the context menu of OWB I left out the option “silent autoplay” to be able to determine the resolution myself... 720p and 1080p are possible without problems and absolutely synchronized in video/sound playback and it looks really great.
Edit: Emotion can handle HLS video streams up to 1080p very well, including sound. Unfortunately, there is no sound with DASH streams, which probably lacks codec support.
Edit: There is also a small test video which I have created, it is actually not intended for the public, but shows once again how well it works with HLS streams.
Edited by Maijestro on 2024/8/19 20:31:09 Edited by Maijestro on 2024/8/19 20:33:26
The DASH links are not a codec issue. It's just that the audio and video are on separate streams. So when you select a DASH video, you're literally only selecting the video, without the audio. The dualplay option is an experimental proof of concept which sends both a video & audio link to mplayer (at the moment this is hardcoded for 360p). If Emotion can be given 2 links, then it can work too.
Thanks for that video. It looks like Emotion can handle .m3u8, but as far as I know you can't choose on the command line which video/audio stream to play. YT.rexx is able to give a link specific to the chosen video resolution when the video and audio are not separated, so that is OK with the media connect client. With the IOS client, video and audio are separated and either Emotion would need to support choosing the streams, or allow a secondary link for audio input. There might be a way to work around that by editing the m3u8 to remove unwanted streams. I'll send you something to try out when I have time.
Edited by MickJT on 2024/8/20 3:09:10 Edited by MickJT on 2024/8/20 5:45:49 Edited by MickJT on 2024/8/20 8:57:37 Edited by MickJT on 2024/8/20 8:59:32 Edited by MickJT on 2024/8/20 9:03:11
Thank you for working on this. I still don't understand why DASH streams are so important, maybe we should limit ourselves to HLS streams that offer sound and can be played up to 1080p without any problems with Emotion at a very low CPU load, which should be quite enough for our purposes to enjoy YouTube on our machines and AmigaOs4.1.
And no stress, just work on it if you feel like it, it's already very good now that we have the possibility to use Emotion with YT.rexx for the first time
MPlayer supports using a secondary link for audio, so it can play DASH streams. I just need to add some code that pairs the right video/audio together. The "dualplay" option uses hardcoded values.
MPlayer can't stream HLS properly and pauses at the end of each segment (a few seconds each).
ffplay can't use a second link for audio, unless it's part of an m3u8 playlist. It also relies on SDL2 which has more CPU overhead.
So the best free player with least overhead for 720p+ is going to be MPlayer with DASH streams.
Going by your emails, it looks as though Emotion can't use a 2nd link for audio, but can stream HLS well but only when the video+audio is multiplexed in a single stream, which happens when using the Media Connect client. The IOS client uses different streams for audio and video.
So there's no best solution for everyone. You can mux video/audio on the fly and pipe it to a player, but then you can't seek (and maybe not even pause for long).
I've tested a few things with YT.rexx. First of all : Emotion can read all hls links just fine, as long as they are loaded from ram: or hd. Emotion doesn't alsways handle hls links via https: correctly which results in an I/O error.
This is my YT.cfg file:
V2.9 /* Please don't change the formatting */
HTML="1" /* Generate HTML page and open browser? 0/1 */ Debug="1" /* Write debug output to T:YT/YT-Debug.log? 0/1 */ AutoPlay="0" /* Automatically stream videos in mplayer/ffplay? 0/1 */ SkipDASH="1" /* Skip processing of DASH links. 0/1 */ Captions="0" /* Display list of captions? Console mode only. 0/1 */ CapLang="" /* Caption language for autoplay. Blank for none. See docs. */ CapTrans="" /* Translate captions to this language. See docs. */ Browser="Odyssey" /* Default browser: Odyssey/IBrowse/AWeb/NetSurf. */ ScanLimit="10" /* Maximum amount of video links to scan. */ UsePipe="0" /* Streams HTTPS to MPlayer via STDOUT/STDIN 0/1 */
PClient="MEDIACONNECT" /* See docs for available player client options */ /* Examples: WEB, ANDROID, IOS and more */
PlayMode="3" /* See documentation for available playback modes 1/4 */ /* This option only applies to HLS links */
Audio is on a separate (and not shown) link when you use the IOS client. I'm investigating if there's some sort of workaround for Emotion to be able play vid with sound with the IOS client option, but no luck so far. At the moment, it's not necessary but who knows in the future.
HTML="0" /* Generate HTML page and open browser? 0/1 */ Debug="1" /* Write debug output to T:YT/YT-Debug.log? 0/1 */ AutoPlay="0" /* Automatically stream videos in mplayer/ffplay? 0/1 */ SkipDASH="0" /* Skip processing of DASH links. 0/1 */ Captions="1" /* Display list of captions? Console mode only. 0/1 */ CapLang="" /* Caption language for autoplay. Blank for none. See docs. */ CapTrans="" /* Translate captions to this language. See docs. */ Browser="" /* Default browser: Odyssey/IBrowse/AWeb/NetSurf. */ ScanLimit="10" /* Maximum amount of video links to scan. */ UsePipe="0" /* Streams HTTPS to MPlayer via STDOUT/STDIN 0/1 */
PClient="MEDIACONNECT" /* See docs for available player client options */ /* Examples: WEB, ANDROID, IOS and more */
PlayMode="1" /* See documentation for available playback modes 1/4 */ /* This option only applies to HLS links */
I am facing problems getting the contextual menu to play you tube clips via mplayer.
I get this requester pop up:
Please insert volume: rx Amiga OS4: in any drive. Process 463 "Backgound CLI"
I have edited the YT.cfg file to ensure volume and path is correct for Mplayer.
You have a blank line between “rx Amiga OS4: in any drive.”, but it should use “AmigaOS4” as the name if your partition is really named where you installed your system.
For playback you only need "c:rx Sys:Path/to/YT/YT.rexx %l silent autoplay" in the context menu of Odyssey, I had mentioned it a bit differently above, but MickJT told me that it is not necessary.
Did you use the AioStreams Amiga project page, or did you go directly to YouTube?
For MPlayer and FFPlay you can also use “APPDIR” a great function of AmigaOs4.1 where paths to the respective program are remembered after the first start.
PathMP=“APPDIR:mplayer” /* Full path to MPlayer executable */ PathFP=“APPDIR:ffplay” /* Full path to FFplay executable */
I personally configured everything with Emotion Player as this player uses accelerated playback and works very well with 720p and 1080p streams on the AioStreams Amiga project page. Odyssey is no longer able to access the official YouTube site, the only thing the browser displays are gray tiles.
Which Spoofing is used no longer matters.
Edited by Maijestro on 2024/8/26 17:20:19 Edited by Maijestro on 2024/8/26 17:22:13