Русский New site

Advanced search

[ New messages · Forum rules · Members ]
Page 1 of 11
Forum » SpaceEngine » Feedback and Suggestions » Video capture to single file (Making SE support video compression in any format on the fly)
Video capture to single file
midtskogenDate: Friday, 04.01.2013, 20:53 | Message # 1
Star Engineer
Group: Users
Norway
Messages: 1672
Status: Offline
It would be very useful if SE had the option to write video capture to a single file (in particular when writing uncompressed frames). That is, append every frame to the file rather than creating new files all the time (without closing the file between writes). I would use this to create a named pipe which SE will write into while an H.264 encoder reads from the pipe. That way it will be possible to record H.264 (or whatever) directly and save a lot of disk IO and disk space. A decent CPU should be able to encode H.264 1080p at 100 fps and still have a few cores left for SE.

Alternatively, SE could incorporate video encoders and output compressed video natively, but I strongly prefer the Unix way and have separate processes for rendering and encoding, which is much more flexible. And much easier to implement in SE. Ideally, the file to write to could be specified in main.cfg.

I don't know if this would be useful in Windows (I've only used Linux for the past 20 years and more, and I'm pretty Windows illiterate - I don't even know whether Windows supports interprocess communication through files), but it will work well in Linux. I just tried to "mkfifo screenshots/capture/00000000.tga; display screenshots/capture/00000000.tga & ./SpaceEngine.exe" and sure enough the first frame popped up once I began recording. This will hardly take more than a few minutes to implement, and it opens up many new possibilities. One could even easily set up a live streaming event of SE this way.





NIL DIFFICILE VOLENTI


Edited by midtskogen - Friday, 04.01.2013, 20:54
 
Forum » SpaceEngine » Feedback and Suggestions » Video capture to single file (Making SE support video compression in any format on the fly)
Page 1 of 11
Search: