Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
|
| 20 Mar 2015 04:27 PM |
I've been working on a thing called VidLib which basically allows you to add YouTube videos in ROBLOX games.
I've finally finished a small DEMO with audio. You can view it here: http://www.roblox.com/VidLib-place?id=228316219
NOTE — Right now the speed and quality are pretty bad, that's because this is a demo and I haven't had a chance to compress or optimize anything yet.
How it works:
VidLib connects to a remote server asking it to download and process the YouTube video specified. The remote server then compresses the video and formats it for VidLib.
Now, buffering begins. The game server floods the remote server asking it for pixel data on each frame from the video. It is limited to 18 frames per second, 40p resolution at this time. It will soon allow up to 240p resolution, and up to 25 frames per second.
While the server is downloading the video, the game client (player) will send buffer requests to the server. The server will send back any frames it has. This allows the client and server to be downloading data at the same time.
When the client finishes buffering, you can play the video. It renders each pixel using the appropriate RGB values. Audio is synced in real-time.
Known problems which will be fixed soon:
1. The audio can become out-of-sync to 1/2 of a second due to lag 2. Last pixel column (very right of player) has partial or broken pixel data.
There is also slight lag which I am working on fixing. |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
|
| 20 Mar 2015 05:43 PM |
B1.
Also feedback would be appreciated. |
|
|
| Report Abuse |
|
|
| |
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
|
| 20 Mar 2015 07:48 PM |
| Definitely will, it's gonna be a challenge to get high-quality videos implemented but it will happen. |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
| |
|
Exine
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 3783 |
|
|
| 20 Mar 2015 10:04 PM |
Keep up the good work. You're one hell of a scripter.
Who's Exine? |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
|
| 20 Mar 2015 10:53 PM |
Thanks, but I think I'm just an average scripter. :P Most of this is possible because I am best with PHP. |
|
|
| Report Abuse |
|
|
pundsey
|
  |
| Joined: 05 May 2012 |
| Total Posts: 39 |
|
|
| 20 Mar 2015 11:28 PM |
i messed around with the design of the gui :l
ITS THE BEST! Keep up the good work! *Gives pat on your back* |
|
|
| Report Abuse |
|
|
|
| 20 Mar 2015 11:29 PM |
| Great work! Excited to see improvements :) |
|
|
| Report Abuse |
|
|
pundsey
|
  |
| Joined: 05 May 2012 |
| Total Posts: 39 |
|
|
| 20 Mar 2015 11:38 PM |
| Seriously though, this is the coolest thing ive ever seen since prop hunt was remade! |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
| |
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
| |
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
| |
|
|
| 22 Mar 2015 12:23 AM |
| I see that the audio uses roblox audio, is it possible to pull the audio from the video itself? |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
|
| 22 Mar 2015 12:25 AM |
Sadly, no. Fortunately it's very easy to convert a YouTube video into an MP3 audio file. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2015 12:28 AM |
| That would cost a lot to upload say 7 audio files for 14 minutes, I really enjoy this, and think that it is cool you are using httpservice, but I don't see the point, unless your parent's dont allow you on youtube, just roblox or something like that, I hope this doesn't make you want to end your progress, but keep up your great work, I can't wait till HD, and faster download speeds. |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
|
| 22 Mar 2015 12:32 AM |
One example is putting a full-screen intro in the beginning of a game. This same technology can soon allow .GIF images to be added in-game, too. |
|
|
| Report Abuse |
|
|
llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
|
| 22 Mar 2015 04:04 AM |
This is awesome...
I love it, I can't believe somebody made this. Also you should try improving the quality a lot More. |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
|
| 22 Mar 2015 03:12 PM |
| Thanks, I will be improving quality a lot. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2015 03:37 PM |
Wow, nice!
I'd recommend utilizing a buffering sorta thing, so it can start playing before it's completely downloaded.
~Win |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
|
| 22 Mar 2015 03:38 PM |
Thanks Winception. Yes, I do intend to do that, but first I need to improve download speed. :) |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
| |
|
|
| 24 Mar 2015 09:57 AM |
| This is epic. This should be on the blog :3 |
|
|
| Report Abuse |
|
|
| |
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
| |
|