fteqw/plugins/avplug
Spoike 53a7b3d47c added support for external capture plugins - and using avcodec as a plugin.c.
The ragdoll API is potentially usable now, but still really limited.
Enabled SQL requests by default using sqlite. Note that you'll need the sqlite dll to use this. MySQL should still be usable, but I didn't try. MySQL requires -DUSE_MYSQL to compile it, and a dll and -mysql argument to enable it.
Fixed nacl.
NPFTE plugin now invokes an exe to run the game rather than running the game within the browser.
externvalue builtin now accepts & prefix to return a pointer instead.
Fixed vector autocvars.
uri_get, bufstr_add, bufstr_free, now functional.
QC debugger can now show asm if line numbers are not available.
Added support for QC watchpoints. Use the watchpoint command.
gl_specular now give specular even without rtlights, thankfully not as blatently, but its there.
android will not crash due to supported audio formats, and gles2 can be selected via a cvar (requires full FTEDroidActivity/program restart).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4152 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-11-27 03:23:19 +00:00
..
avdecode.c added support for external capture plugins - and using avcodec as a plugin.c. 2012-11-27 03:23:19 +00:00
avencode.c added support for external capture plugins - and using avcodec as a plugin.c. 2012-11-27 03:23:19 +00:00
readme.txt added support for external capture plugins - and using avcodec as a plugin.c. 2012-11-27 03:23:19 +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:' prefix, specifically:
The console command 'playfilm av:c:\foo.mpg' will start playing back c:\foo.mpg fullscreen.
The shader term 'videomap av: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.