Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
40 user(s) are online (28 user(s) are browsing Forums)

Members: 0
Guests: 40

more...

Headlines

Forum Index


Board index » All Posts (white)




Re: A little help with FFMpeg and FFplay
Not too shy to talk
Not too shy to talk


@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 ?
Not too shy to talk
Not too shy to talk


@ktadd
Thanks for the reply.

Go to top


Re: Odyssey which internal video player do you use and which codec ?
Not too shy to talk
Not too shy to talk


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 ?
Not too shy to talk
Not too shy to talk


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
Not too shy to talk
Not too shy to talk


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
Not too shy to talk
Not too shy to talk


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
Not too shy to talk
Not too shy to talk


@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
Not too shy to talk
Not too shy to talk


@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
Not too shy to talk
Not too shy to talk


@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
Not too shy to talk
Not too shy to talk


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 !
Not too shy to talk
Not too shy to talk


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 ?
Not too shy to talk
Not too shy to talk


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 ?
Not too shy to talk
Not too shy to talk


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 ?
Not too shy to talk
Not too shy to talk


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 !
Not too shy to talk
Not too shy to talk


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 !
Not too shy to talk
Not too shy to talk


@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 !
Not too shy to talk
Not too shy to talk


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


Re: Timberwolf working AGAIN !
Not too shy to talk
Not too shy to talk


Here is the video
if anyone wants to see it and help me understand how I can work better for me it would be very nice
to get it to work directly in Odyssey

thank you

https://we.tl/t-rHLv1aj7So

Go to top


Re: Timberwolf working AGAIN !
Not too shy to talk
Not too shy to talk


I do a little update
I found a way to watch videos in real time
the conversion happens on the fly but currently only with readers (all)
Emotion-- FFplay-- MickJT-Player--

in practice ffmpeg converting them can be seen in real time
immediately without waiting for the complete conversion.

at the moment i'm only using the proxy as soon as i have time i put on apache so there is full support for http *

this is the YT.bat I'm using:

@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:

Later I make a video
Currently only windows edge spoffing in odyssey latest version seems to be supported

For the moment I can't show it inside Odyssey directly but it can open the videos but only using an external video player but I'm working on it but this obviously concerns "winuae"

Maybe the explanation is not very clear but it works.

Of course, there are great scripts like Yt.rexx and Aiostreams that do the same and even better.

But the purpose is to be able to do it directly with the Browser

Any help would be very interesting to me.
Thank you.

Timberwolf is currently excluded from these tests.

Go to top


Re: OBS And AmigaOne / AmigaOS4
Not too shy to talk
Not too shy to talk


in this video
you can see it working with Morphos without using OBS but simply recording directly with the AverMedia record button
with DVI-HDMI cable with the PoweBook

video link expires in 7 days (unfortunately)

clearly in this case to put a quick video I compressed it in .mkv
otherwise the standard format used by AverMedia and .mov

https://we.tl/t-MmQTTSZCgp


Edited by white on 2022/10/29 16:06:12
Go to top



TopTop
(1) 2 3 4 ... 22 »




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project