GNOME Bugzilla – Bug 690149
[mpeg4videoparse] support divx and add GMC info in caps
Last modified: 2012-12-13 11:01:42 UTC
Created attachment 231463 [details] [review] mpeg4videoparse: handle divx caps Hi, I have attached two patches to allow better integration with hardware mpeg4 decoders. The first patch allows parsing DivX videos, since they are standard MPEG-4 part 2 videos. We probably could remove the divx caps altogether and just use video/mpeg caps, just like Tim did for XviD. The second patch exports the number of sprite warping points when GMC is enabled. Hardware decoders usually only support 1 sprite warping point, so it allows to filter out those videos or decode them in software instead. Wikipedia states: "Xvid specifies three warp points for its implementation of global motion compensation as opposed to the single warp point implementation of DivX", but I've seen DivX files with 2 warping points, so that's why we also need to parse DivX videos.
Created attachment 231464 [details] [review] mpeg4videoparse: export number of sprite warping points in caps
commit 0d15c8a7a59e11ef3c83fcc9363f074b7882997f Author: Arnaud Vrac <avrac@freebox.fr> Date: Thu Dec 13 11:47:57 2012 +0100 mpeg4videoparse: export number of sprite warping points in caps This allows filtering out videos for hardware decoders that do not support GMC at all or only support a limited number of sprite warping points (usually 1). commit 07c2a82e5d471794c03e89ca2e0dacd4ed544d23 Author: Arnaud Vrac <avrac@freebox.fr> Date: Thu Dec 13 11:43:09 2012 +0100 mpeg4videoparse: handle divx caps DivX 4/5 are MPEG4 part 2 videos, so they can be parsed by this plugin.