baking a movie


I wonder how to make a movie of an UV unwrapped animated texture.
Imagine a model with an animated texture. I want only the texture in an UV unwrapped layout as a movie. This would be much like baking but instead of one picture a picture for every frame.
If I export the object as an .obj I can put that texture on to that object and got my animation back by playing back that movie.
I´ve seen this done in blender years ago but can´t figure out the way.