only strip start and end when it is flv or mp4