Posted by esdf @ 08:23 CST, 13 January 2012 - iMsg
Is there a way to export/transcode ql demos to a video format simply using command line interface, no gui, no nothing? I'd need it to be able to convert demos to videos on server, instead of uploading huge raws to the server.
Yes, I do demo downloading/uploading and video rendering/uploading using only command line tools.
However, there is no magical exporting or converting a demo file to video/audio :) The game must be run and graphics/sound engines need to produce video and audio frames, the same thing as you would do manually by running a demo and capturing with fraps or some other software.
T1E already listed some of the available libraries you can use to compress the raw video/audio to a movie file.
My rendering software has 3 parts: runner, streamer, and encoder. Runner runs quakelive with the streaming library injected in the process and instructs it to play a demo. Streamer captures video/audio frames and writes it to a communication pipe. Encoder runs in an another process and reads the pipe for data, compresses it and writes it to a movie file.
The renderer is not really command line, because quakelive needs a window to render video to, but it can be hidden. The played audio can be replaced by the same length of silence (you still need to play it for things to remain in sync).
The rendering of a demo is setup by a ruby script, that downloads the demo and runs the rendering program with required parameters.
There is also an another shell script that can take a list of demo ids and can run the rendering script for each of them.
hmm thanks man, my only problem is that my upload rate is so shit (25kb/s) that i can't upload a thing. + my internet breaks every time i upload so that's why i wanted to know how it's done from cli.
you really need a higher bandwidth if you plan to upload movies/demos more often than just sometimes (you might be able to change to isp products from your current provider that are aimed at small companies)
or you could leave the pc running and limit the upload down so you don't experience any downsides
well problem is t-com is only isp available in my part of town, and they're fuckign expensive. i'm payin for 4/256 line i have now 25€/mo, and 20mbit line doesnt even have 1mbit upload yet it costs around €50/mo