Page 1 of 1
[Idea] YouTube integration mod ?

Posted:
Tue Dec 31, 2013 16:46
by jp
Hello.
Just an idea... it's technically possible to integrate the videos of YouTube in Minetest, by the intermediary of a big screen ?
It would be nice to build a cinema, for example...
Regards,
JP

Posted:
Thu Feb 20, 2014 20:55
by Lukeking
jp wrote:Hello.
Just an idea... it's technically possible to integrate the videos of YouTube in Minetest, by the intermediary of a big screen ?
It would be nice to build a cinema, for example...
Regards,
JP
sorry, but it's impossible with the current engine of minetest because the frame rates are too slow for viewing videos ingame
i also asked webdesigner97 for this question
have a nice day :)
Lukeking

Posted:
Thu Feb 20, 2014 21:03
by Lukeking
But I think this is possible for MT:
http://www.computercraft.info/This will be a nice feature for MT too :)

Posted:
Thu Feb 20, 2014 21:09
by sfan5
This is not possible with the current modding api.

Posted:
Thu Feb 20, 2014 21:32
by rubenwardy
With irrlicht, the 3d engine minetest uses, you can render to textures.
So it is possible, just not with the modding API.
However, I suggest the playing bypasses the server, and the client just plays it. The server can tell it what to play, though.

Posted:
Thu Feb 20, 2014 21:57
by Casimir
You can download a video, turn every frame into an png image and combine them into an animated texture. I tried it with my gemalde mod some time ago, in general it works but takes very long to load.

Posted:
Fri Feb 21, 2014 02:01
by Inocudom
Casimir wrote:You can download a video, turn every frame into an png image and combine them into an animated texture. I tried it with my gemalde mod some time ago, in general it works but takes very long to load.
And YouTube videos are bound to have tons of frames.

Posted:
Fri Feb 21, 2014 07:10
by webdesigner97
Downloading the textures from a heavily-modded server takes a looooong time. Videos won't be faster ;)

Posted:
Fri Feb 21, 2014 08:00
by jp
It should found a way to externalize the loading of the videos. Not hosting them but to have a direct linking with YouTube and a converter script in game to turn in animated texture.
I know, I'm dreaming...

Posted:
Fri Feb 21, 2014 09:33
by thetoon
jp wrote:It should found a way to externalize the loading of the videos. Not hosting them but to have a direct linking with YouTube and a converter script in game to turn in animated texture.
I know, I'm dreaming...
Easier would be to externalise loading AND converting. As said up there, convert your videos to animated PNGs and host them somewhere (HTTP). Then develop a Lua mod that will fetch them.

Posted:
Fri Feb 21, 2014 10:53
by Lukeking
thetoon wrote:jp wrote:It should found a way to externalize the loading of the videos. Not hosting them but to have a direct linking with YouTube and a converter script in game to turn in animated texture.
I know, I'm dreaming...
Easier would be to externalise loading AND converting. As said up there, convert your videos to animated PNGs and host them somewhere (HTTP). Then develop a Lua mod that will fetch them.
This sounds realistic
- external loading and converting videos
- upload them to a certain website (maybe accessable or not for external users)
- import picture frames + sound file
- ..lua-mod is listing/updating videos' list
- sitting back and enjoy watching videos

Posted:
Fri Feb 21, 2014 10:59
by jp
External loading and converting a video on each request of player. With a loading bar under the screen, for example.

Posted:
Fri Feb 21, 2014 13:32
by sfan5
This won't work because:
1) Resources can not get sent to the client at runtime, everyone would have to rejoin to add another video.
2) Everyone would need to download every video when joining, that would take quite some time
3) A 3 minute video with 30 fps in (wide) 480p resolution (and R8G8B8 pixel fmt) would be 6.17 GB uncompressed (you would need to have atleast this much video ram & normal ram) and 1.40 GB compressed (my tests resulted in 4.34x smaller files when using PNG over uncompressed), downloading 1.40 GB would take 15 minutes and 55 seconds with a 15 Mb/s connection

Posted:
Fri Feb 21, 2014 15:44
by RealBadAngel
sfan5 wrote:This is not possible with the current modding api.
Huh? Have you tried FORTH computer from Technic game? :)

Posted:
Fri Feb 21, 2014 20:31
by sfan5
RealBadAngel wrote:sfan5 wrote:This is not possible with the current modding api.
Huh? Have you tried FORTH computer from Technic game? :)
I was referring to the youtube integration idea.