mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
4c2066601a
Fixed up the -netquake / -spasm / -fitz args slightly, should actually be usable now. sv_mintic 0 is now treated as 0.013 when using nqplayerphysics, to try to make it smoother for nq clients. Preparing for astc's volume formats. Mostly for completeness, I was bored. Disabled for now because nothing supports them anyway. Fix broken mousewheel in SDL2 builds. Fix configs not getting loaded following initial downloads in the web port/etc. Make the near-cloud layer of q1 scrolling sky fully opaque by default (like vanilla). Sky fog now ignores depth, treating it as an infinite distance. Fix turbs not responding to fog. r_fullbright no longer needs vid_reload to take effect (and more efficient now). Tweaked the audio code to use an format enum instead of byte width, just with the same values still, primarily to clean up loaders that deal with S32 vs F32, or U8 vs S8. Added a cvar to control whether to use threads for the qcgc. Still disabled by default but no longer requires engine recompiles to enable! git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5683 fc73d0e0-1445-4013-8a0c-d673dee63da5 |
||
---|---|---|
.. | ||
msvc_libc | ||
avaudio.c | ||
avdecode.c | ||
avencode.c | ||
readme.txt |
video encoder/decoder using the ffmpeg avformat/avcodec libraries. The video decoder plugs into the media decoder functionality on media with an 'av:' or 'avs:' prefix, specifically: The console command 'playfilm av:foo.mpg' will start playing back $BASEDIR/$GAMEDIR/foo.mpg fullscreen (or from inside paks/pk3s, but make sure seeking is fast, so avoid compression in pk3s...). The console command 'playfilm avs:c:\foo.mpg' will start playing back c:\foo.mpg fullscreen. The shader term 'videomap avs:c:\foo.mpg' will play the video upon the shader. This can be used with csqc+drawpic, csqc+beginpolygon, or placed upon walls. It theoretically supports any file that the avformat/avcodec libraries support, but has no ability to pass arguments, thus playback is likely limited only to files which require no explicit overrides. The video encoder plugs into the existing capture command. Or something. I don't know. Its all basically junk. The container type is guessed by the file name used. avplug_format says which container format to use. If empty, will be guessed based upon file extension. See ffmpeg docs for more info. avplug_videocodec says which video codec to use. If empty, will be guessed based upon the container type ('libx264' for h264 compression). See ffmpeg docs for a full list. avplug_videobitrate says what bitrate to encode at. Default 400000. At the time of writing, audio is not implemented. To check if the plugin is loaded, use the plug_list command. For streaming, you can try this: avplug_format mpegts avplug_videocodec mpeg4 capture udp://PLAYERIP:1234 You can then run VLC or some such app and tell it to listen on port 1234. You might be able to find some other protocol/codec that works better for you. Consult the ffmpeg documentation for that, if you can find something that's actually readable.