Videotaped testimony — that vaunted panacea for the logistical problems of producing witnesses when and where needed — has serious limitations in criminal cases, as a Passaic County, N.J., prosecutor learned the hard way.

A New Jersey appeals court on Tuesday overturned a weapons conviction that was largely based on a videotaped deposition of a material witness, who had left the country before the trial.