livepeer / go-livepeer

Official Go implementation of the Livepeer protocol
http://livepeer.org
MIT License
546 stars 171 forks source link

Segmenter Timeout #42

Closed ericxtang closed 6 years ago

ericxtang commented 7 years ago

Sometimes the segmenter times out, but the RTMP connection seems to be still up. The broadcaster now has no idea the stream is no longer working anymore.

We should have a graceful fallback strategy, possibly try to re-create the stream if the RTMP stream is still coming in.

ericxtang commented 6 years ago

I0110 20:21:40.783610   57743 basic_network.go:473] Received a message 3 from 12208a4eb428aa57a74ef0593612adb88077c75c71ad07c3c26e4e7a8d4860083b01
I0110 20:21:40.783657   57743 basic_network.go:636] Removing listener from broadcaster for stream: 1220c24f69f16b7af140b24a0169a46793c713ad9386825aca757b6341b8139e586f508ee9e2f17deab4b6c54a21ebf96edab2e650e4dc0561ab5e75cfa0be7dbd9fP720p60fps16x9
E0110 20:22:07.289503   57743 lpms.go:135] Error segmenting stream: SegmenterTimeout
I0110 20:22:07.289566   57743 basic_broadcaster.go:84] broadcast worker done
I0110 20:22:07.289585   57743 video_segmenter.go:124] VideoSegmenter stopped for 1220c24f69f16b7af140b24a0169a46793c713ad9386825aca757b6341b8139e586f508ee9e2f17deab4b6c54a21ebf96edab2e650e4dc0561ab5e75cfa0be7dbd9fP720p60fps16x9
I0110 20:22:07.289603   57743 video_segmenter.go:283] Cleaning up video segments.....
I0110 20:46:51.747631   57743 basic_rtmp_videostream.go:101] EOF...
I0110 20:46:51.747675   57743 listener.go:55] RTMP publish got eof...
E0110 20:46:51.747695   57743 player.go:66] Error copying RTMP stream: write tcp [::1]:1935->[::1]:53050: write: broken pipe
^CI0110 20:46:57.331106   57743 livepeer.go:317] Exiting Livepeer: interrupt
ericxtang commented 6 years ago

Duplicate to https://github.com/livepeer/go-livepeer/issues/324