diff --git a/internal/testers/http_streamer.go b/internal/testers/http_streamer.go index e2b3e775..b1c6f055 100644 --- a/internal/testers/http_streamer.go +++ b/internal/testers/http_streamer.go @@ -225,6 +225,9 @@ func (hs *httpStreamer) pushSegment(httpURL, manifestID string, seg *hlsSegment) hs.mu.Lock() hs.dstats.errors["Video parsing error"] = hs.dstats.errors["Video parsing error"] + 1 hs.mu.Unlock() + fname := fmt.Sprintf("bad_video_%s_%d_%d", manifestID, seg.seqNo, i) + ioutil.WriteFile(fname, tseg, 0644) + glog.Infof("Wrote bad segment to '%s'", fname) glog.Infof("Data:\n%x", tseg) glog.Infof("Data as string:\n%s", string(tseg)) panic(msg)