Machine-learning researchers are developing software that automatically searches through long videos to create edited summaries, or personalized trailers. Larry Greenemeier reports