Page 1 of 1

Videos in Spring?

Posted: 25 Jul 2012, 04:32
by gajop
Would anyone else care to see Spring being capable of supporting videos?
As far as use cases go, I'm mostly thinking about missions/scenarios, as I can't really recall any game that extensively uses videos in skirmish mode (RA3 sometimes has AI videos appear in skirmish once you explore them/defeat them).

I've found this: http://stackoverflow.com/questions/6495 ... gl-texture, which doesn't seem all that complex to do.

I'd mostly like to know, from a dev perspective, is there any known issue that may make this much harder?

I could potentially try to do this myself, although probably won't be able to prioritize on it for this/next month, but I'd like to see if anyone would care for this.

I assume adding some unsynced lua read&control wouldn't be too hard, either. f.e

Code: Select all

Spring.LoadVideo(path, x, y, width, height) -> videoId
Spring.StartVideo(videoId)
Spring.StopVideo(videoId)
Spring.GetCurrentVideoPosition(videoId)
...
etc.

Re: Videos in Spring?

Posted: 26 Jul 2012, 05:09
by Forboding Angel
Spring used to have a built in recorder thingy (does it still?).

Tbh, fraps and spring don't get along well at all. Using fraps with spring tanks fps (even though you can't tell from the resulting video) and I would like to see it fixed.

I can record full 1080p in nuclear dawn without any noticeable performance hit. For some reason, in spring, I'll get maybe 15 fps (even though fraps and spring both display 30+ on the meters).

Imo, I think it's an issue with spring more than anything.

Re: Videos in Spring?

Posted: 26 Jul 2012, 05:18
by gajop
This has nothing to do with recording, it's about the ability to embed and play videos inside of spring.

Re: Videos in Spring?

Posted: 26 Jul 2012, 14:40
by FLOZi
gajop wrote:This has nothing to do with recording, it's about the ability to embed and play videos inside of spring.
Forb is is illiterate, give him a break. :P

Re: Videos in Spring?

Posted: 27 Jul 2012, 04:31
by Forboding Angel
gajop wrote:This has nothing to do with recording, it's about the ability to embed and play videos inside of spring.
It would have been clearer had you actually said that. Lurker has done it. You should talk to him.

Re: Videos in Spring?

Posted: 27 Jul 2012, 16:18
by knorke
lurkers thread:
http://springrts.com/phpbb/viewtopic.ph ... =video+lua
not much info though and links are dead.

Re: Videos in Spring?

Posted: 28 Jul 2012, 03:27
by Forboding Angel
Well he had it all written, and the framework for it was in evo at one point. Shoot him a message, I imagine he prolly still has it lying around. Lurker isn't generally one to be careless with things he has created.

Re: Videos in Spring?

Posted: 11 Sep 2012, 18:29
by albator
as far as i remember Floris did some nice videos with fraps and got no pb with fps and afair when I talk about it about the fps issue, he manage to find a nice codec to solve the issue.

Maybe you should ask him

Re: Videos in Spring?

Posted: 11 Sep 2012, 19:11
by smoth
knorke wrote:lurkers thread:
http://springrts.com/phpbb/viewtopic.ph ... =video+lua
not much info though and links are dead.
Lurkers stuff worked but had serious issues, IIRC a massive hang and all the frames were stored as images.

Re: Videos in Spring?

Posted: 11 Sep 2012, 19:21
by Floris
I didn used Fraps but "Taksi Desktop Video Recorder". (and FFDSHOW codec, but that aint that important I guess)

And... because I didnt have an uber pc I only set to record with 6..7 fps and then speed that up to x4 to make it around 25..30 fps.
I guess I also could record at say 10...15fps fairly well, but gamespeed x3...x4 is more interresting for a full game to view anyway.

Also because I was live playing myself too, and with slightly higher quality settigns too. Make sure to put smoothScroll and smoothCamera widgets on.


(my laptop specs: i7 1.6Ghz, HD4670, 4 GB ram, SSD)

Re: Videos in Spring?

Posted: 11 Sep 2012, 20:16
by Funkencool
gajop wrote:This has nothing to do with recording, it's about the ability to embed and play videos inside of spring.

Re: Videos in Spring?

Posted: 13 Sep 2012, 02:45
by Forboding Angel
I told you, the original post is poorly worded.

Re: Videos in Spring?

Posted: 13 Sep 2012, 03:48
by knorke
nonsense. people just do not read before posting.

Re: Videos in Spring?

Posted: 13 Sep 2012, 05:28
by Forboding Angel
I read it and I still misunderstood what he was saying.

Re: Videos in Spring?

Posted: 19 Sep 2012, 13:32
by AF
I would like to see Lurkers work