Playing videos to Samsung TVs

I’ve copied the movies to MP4 format with H264 video codec and AAC audio. When the movies start to play it just goes into a continuos loading cycle. These work fine streaming onto my Android tablet, and when I play them connected via USB.