Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
103 user(s) are online (72 user(s) are browsing Forums)

Members: 1
Guests: 102

jarokuczi, more...

Headlines

Forum Index


Board index » All Posts (white)




Re: A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


As for streaming on Youtube
everything works fine with OS4.
I did a test with two videos that can be seen simultaneously without problems.
Previously it was unthinkable to do it without Browservice.

Bearing in mind that it's all on the same computer

For example, for the TwichTV part, the sources must be recompiled for personal use because there are various patents.

Now the hardest part surfing the internet with sites and what to do to make surfing fast.

I'm very glad it was a lot that I wanted to do this

here the video:
https://www.youtube.com/watch?v=6LusLjKdXTc&t=258s


I would like to make it work also on 68k but IBrowse has this problem it accepts the connection but then the request doesn't appear.
In practice, the requester does not appear and I cannot navigate.
this also happens on OS4.

Go to top


Re: A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


I made some small adjustments
now the user-agent is configurable directly in browservice without having to use OS4 spoffing

The speed is now also excellent.

I'm also trying with the 68k but something doesn't seem to work

For example WRP works with 68k but doesn't allow you to do what Browservice does.
https://github.com/tenox7/wrp

Who knows if the author of IBrowse for 68k and also of the PPC version
( because both IBrowse 68k and PPC OS 4.1 versions don't work with Browservice )

Can you give an answer to this.

here the new video of the test:
https://www.youtube.com/watch?v=qIPbMSTMWhY&t=11s

Go to top


Re: A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


Here I did a test with Browservice
with Odyssey to use HTML5
If anyone is interested, I'd appreciate it.
Now it is stable I have to make other changes always for WinUAE
Works well, now the base is ready

Browservice now uses the audio of your PC directly.
The card is completely disabled in WinUAE
this increases the speed.
Other small changes also on Odyssey because in this case many functions are useless.

Clearly something would be needed to make better use of "Vulkan.dll"

Or something similar to a plugin that can interact with WinUAE from the graphical side.

You really need an external plugin, at least that's my idea.

Thank you

https://www.youtube.com/watch?v=Qls2boXEI4g&t=700s


Edited by white on 2022/12/4 17:25:18
Go to top


Re: A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


@jpv

Here's something more I wanted to achieve
here the HTML5 code in use with Odyssey

Clearly it's only at the beginning it's little optimized but it's a good start at least in emulation.

Sorry for the 300mb file size
But it takes seconds to download it
The site is fast

I hope it's interesting.

https://we.tl/t-2poWQCtlix

Go to top


Re: Odyssey which internal video player do you use and which codec ?
Quite a regular
Quite a regular


@ktadd
Thanks for the reply.

Go to top


Re: Odyssey which internal video player do you use and which codec ?
Quite a regular
Quite a regular


I have this question that no one answers.

When I use Odyssey for example, I see a video on YouTube
How is Odyssey or for example NetSurf able to play the video ??

Exactly what is the internal function of the Browser that allows you to view the video in streaming?

I give an example through "winuae" I can send Crash Odyssey specifically and the message appears:

"OWB internal Player not recognized"

What does "OWB Internal Player" refer to?

If I want to send the streaming stream directly to the Odyssey Internal Player what should I do?
Or how can I communicate with the internal OWB Player ??

If my question is wrong, please let me know so that I can learn

Thanks for any reply, I appreciate it very much.

Go to top


Odyssey which internal video player do you use and which codec ?
Quite a regular
Quite a regular


For example, it is possible to send a video directly to Odyssey's internal Player.

I am not an expert in this but do I have to encode the video to be opened with a particular Codec ?

Can I open a video directly with odyssey in what format ?

Thank you

Go to top


Re: A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


here is a small video easier to see than to explain it only needs a small script that does what I do manually:

https://we.tl/t-BJeUoiMtxR


We need something that does this:

automatically starts the "watch" file associated with the Player-Video as soon as the file is created in RAM: file -> "watch"

and in case you choose another video from YouTube

the RAM file: file -> "watch" must be overwritten or deleted or renamed.

Because the video stream is in real time and the file is always the one that is used.
Now I have also added GPU-Nvidia decoding to be a bit faster.

Do you have any ideas on how to do this, Thanks


Edited by white on 2022/11/13 16:57:21
Go to top


Re: A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


I found a solution,
and it is also easy to make.

But we need a little script on AmigaOS that does this:

The stream file is now downloaded directly to RAM:
is converted on the fly from FFmpeg (windows)

If I use Emotion-Player for example
It can display the video in real time while FFmpeg converts it on the fly.
The synthesis is this.

If I manually associate the downloaded file named "watch"
at Emotion-Player the video starts playing while FFmpeg converts it.

The question is this:
How do I associate with a script that tells the "watch" file I am downloading to associate with Emotion-Player?

I think it is easy to create, in practice I have to associate the file I am downloading to Emotion-Player and start playing it.

Thanks for any help.


separate note:
Once this is done, the next step would be to associate the downloaded file in RAM: "watch" for example to Odyssey and its internal Player and play it.
But that would be too much to ask for now

Go to top


Re: A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


@pjs
Hi,

I'm glad you answered,
in fact I would like to achieve more than just a windowed playback
to use AmigaOS 4.1 I use "winuae"
apart from some limitations the system is clearly fine.

The only sore point is the support for the video card.
So using Odyssey directly leads to video playback
much slower compared to YT.rexx - Aiostreams even though they work perfectly.

So I was looking for alternative solutions.
Also to do some experiments.

I found this:
https://github.com/atauenis/webone
(linux and windows and mac)

the project was created to support the playback of videos on YouTube with browsers that are no longer supported.

I made some changes and if you saw the video I was able to use ffmpeg for windows to convert the videos on the fly and retransmit them using the Amiga Browsers also using the Nvidia GPU

This succeeds because in this case using a proxy for example with Odyssey the program intercepts the link used within Odyssey and is then able to convert it in real time and pass it to FFPlay for Windows.

Actually the program should stream it directly within Odyssey but it can't because the author of the WebOne program didn't create something that works with Odyssey.

And of course it is almost impossible to report to him due to the fact that "Amiga" is not used by everyone.

The program is written in #C but actually with the configuration file and the batch script you can get a lot of extra things.

The fact that the program intercepts the Odyssey and converts the video on the fly is proof of this.

Here it would lack support for an Amiga Browser.
So it is normal that anyone who owns a real Amiga is not interested in this.

But I believe that with some modifications it can work directly with Odyssey using FFMpeg for Windows and therefore see videos smoothly.

But it would take someone to take a look at the program and see what needs to be fixed to make it compatible with Odyssey for example.

I point out that if I use a configuration recommended in the author's readme in reality the video starts inside Odyssey the video being loaded appears but then it stops.

Most likely because FFMpeg is unable to process the video inside Odyssey but I think it is due to some wrong "string" or something similar in the "WebOne" program because it does not provide Odyssey as a Browser.

So it works it's just that you should find the solution for it.

Thanks if anyone would like to try it out.

Its use is simple you choose the freely configurable proxy such as PORT and IP address.

Locally and then in Odyssey just choose http proxy and port.

I believe that a solution can be found very old browsers are supported.

requires:
NET 6.0 Runtime and later are required on server PC

Go to top


Re: A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


@sinisrus

I was able to fix it by simply causing an error in the ffmpeg program so that it hangs and cannot find the pipe:
but selecting a new video to watch it starts working again.

This with a dedicated server for the purpose should be overcome.

here the video of the test on 68k, clearly it also works on OS4 and with all Amiga browsers.
the video selected in the Amiga Browser is converted in real time.

https://we.tl/t-4sTGDZkAWW

Here you can see QT-Browser for OS4 practically not working with nothing but a little browsing.

But Youtube manages to work just the same.

a small example:
https://we.tl/t-AatbQvnQ8S

Go to top


Re: A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


@sinisrus

Hi,
Thanks for the answer,
this probably seems to be the solution.
I tried looking for:
Break Getvar (varffmpeg) associated with FFMpeg for windows but couldn't find anything.

You would know how to implement this function in a .bat script for Windows so I would have a chance to try it out.
Thank you

Go to top


A little help with FFMpeg and FFplay
Quite a regular
Quite a regular


Using "winuae" in full window "any browser is able to play videos on Youtube.
Sure actually FFPlay is used but it is shown inside the "Workbench" as a result to start is fine.

I have a problem with the script which is this:


I report it here in full:
@ youtube-dl "% 1" -o - | ffmpeg -protocol_whitelist file, http, https, tcp, tls -movflags + frag_keyframe + rtphint output.mp4 -y -i pipe: -vcodec libx264 -acodec mp3 -f mpegts pipe: | ffplay -i pipe:

The important part is this:
+ frag_keyframe + rtphint

this allows the streaming to start immediately as soon as it starts converting the first streams of the video so FFmpeg doesn't have to wait for the entire video conversion to be able to show it in FFPlay.

Now the problem that I can't solve is that if I open a second video it also loads the previous video so in practice it resumes the conversion of the first video as well.

I can't find any options in FFMpeg to be able to stop for example the first video.

Anyone have any idea how to do there is some command that allows to stop the first conversion when starting the second when closing FFPlay ??

Or can it be done differently ??

Thanks for any suggestions.

Here an example with the old IBrowse 2.4 for 68k
but it also works on amigaOS 4.1 with other browsers including QT-Browser

https://we.tl/t-JLUCrpdHfV


Edited by white on 2022/11/9 11:35:05
Edited by white on 2022/11/9 11:46:42
Go to top


Re: Timberwolf working AGAIN !
Quite a regular
Quite a regular


Streaming now works perfectly.

Even with multiple streams at the same time.

All in real time

Clearly now what's important would be to somehow make Odyssey understand that he is the one who has to reproduce it.

But at this point the program and the script should be seen by those who can do a script on the amigaOS side.

To this I don't know the solution
even if I have some "artisanal" ideas.

Taking into account that I am only using a proxy

I need to see how it works with http server *


and here the YT.bat script:
@ youtube-dl "% 1" -o - | ffmpeg -protocol_whitelist file, http, https, tcp, tls -movflags + frag_keyframe + separate_moof + omit_tfhd_offset + empty_moov output.mp4 -y -i pipe: -vcodec libx264 -acodec mp2 -f mpegts pipe: | ffplay -i pipe:

here the test, I hope it is interesting for those who understand what I would like to do:

https://we.tl/t-fzzd9pXAgx

Go to top


Re: E Possible with AmigaOS 4.1FE Open a listening port ?
Quite a regular
Quite a regular


the YT.bat is this:

@ youtube-dl "% 1" -o - | ffmpeg -protocol_whitelist file, http, https, tcp, tls -movflags + frag_keyframe + separate_moof + omit_tfhd_offset + empty_moov output.mp4 -y -i pipe: -vcodec libx264 -acodec mp2 -f mpegts pipe: | ffplay C: \ WebOne / output.mp4

clearly now it works I have to put everything together and find some ideal solution for winuae.

the important thing is that now ffplay talks with Odyssey

Go to top


Re: E Possible with AmigaOS 4.1FE Open a listening port ?
Quite a regular
Quite a regular


Ok
I was able to get YouTube-DL with FFPlay to work directly within winuae using Odyssey
Now any video I select with Odyssey through the browser is shown in Windows using FFPlay.
Of course now I have to work on the right codecs etc.

Now what I'd like to do is get exactly the opposite

here a small sample video:

https://we.tl/t-WL5kkmOTo2


any suggestion would be really very nice, to make a script that connects the Odyssey player to windows FFPlay

Go to top


E Possible with AmigaOS 4.1FE Open a listening port ?
Quite a regular
Quite a regular


It is possible to put with the basic AmigaOS 4.1FE system
open a door to listen?
If yes, how do you do it ?

Thank you

or can I use third-party programs that work and are updated for 4.1FE ?

Go to top


Re: Timberwolf working AGAIN !
Quite a regular
Quite a regular


I was re-reading this I wrote:
; Choose right codecs which are correct for client PC and media player.

What are the default codecs used by Odyssey when playing a video on YouTube?

I hope the question is correct

Go to top


Re: Timberwolf working AGAIN !
Quite a regular
Quite a regular


@pjs
Hi,

You don't know how much I appreciate your response, Thanks a lot,

YT.rexx and Aiostreams also work perfectly to watch streams on TwitchTV etc. with winuae

So the above programs work perfectly and I really wouldn't need anything else.
Indeed I always thank the authors for these programs.

I discovered this program and I was trying with Odyssey to make it work in real time:

WebOne (LINUX or WINDOWS)
https://github.com/atauenis/webone

it only supports proxy but I can adapt it on the fly with XAAMP to have http * support to work better with it.

Clearly my idea is dedicated to "winuae" and therefore I understand that there is obviously no interest in this in the forum and I understand it indeed I apologize if I insist sometimes

I managed to get the Youtube streaming stream in real time (while ffmpeg for windows) processes it all Emotion video players - FFPlay - MickJT-MPlayer - of amigaos 4.1 are able to play the video without problems and without problems of DRM

actually the hard part for me is getting it to work directly in Odyssey (Timberwolf cannot support this process).

I have tried very rudimentary with Odyssey directly within its Browser but I sometimes get a crash of "newlib" or Odyssey's response with this the Odyssey Internal Player has crashed.

Basically WebOne is written in "C" and obviously is not meant to be used with the Broser Odyssey, I imagine that someone experienced in this "Amiga" side would be able to easily modify it to use it with Odyssey as well.

Thanks again for your answer indeed any further advice would be very nice.

I leave here the part dedicated to WebOne for YouTube so maybe it is easier to understand what I mean, moreover the webone.conf file is easily editable and therefore once downloaded it would be enough to take a look inside to adapt it to YouTube for Odyssey.

; YouTube playback (youtube-dl & glue script)
[Edit: ^ (http: // www \. | Http: //) youtube.com/watch.*&dl]
OnHostOS = Windows
AddConvert = yt.bat
AddResponseHeader = Content-Type: video / MP2T

changing this line i get the youtube file download to start streaming and it works flawlessly.

[Edit: ^ (http: // www \. | Http: //) youtube.com/watch.*]

instead I would like to try to make it work directly in the Odyssey Browser.





[Edit: ^ (http: // www \. | Http: //) youtube.com/watch.*&dl]
OnHostOS = Linux
AddConvert = yt.sh
AddResponseHeader = Content-Type: video / MP2T

[Edit: ^ (http: // www \. | Http: //) youtube.com/watch.*&dl]
OnHostOS = macOS
AddConvert = yt.sh
AddResponseHeader = Content-Type: video / MP2T


; YouTube playback (via original ViewTube)
[Edit: ^ (http: // www \. | Http: //). *. Googlevideo.com/]
AddConvert = ffmpeg
AddConvertArg1 = -vcodec mpeg2video -acodec mp2 -f mpegts
AddResponseHeader = Content-Type: video / MP2T
; Choose right codecs which are correct for client PC and media player.

My modified YT.bat is this is working but it should probably be improved even more.

@rem Download a YouTube video and return it as a stream of MTS with MPEG2 data.
@rem Requires youtube-dl.exe and ffmpeg.exe in same folder as the batch and WebOne.
@ youtube-dl "% 1" -o - | ffmpeg -protocol_whitelist file, http, https, tcp, tls -movflags + frag_keyframe + separate_moof + omit_tfhd_offset + empty_moov output.mp4 -y -i pipe: -vcodec libx264 -acodec mp2 -f mpegts pipe:

Go to top


Re: Timberwolf working AGAIN !
Quite a regular
Quite a regular


in summary what i would like to do is use with winuae through ffmpeg with ffplay with acceleration and nvidia GPU support at least in the browser.
Actually the ultimate goal would be this

But I still haven't figured out how to possibly enable ffplay to play eg YouTube videos through Odyssey.

ffmpeg works fine
in reality I can make him talk to Odyssey but I get an error with the internal player of Odyssey

These are my usual crazy ideas for experimenting

A simple quick explanation would be enough for me

But who to ask?

Go to top



TopTop
« 1 ... 16 17 18 (19) 20 21 22 ... 40 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project