Jump to content

[REL] Videoplayback resource


SDraw

Recommended Posts

Current resource allows you to play custom videofile.

How to create videofile:

1. You need to separate each frame of video you like. For this you can use any video editing software that can do it (I prefer Sony Vegas). Remember, that FPS should be integer.

oTapiN2.png

I suggest you to keep video resolution below 320x240 because you can get EXTREMELY large videofile at the end.

All frames should be in '/frames/' folder.

2. Separate audiotrack and put in in resource folder.

3. Change first three variables in 'video_gen_server.lua' to yours.

4. Uncomment server script line in 'meta.xml'

5. Start resource.

6. Wait for video creating.

7. Comment server script line in 'meta.xml', uncomment file line in 'meta.xml'

8. Restart resource.

Videofile structure (quite simple): http://i.imgur.com/kxl05a2.png

Client-side commands: vload , vplay, vstop, vrewind, vunload.

Warnings:

1. This is demonstration resource. It's not for everyday using.

2. If you do something wrong, you probably will crash your game at playback.

Download: Github

Screenshot http://i.imgur.com/5CQwG2p.png

Video (of video): https://www.youtube.com/watch?v=bmTcHw3_KRc

If you can't create videofile, you can use this file for demonstration.

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...