Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
71 user(s) are online (65 user(s) are browsing Forums)

Members: 0
Guests: 71

more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3) 4 »
Re: YT.rexx results in stuttering video [Solved]
Just popping in
Just popping in


See User information
I created a little rexx script to play the videos with DVplayer.

First of all I, I use YT.rexx with the HTML output option in yt.cfg.
You can see all of my yt.cfg settings in post #35.
Second, dvplayer doesn't play nice with the videolinks via https:, so I have to download them to RAM:

I use the following rexx script to get the video and play it with DVplayer:
/* */
parse arg url
address command
'c:curl' url '-o ram:videoplayback'
'appdir:dvplayer ram:videoplayback'
'delete ram:videoplayback'
exit

I created a context menu in Odyssey to call yt.rexx to create the html page with the video links:
rx Work:internet/yt.html/yt.rexx %l

And i created a context menu in Odyssey to play the video with dvplayer:
rx rexx:dvplayer.rexx %l


Edited by Mozzerfan on 2024/8/29 20:32:36
Edited by Mozzerfan on 2024/8/29 20:35:46
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@Mozzerfan

That's a great solution too, I'm not sure, but does the full video download before it plays?

If so, it will take quite a long time for the videos to play given the loading times of videos via AioStreams Project Page/YouTube.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just popping in
Just popping in


See User information
@Maijestro

Yes. The selected file is downloaded to ram:. The MP4 file takes the longest time to download.
The HLS linksonly take less than a second to download, because they only contain links.
The first link usually is a 360p MP4 file. I have fast internet and on my system it takes about 5 seconds to download to ram:

Edit: Now i get your post. the mp4 file takes ages to download through aiostreams.
But you can use the HLS file. This loads fast and you can select the size. Viewing a 720p HLS file takes only a couple of seconds to load through aiostreams.

Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@Thread

Sorry but can someone help?

I tried everything but the only message I get is : Unable to open T:YT/YT-Site.html

--
AmigaONE X1000 and Radeon RX 560
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@K-L

Quote:
K-L wrote:@Thread

Sorry but can someone help?

I tried everything but the only message I get is : Unable to open T:YT/YT-Site.html


A little more information would be helpful, how did you configure it?

Which player do you use for the output, Emotion/MPlayer/FFPLAY ?

At the moment I'm testing the best configuration with Emotion and YT.rexx with MickJT and it's already really very good.

Since you can no longer access the official YouTube site with Odyssey, I mainly use it for streaming YouTube videos (https://aiostreams.amiga-projects.net). Thanks again to “walkero” for the great provision of this website.

On this alternative YouTube site, with the right configuration, all videos can be streamed via emotion in 1080p, it's really great and fast. I'm not sure when MickJT will provide the new YT for all of us, so just be patient.

Here you can see it briefly with the latest beta of YT.rexx on Emotion.

AioStreams over YT.rexx:




MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@Maijestro

I think it doesn't matter what program I'm using (Emotion with Invidious instance from aiostreams).

It is at the the very start of the rexx program that this error occurs. Something is going wrong with the creation of this file (YT-sites.html) I think.

My Odyssey script is this : RX dh2:Video/YT/YT.rexx % html odyssey silent

--
AmigaONE X1000 and Radeon RX 560
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@K-LQuote:


K-L wrote:@Maijestro

I think it doesn't matter what program I'm using (Emotion with Invidious instance from aiostreams).

It is at the the very start of the rexx program that this error occurs. Something is going wrong with the creation of this file (YT-sites.html) I think.

My Odyssey script is this : RX dh2:Video/YT/YT.rexx % html odyssey silent


Why do they want to use “Invidious” as an alternative to YouTube and AIOStreams? I don't quite understand it. Maybe you could explain what the advantages are?

Personally, Amiga AioStreams is enough for me to be able to watch YouTube videos with YT.Rexx in a good resolution.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@Maijestro

I don't understrand what you are talking about regarding Invidious. What you are using on https://aiostreams.amiga-projects.net/invidious IS an Invidious instance.

Another thing I don't understand : you are mixing AioStreams and YT.rexx?

Or are you confusing https://aiostreams.amiga-projects.net/invidious (which is an Invidious instance) with AioStreams (the software from http://os4depot.net/?function=showfil ... video/misc/aiostreams.lha )

So far, I'm a little bit lost with your answers :(

--
AmigaONE X1000 and Radeon RX 560
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just popping in
Just popping in


See User information
@K-L

Does your command really say 'YT.REXX %'

Because it should be 'RX dh2:Video/YT/YT.rexx %l html odyssey silent

Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@Mozzerfan

Lots of thanks ! That was this !

--
AmigaONE X1000 and Radeon RX 560
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@K-L

Quote:
K-L wrote:@Maijestro
Another thing I don't understand : you are mixing AioStreams and YT.rexx?


I don't mix AioStreams with YT.rexx but use the AioStreams "https://aiostreams.amiga-projects.net" site with YT.Rexx to watch YouTube videos in 1080p.

If you do this directly via AioStreams with a script, you can only watch videos in 360p.

As I already explained in another thread, this is currently the only option we have. YouTube.com or YouTube Mobile no longer works with Odyssey and there are only gray tiles.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@Maijestro

The "AioStreams" site is just an Invidious instance (amongst many others). This is why I call it Invidious and not AioStreams (which is the software).

For the rest, I already know all this very well. I was just looking for my mistake regarding YT.Rexx, problem solved thanks to Mozzerfan.

--
AmigaONE X1000 and Radeon RX 560
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just popping in
Just popping in


See User information
I prefer to use www.tonvid.com.
I acquired a youtube api key, to avoid the 'daily limit exceeded' errors.

Works like a charm.

Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@Mozzerfan

Thanks for the tip :)

--
AmigaONE X1000 and Radeon RX 560
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just popping in
Just popping in


See User information
The link for the mp4 file is too long, so it couldn't be used by the dosscript for emotion from post #35

So I adapted my rexx script, so it could be used for dvplayer and emotion.
The script is so simple, I think I don't have to explain any further.
For usage with a context menu in Odyssey for dvplayer:
rx REXX:videoplayer.rexx %l dv

For usage with a context menu in Odyssey for emotion:
rx REXX:videoplayer.rexx %l emo


/* videoplayer.rexx */
/* usage: rx videoplayer.rexx <url> <app> */
/* <app> can be dv or emo. */
/* when no <app> option is entered, default app is dvplayer  */
/* */
parse arg url app
if app='' then app='dv'
if app='emo' then app2='appdir:Emotion'
if app='dv' then app2='appdir:DVPlayer'
address command
'c:curl' url '-o ram:videoplayback'
app2 'ram:videoplayback'
'delete ram:videoplayback'

exit

Go to top
Re: YT.rexx results in stuttering video [Solved]
Just can't stay away
Just can't stay away


See User information
@Mozzerfan

Quote:
Mozzerfan wrote:I prefer to use www.tonvid.com.
I acquired a youtube api key, to avoid the 'daily limit exceeded' errors.

Works like a charm.


Thanks for the hint, the website works very well with Odyssey

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just popping in
Just popping in


See User information
I added tonvid.com as a search engine in Odyssey, so I can use it with Odysseys search function.

http://www.tonvid.com/search.php?q=%s


Edited by Mozzerfan on 2024/9/2 4:07:36
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just popping in
Just popping in


See User information
I added a silent option to the rexx script to suppress cli output.


For usage with a context menu in Odyssey for dvplayer:
rx REXX:videoplayer.rexx %l dv silent

For usage with a context menu in Odyssey for emotion:
rx REXX:videoplayer.rexx %l emo silent

EDIT: copied wrong script.
EDIT2: another error in script
EDIT3:another change in the script
EDIT4: Since yt.rexx 3.1 i have to use yt.rexx playmode 1. Also my script is not needed anymore for emotion. So in Odyssey, you can use "appdir:emotion %l" for context menu.
I just keep emotion in the script for testing purposes.


/* */
/* videoplayer.rexx */
/* usage: rx videoplayer.rexx <url> <app> silent */
/* <app> can be dv or emo. */
/* when no <app> option is entered, default app is dvplayer  */
/* with silent option, there is no curl cli ouput. */
/* */
parse arg url app silence
if silence="silent" then opt="-s"
else opt=""
if app="" then app="dv"
if app="emo" then appfile="APPDIR:Emotion"
if app="dv" then appfile="APPDIR:DVPlayer"
address command
"c:curl" url opt "-o ram:videoplayback"
appfile "ram:videoplayback"
"delete ram:videoplayback"


Edited by Mozzerfan on 2024/9/1 21:18:08
Edited by Mozzerfan on 2024/9/1 21:25:45
Edited by Mozzerfan on 2024/9/1 21:30:35
Edited by Mozzerfan on 2024/9/2 0:19:39
Edited by Mozzerfan on 2024/9/2 2:28:35
Edited by Mozzerfan on 2024/9/2 2:32:20
Edited by Mozzerfan on 2024/9/2 2:48:05
Edited by Mozzerfan on 2024/9/3 13:49:26
Go to top
Re: YT.rexx results in stuttering video [Solved]
Just popping in
Just popping in


See User information
With the previous version of my rexx script, I got some strange error on exit with dvplayer ( ***Command 'APPDIR:dvplayer' returned with unfreed signals 04000000!
).
After a long search, I found out that dvplayer has to be executed with the wbrun command. On the other hand, emotion doesn't like to be run with the wbrun command.
So I made a final change to the script. Note that I tested this on a sam460ex and an x5000. On the sam, I use a very long wait command. On my x5000 I use a wait of 2 sec.
Also note that I run YT.rexx with playmode 1.

So here is the final version:
/* */
/* videoplayer.rexx */
/* usage: rx videoplayer.rexx <url> <app> silent */
/* <app> can be dv or emo. */
/* when no <app> option is entered, default app is dvplayer  */
/* with silent option, there is no curl cli ouput. */
/* */
options results
parse arg url app silence
if silence="silent" then opt="-s"
else opt=""
if app="" then app="dv"
if app="emo" then appfile="APPDIR:Emotion"
if app="dv" then appfile="APPDIR:dvplayer"
address command
"c:curl" url opt "-o ram:videoplayback"
if app="emo" then do
appfile "ram:videoplayback"
end
else do
"C:wbrun" appfile "ram:videoplayback"
end

checklist:
CALL AddLib('rexxsupport.library',0,-30,0)
check=""
do until check=0
wait 4 /* long wait for sam 460. can be wait 2 on x5000 */
/* say showlist('W','DVPlayer GUI')*/
check=showlist('W','DVPlayer GUI')
end

trash:
wait 4 /* long wait for sam 460. can be wait 2 on x5000 */
"delete ram:videoplayback"
exit

Go to top
Re: YT.rexx results in stuttering video [Solved]
Just popping in
Just popping in


See User information
Unfortunately I made a few errors in the previous script.
When using the script for dvplayer, playmode in yt.cfg really has to be 1.
Here 's is the final version. Hopefully this time it's the final version./* */
/* videoplayer.rexx */
/* usage: rx videoplayer.rexx <url> <app> silent */
/* <app> can be dv or emo. */
/* when no <app> option is entered, default app is dvplayer  */
/* with silent option, there is no curl cli ouput. */
/* */
options results
parse arg url app silence
if app="silent" then silence="silent"
if app~="dv" or "emo" then app="dv"
if app="emo" then appfile="APPDIR:Emotion"
if app="dv" then appfile="APPDIR:DvPlayer"
if silence="silent" then opt="-s"
else opt=""
address command
"c:curl" url opt "-o ram:videoplayback"
if app="emo" then do
appfile "ram:videoplayback"
end
else do
"C:wbrun" appfile "ram:videoplayback"
end

checklist:
CALL AddLib('rexxsupport.library',0,-30,0)
check=""
do until check=0
wait 2 /* must be wait 4 on sam460 */
/* say showlist('W','DVPlayer GUI')*/
check=showlist('W','DVPlayer GUI')
end

trash:
wait 2 /* must be wait 4 on sam460 */
"delete ram:videoplayback"
exit


Edited by Mozzerfan on 2024/9/6 21:34:30
Go to top

  Register To Post
« 1 2 (3) 4 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project