File > Import > Video Frames to Layers... Choose the video file of your animation and PS will put each frame on a new layer. Once you've made your edits, export as an animated .gif by going to File > Save for Web... Then select a .gif preset and edit your looping options.