Your url ends in .mp4, so download should be mp4 not default flv, should be using
return $url, title_to_filename($title, "mp4");
Need example to check, site could be missleading and .mp4 url does download flv content.