fteqw/plugins/avplug
Spoike b9cd6ec91b openxr plugin: tweaked - inputs should be working properly now, and are visible to csqc. subject to further breaking changes, however.
_pext_vrinputs: added cvar to enable vr inputs protocol extension allowing vr inputs to be networked to ssqc too. defaults to 0 for now, will be renamed when deemed final.
updates menu: the prompt to enable sources is now more explicit instead of expecting the user to have a clue.
updates menu: added a v3 sources format, which should be more maintainable. not final.
updates menu: try to give reasons why sources might be failing (to help blame ISPs if they try fucking over TTH dns again).
presets menu: no longer closes the instant a preset is chosen. some presets have a couple of modifiers listed. force the demo loop in the background to serve as a preview.
prompts menus: now does word wrapping.
ftemaster: support importing server lists from other master servers (requested by Eukara).
server: try to detect when non-reply inbound packets are blocked by firewalls/nats/etc (using ftemaster to do so).
qcvm: added pointcontentsmask builtin, allowing it to probe more than just world, with fte's full contentbit range instead of just q1 legacy.
qcvm: memfill8 builtin now works on createbuffer() pointers.
qcvm: add missing unsigned ops. Fixed double comparison ops. fixed bug with op_store_i64. added missing OP_LOADP_I64
qcc: added '#pragma framerate RATE' for overriding implicit nextthink durations.
qcc: fixed '#pragma DONT_COMPILE_THIS_FILE' to not screw up comments.
qcc: added __GITURL__ __GITHASH__ __GITDATE__ __GITDATETIME__ __GITDESC__ for any mods that might want to make use of that.
qcc: fix up -Fhashonly a little
setrenderer: support for vulkan gpu enumeration.
rulesets: reworked to support custom rulesets (using hashes to catch haxxors, though still nothing prevents just changing the client to ignore rulesets)
bspx: use our BIH code for the bspx BRUSHLIST lump instead of the older less efficient code.
(static)iqm+obj: these model formats can now be used for the worldmodel (with a suitable .ent file). Also using BIH for much better collision performance.
pmove: tried to optimise PM_NudgePosition, should boost fps in stress tests.
wayland: fix a crash on startup. mousegrabs now works better.
imagetool: uses sdl for previews.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5813 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-04-14 05:21:04 +00:00
..
msvc_libc git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4420 fc73d0e0-1445-4013-8a0c-d673dee63da5 2013-07-13 19:56:18 +00:00
avaudio.c Support connecting subnodes to servers over tcp (instead of depending on fork). 2020-04-29 10:43:22 +00:00
avdecode.c stripped support for qvm-based plugins. rewrote native plugins to use a more efficient interface. 2019-09-04 07:59:40 +00:00
avencode.c openxr plugin: tweaked - inputs should be working properly now, and are visible to csqc. subject to further breaking changes, however. 2021-04-14 05:21:04 +00:00
readme.txt added mpq archive support for the luls 2013-05-03 04:29:36 +00:00

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.