[FFmpeg-devel] [PATCH] mxf umid generation

Reimar Döffinger Reimar.Doeffinger
Sat Mar 7 10:50:23 CET 2009

On Fri, Mar 06, 2009 at 07:28:55PM -0800, Baptiste Coudurier wrote:
> It seems some products really check umid and base themself on its
> uniqueness, so it seems better to actually try to generate a unique number.
> Is the approach in the patch acceptable ? If no, any other suggestion ?

Well, a lot depends on the purpose of the umid. A particularly slow but
reliable method would be to run a hash over the whole file at the end
and use the hash as umid.
The gettimeofday approach could have a high risk of collisions when the
clock has a low resolution (I think in the past systems tended to have
10ms resolution, giving only 100 possible values?)...

More information about the ffmpeg-devel mailing list