Xpra: Ticket #1142: xvid MPEG4 codec support

Related to #1107.

The xvid codec does MPEG4 and is available in Fedora.



Thu, 10 Mar 2016 15:26:19 GMT - Antoine Martin: status changed

xvid codec added in r12119, can be enabled using --encoding=mpeg4. Requires a new build of ffmpeg (with mpeg4 decoding support) and xpra build against xvidcore-devel.

Still TODO:


Sat, 12 Mar 2016 10:48:58 GMT - Antoine Martin: owner, status changed

r12125 adds packaging for all platforms except for win32 and osx as servers

This will do for now, not sure if it will help at all with container formats, but it may still help in some other ways (comparing with h264, legacy clients, etc)

How to check for this new codec:

@afarr: just a FYI, feel free to close.


Sat, 12 Mar 2016 11:31:39 GMT - Antoine Martin: attachment set

none of the development packages include a pkg-config file, so I made one (we use pkg-config to detect if the xvid development headers are installed)


Wed, 18 May 2016 23:12:39 GMT - alas: status changed; resolution set

Interestingly, I find an xvid directory in my v0.17.x src, but not in my trunk (0.18.x), on the vm where I build xpra.

I'm not quite sure how to build a 0.17.x server that will include the mpeg4 (it doesn't show on my --encoder=help list for the server, though it does show on the list for the win32 client I downloaded from your repo).

Loader.py is giving me this output:

* csc_cython           : /usr/lib64/python2.7/site-packages/xpra/codecs/csc_cython/colorspace_converter.so
* csc_libyuv           :
* csc_opencl           :
* csc_opencv           : /usr/lib64/python2.7/site-packages/xpra/codecs/csc_opencv/colorspace_converter.pyc
* csc_swscale          : /usr/lib64/python2.7/site-packages/xpra/codecs/csc_swscale/colorspace_converter.so
* dec_avcodec2         : /usr/lib64/python2.7/site-packages/xpra/codecs/dec_avcodec2/decoder.so
* dec_pillow           : /usr/lib64/python2.7/site-packages/xpra/codecs/pillow/decode.pyc
* dec_vpx              : /usr/lib64/python2.7/site-packages/xpra/codecs/vpx/decoder.so
* dec_webp             : /usr/lib64/python2.7/site-packages/xpra/codecs/webp/decode.so
* enc_pillow           : /usr/lib64/python2.7/site-packages/xpra/codecs/pillow/encode.pyc
* enc_vpx              : /usr/lib64/python2.7/site-packages/xpra/codecs/vpx/encoder.so
* enc_webp             : /usr/lib64/python2.7/site-packages/xpra/codecs/webp/encode.so
* enc_x264             : /usr/lib64/python2.7/site-packages/xpra/codecs/enc_x264/encoder.so
* enc_x265             :
* nvenc4               :
* nvenc5               :
* nvenc6               :
* xvid                 :
codecs versions:
* PIL                             : 3.1.1
* avcodec2                        : 57.24.102
* buffer_api                      : 1
* cython                          : 1.0.24
* dec_pillow                      : 3.1.1
* dec_webp                        : 0.4.4
* enc_pillow                      : 3.1.1
* enc_webp                        : 0.4.4
* numpy                           : 1.9.2
* opencv                          : 2.4.12.2
* swscale                         : 4.0.100
* vpx                             : 1.5.0
* x264                            : 148

I'm not sure the mpeg 4 is meant to be built into a server unless I take some steps (I tried installing xvidcore-devel, but that alone wasn't sufficient).

I will go ahead and close and see is smo maybe has a tip for where that xvid.pc should be dropped in order to enable the mpeg 4... and open some other ticket if my failures persist.


Thu, 19 May 2016 09:00:47 GMT - Antoine Martin:

To build the xvid codec, you need to drop the attachment/ticket/1142/xvid.pc into your pkg-config directory (ie: /usr/lib64/pkgconfig/).


Thu, 19 May 2016 16:35:34 GMT - alas:

Sure enough, dropping it there it worked without a hitch.

I do notice that the xvid encode statistics are still displaying, but I assume you're aware. (Leaving closed.)


Sat, 23 Jan 2021 05:16:08 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1142