Capturing video content, improve performance

Capturing video content, improve performance

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
Sereiya
Posts: 63
Joined: 28 Aug 2009, 18:03

Capturing video content, improve performance

Post by Sereiya » 01 Apr 2014, 01:36

Hello there,

I was inactive for quite a while (3 years or so) because of personal problems, so it's quite possible I'm completely out of date.

I'm looking for the best method to capture scenes to make a new video (my last one is quite old, I bet I can do it better now!). I actually use nVidia Shadowplay and Mirillis Action! to capture footage, but Shadowplay doesn't work with Spring. Action is quite good, but I remember there was a built-in capture function in Spring using CTRL + F10 or something like this. Then a small window pops up to set some encoding stuff. Is this function still there, anywhere?

Also, is there a LUA for camera waypoints or smoothing camera? CTRL - F4 / F5 is quite okay, but I miss a waypoint function for my purposes (and my coding skills are a bit rusty to do it by myself).

3 Years ago, it was a have-to-do to deactivate the multithreading optimization in the nvidia system settings to improve the frame rate. Is this still up to date? Also there where an extra executable to start spring multithreaded, I guess it's already built-in in spring.exe. How do I activate it? (My loadscreen doesn't mention something like multiple threads)
Every tip to improve and smooth the framerates are welcome (using a GTX 780, want to capture with full graphic settings in 1080p with 60 frames for some cool slowmotion effects)

That's it - I apologize for all the grammar mistakes I made. :lol:

greetings,
Sereiya
0 x

User avatar
smoth
Posts: 22295
Joined: 13 Jan 2005, 00:46

Re: Capturing video content, improve performance

Post by smoth » 01 Apr 2014, 01:40

I use fraps, Forboding does streaming online.
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Capturing video content, improve performance

Post by knorke » 01 Apr 2014, 02:33

built-in capture function:
Seems not bound to ctrl-f10 anymore but still exists.
The command is: /createvideo

settings:
http://springrts.com/wiki/Springsettings.cfg

Yes, spring multithreaded is now "built in" and always active.
It does not give any special notice in load screen.

Recording with lower game speed = more frames.
Interesstig setting: http://springrts.com/wiki/Springsetting ... itchAdjust

a LUA for camera waypoints:
http://code.google.com/p/zero-k/source/ ... corder.lua
0 x

User avatar
Sereiya
Posts: 63
Joined: 28 Aug 2009, 18:03

Re: Capturing video content, improve performance

Post by Sereiya » 01 Apr 2014, 03:10

That sounds perfect, especially The Pitch Adjustement and LUA widget will do great work. Thanks! :-)
0 x

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Capturing video content, improve performance

Post by CarRepairer » 01 Apr 2014, 03:54

knorke wrote:a LUA for camera waypoints:
http://code.google.com/p/zero-k/source/ ... corder.lua
This widget will work fine in games that use epicmenu (ZK, Evo, The Cursed). Otherwise a small modification will be needed to trigger the recording and playback functions (lines 120 and 124). Would need to create a couple of actionhandler actions and then either type /luaui startrecording or bind a key to it.
0 x

User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Re: Capturing video content, improve performance

Post by Floris » 01 Apr 2014, 07:07

Thats a nice old video! What are you planning on making?
If you dont have a determined answer yet.... In a few months the BA remake will be done, but it's going to need promotional video. Maybe the job for you, in cooperation with the devs.


I suggest to use OBS. It can just recently encode using not the just only the CPU, be also with the inten igp or nvidia gpu.

CPU: x264,
INTEL GPU: Quick Sync,
NVIDIA: NVENC (same encoder as shadowplay uses, but shadowplay also has direct access to the screenbuffer aswell)

The CPU encoder is best, but also cost most. The other ones dont cost your much, because they are hardware encoders inside the gpu.

Also, just use a high bitrate and modest encoding quality to be able to capture at 60fps smoothly without much loss.

Happy fiddling!
0 x

User avatar
Sereiya
Posts: 63
Joined: 28 Aug 2009, 18:03

Re: Capturing video content, improve performance

Post by Sereiya » 01 Apr 2014, 11:53

Floris wrote:Thats a nice old video! What are you planning on making?
I thought about making a video about BA Reloaded, but since the last dev release I tried was quiet slow I was unsure about it. Anyway, it would be quiet foolish to use the current BA version, wouldn't it?

I think I'll visit #badev for that issue.
0 x

User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Re: Capturing video content, improve performance

Post by Floris » 01 Apr 2014, 12:24

Yea making video for current BA is kinda silly. Although, making a video for BAR might be too. It always takes longer than anticipated.

The re-modelling is near completion. YEY
(But still lots of work lesft to do: animations, particle fx, shaders, GUI, and finetuning) All might differ too much to do a comprehensive video atm. But if you're fully aware... go ahead!
0 x

User avatar
Beherith
Moderator
Posts: 4932
Joined: 26 Oct 2007, 16:21

Re: Capturing video content, improve performance

Post by Beherith » 01 Apr 2014, 12:31

Sereiya wrote:
Floris wrote:Thats a nice old video! What are you planning on making?
I thought about making a video about BA Reloaded, but since the last dev release I tried was quiet slow I was unsure about it. Anyway, it would be quiet foolish to use the current BA version, wouldn't it?

I think I'll visit #badev for that issue.
Please elaborate on how you found it much slower, I'm genuinely interested.

Also worthy of noting is that spring has a feature where on /createvideo it will make a single draw frame per sim frame, so you can have smooth videos. I doubt this works well with online play, but it should be a viable and accurate alternative when the frame rate would be too low to capture proper video.
0 x

User avatar
Sereiya
Posts: 63
Joined: 28 Aug 2009, 18:03

Re: Capturing video content, improve performance

Post by Sereiya » 01 Apr 2014, 12:54

Floris wrote:The re-modelling is near completion. YEY
(But still lots of work lesft to do: animations, particle fx, shaders, GUI, and finetuning) All might differ too much to do a comprehensive video atm. But if you're fully aware... go ahead!
Perhaps it would be better to do a little teaser first and full-length trailer later (Maybe Beherith can say something to that)? I just started the current version from the test server to do a summary.
Beherith wrote:Please elaborate on how you found it much slower, I'm genuinely interested.
I admit, the last time I tried it was half a year ago or so. The current version runs pretty fine, it just hangs sometime and needs time at the beginning to run smooth. But I have similar problems with lags in other games, so I guess it's my hard drive. I'll work with my SSD for the recording.
0 x

abma
Spring Developer
Posts: 3535
Joined: 01 Jun 2009, 00:08

Re: Capturing video content, improve performance

Post by abma » 02 Apr 2014, 08:42

fyi: all all current stable releases have a bug which makes spring very slow when showing a replay:

http://springrts.com/phpbb/viewtopic.php?f=1&t=31503 (a hotfix version for 96.0 is available)

setting LogFlush = 0 in config could also slightly help with these hangs.
0 x

zer_ver
Posts: 19
Joined: 14 Nov 2013, 17:34

Re: Capturing video content, improve performance

Post by zer_ver » 02 Apr 2014, 23:50

I had recent success with CamStudio Recorder and their lossless codec, capturing 720p content with only minor stutter. The downside is that youtube really destroys the picture quality for this type of high-action content. It is hard to believe it was originally uploaded as a 400MB lossless AVI.

I guess the optimal solution would be to have a hardware recording device directly hooked up to the monitor port.

If a moderator removes a link from your post, do not add it back in.

--FLOZi
Last edited by zer_ver on 04 Apr 2014, 22:12, edited 2 times in total.
0 x

User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Re: Capturing video content, improve performance

Post by Nemo » 04 Apr 2014, 00:50

If you're on windows, http://obsproject.com/ worked great for me when making commented replays of S44 games -- it can stream live to various video services, or record to a local disk.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14550
Joined: 17 Nov 2005, 02:43

Re: Capturing video content, improve performance

Post by Forboding Angel » 04 Apr 2014, 01:45

Obs is fairly crap. I highly suggest FFSplit: http://www.ffsplit.com/
0 x

User avatar
AntiAllez
Posts: 105
Joined: 06 Mar 2012, 18:22

Re: Capturing video content, improve performance

Post by AntiAllez » 05 Apr 2014, 13:30

i like that obs crap ;P

is there a way to reduce artifacts? with higher bitrate, different filter and 720p scale it looks even better, any other tips?
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14550
Joined: 17 Nov 2005, 02:43

Re: Capturing video content, improve performance

Post by Forboding Angel » 06 Apr 2014, 03:59

Higher bitrate usually. 2500 should do the trick pretty nicely.
0 x

User avatar
Sereiya
Posts: 63
Joined: 28 Aug 2009, 18:03

Re: Capturing video content, improve performance

Post by Sereiya » 06 Apr 2014, 14:00

Maybe this is helpful. (A video recorded with Action! and high settings. Literally no artifacts)

Code: Select all

General
Complete name                            : I:\spring 03-04-2014 01-33-36.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
Format profile                           : OpenDML
File size                                : 8.20 GiB
Duration                                 : 4mn 58s
Overall bit rate                         : 236 Mbps

Video
ID                                       : 0
Format                                   : FICV
Codec ID                                 : FICV
Duration                                 : 4mn 58s
Bit rate                                 : 236 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 60.000 fps
Bits/(Pixel*Frame)                       : 1.897
Stream size                              : 8.20 GiB (100%)
(You shouldn't use FICV codec. It's crap)
0 x

User avatar
AntiAllez
Posts: 105
Joined: 06 Mar 2012, 18:22

Re: Capturing video content, improve performance

Post by AntiAllez » 12 Apr 2014, 11:52

i tried it with different settings which can be adjusted with obs. nothing really helped until higher bitrate. my last satisfactory try was with 15k (kb/s) on 720p, the result was ~50mb for a 1 minute video. seems, such high resolution isnt suitable for me with my low bandwidth.
0 x

User avatar
Sereiya
Posts: 63
Joined: 28 Aug 2009, 18:03

Re: Capturing video content, improve performance

Post by Sereiya » 22 Jun 2014, 22:27

I'm looking for some replays of BA:R. There was a site where autohosts uploaded replays to (also linked in #main), is it still online?
Also, I need some map suggestions for a contrived 32 vs. 32 Match. I want to show how MASSIVE multiplayer online RTS should be. 8)
0 x

User avatar
Silentwings
Moderator
Posts: 3565
Joined: 25 Oct 2008, 00:23

Re: Capturing video content, improve performance

Post by Silentwings » 22 Jun 2014, 22:30

replays.springrts.com (but BAR is in development, so the few replays that exist of it are mostly 1v1 or testing games).
0 x

Post Reply

Return to “General Discussion”