The thing is, flashing a stock rom via Odin won't wipe, unless you flash a 3 part firmware.
So what you need to do is go to samfirmware, and download the stock rom for your country & carrier. It will be a one part firmware, a tar.md5 extension. Don't get ICS 4.0.4. Do you know if it was on ICS or JB before? Best bet is to flash the same stock rom you were on before the issue.
So, flash the stock rom via Odin in download mode.
Regardless of flashing with wipe or non wipe: if you only want the photos and videos, they are stored on the internal or external sd card. They're not affected by a factory reset, or a wipe. So you should be good either way. Give it a a go.
Sent from a galaxy far, far away