You will need flvtool2 on the server to do that. To run on all files, get list of all files with ls -l, then if you have text editor that support regular experession (edit+,notpad++,etc..), you can run create commands easily.

For one file, run flvtool2 -U filename.flv