Stream_Out_Chromecast buffer full, crashing playback. weird state changes prior to this
VLC 4.0.0 15/9-2021 build, also 13/9 14/9 builds
Stream output changes from PLAYING to IDLE, then throws could not write frame errors, and subsequently throws HTTPD buffer full errors infinitely.
I suspect either HTTPD or Sout_Stream is the cause here, but thats just me guessing.
Sample:
avcodec error: could not write frame (pts: 73261001, dts: 73261001) (pkt pts: 73261, dts: 73261)
stream_out_chromecast warning: httpd buffer full: dropping 42643B
prior debug level messages:
First error:
avcodec warning: Missing video bitrate, assuming 512k
avcodec debug: writing header
stream_out_chromecast debug: processMessage: urn:x-cast:com.google.cast.receiver->sender-vlc {"requestId":1,"status":{"isActiveInput":true,"isStandBy":false,"userEq":{},"volume":{"controlType":"master","level":0.0,"muted":false,"stepInterval":0.01666666753590107}},"type":"RECEIVER_STATUS"}
stream_out_chromecast debug: Switching from state Connecting to Connected
stream_out_chromecast debug: Loading content
stream_out_chromecast debug: Starting the media receiver application
stream_out_chromecast debug: sendMessage: urn:x-cast:com.google.cast.receiver->receiver-0 {"type":"LAUNCH","appId":"CC1AD845","requestId":2}
avcodec error: could not write frame (pts: 61001, dts: 61001) (pkt pts: 61, dts: 61)
Second error:
stream_out_chromecast debug: Switching from state Lauching to Ready
stream_out_chromecast debug: s_chromecast_url: http://192.168.1.7:8010/chromecast/2690089000/1313848015/stream
stream_out_chromecast debug: sendMessage: urn:x-cast:com.google.cast.media->528fc12f-8f54-452b-8565-f2d1cfe9d1ad {"type":"LOAD","media":{"metadata":{ "metadataType":0,"title":"Gold Rush Parker's Trail S03E03"},"contentId":"http://192.168.1.7:8010/chromecast/2690089000/1313848015/stream","streamType":"LIVE","contentType":"video/x-matroska"},"autoplay":"false","requestId":1}
stream_out_chromecast debug: processMessage: urn:x-cast:com.google.cast.media->* {"type":"MEDIA_STATUS","status":[],"requestId":0}
stream_out_chromecast debug: processMessage: urn:x-cast:com.google.cast.media->* {"type":"MEDIA_STATUS","status":[{"mediaSessionId":1,"playbackRate":1,"playerState":"IDLE","currentTime":0,"supportedMediaCommands":12303,"volume":{"level":1,"muted":false},"media":{"metadata":{"metadataType":0,"title":"Gold Rush Parker's Trail S03E03"},"contentId":"http://192.168.1.7:8010/chromecast/2690089000/1313848015/stream","streamType":"LIVE","contentType":"video/x-matroska","mediaCategory":"VIDEO"},"currentItemId":1,"extendedStatus":{"playerState":"LOADING","media":{"metadata":{"metadataType":0,"title":"Gold Rush Parker's Trail S03E03"},"contentId":"http://192.168.1.7:8010/chromecast/2690089000/1313848015/stream","streamType":"LIVE","contentType":"video/x-matroska","mediaCategory":"VIDEO"},"mediaSessionId":1},"repeatMode":"REPEAT_OFF"}],"requestId":0}
stream_out_chromecast debug: processMessage: urn:x-cast:com.google.cast.receiver->* {"requestId":0,"status":{"applications":[{"appId":"CC1AD845","appType":"WEB","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"528fc12f-8f54-452b-8565-f2d1cfe9d1ad","statusText":"Casting: Gold Rush Parker's Trail S03E03","transportId":"528fc12f-8f54-452b-8565-f2d1cfe9d1ad","universalAppId":"CC1AD845"}],"isActiveInput":true,"isStandBy":false,"userEq":{},"volume":{"controlType":"master","level":0.0,"muted":false,"stepInterval":0.01666666753590107}},"type":"RECEIVER_STATUS"}
avcodec error: could not write frame (pts: 13421001, dts: 13421001) (pkt pts: 13421, dts: 13421)
avcodec error: could not write frame (pts: 14861001, dts: 14861001) (pkt pts: 14861, dts: 14861)
avcodec error: could not write frame (pts: 16621001, dts: 16621001) (pkt pts: 16621, dts: 16621)
Third and fatal error:
stream_out_chromecast debug: Player state: PLAYING sessionId: 1
stream_out_chromecast debug: processMessage: urn:x-cast:com.google.cast.media->* {"type":"MEDIA_STATUS","status":[{"mediaSessionId":1,"playbackRate":1,"playerState":"PLAYING","currentTime":22.882548,"supportedMediaCommands":12303,"volume":{"level":1,"muted":false},"activeTrackIds":[],"media":{"metadata":{"metadataType":0,"title":"Gold Rush Parker's Trail S03E03"},"contentId":"http://192.168.1.7:8010/chromecast/2690089000/1313848015/stream","streamType":"LIVE","contentType":"video/x-matroska","mediaCategory":"VIDEO","duration":25.56,"tracks":[{"trackId":1,"type":"VIDEO"}],"breakClips":[],"breaks":[]},"currentItemId":1,"repeatMode":"REPEAT_OFF"}],"requestId":0}
stream_out_chromecast debug: Player state: PLAYING sessionId: 1
stream_out_chromecast debug: sendMessage: urn:x-cast:com.google.cast.media->528fc12f-8f54-452b-8565-f2d1cfe9d1ad {"type":"GET_STATUS","requestId":8}
stream_out_chromecast debug: processMessage: urn:x-cast:com.google.cast.media->sender-vlc {"type":"MEDIA_STATUS","status":[{"mediaSessionId":1,"playbackRate":1,"playerState":"PLAYING","currentTime":24.20549,"supportedMediaCommands":12303,"volume":{"level":1,"muted":false},"activeTrackIds":[],"media":{"metadata":{"metadataType":0,"title":"Gold Rush Parker's Trail S03E03"},"contentId":"http://192.168.1.7:8010/chromecast/2690089000/1313848015/stream","streamType":"LIVE","contentType":"video/x-matroska","mediaCategory":"VIDEO","duration":25.56,"tracks":[{"trackId":1,"type":"VIDEO"}],"breakClips":[],"breaks":[]},"currentItemId":1,"items":[{"itemId":1,"media":{"metadata":{"metadataType":0,"title":"Gold Rush Parker's Trail S03E03"},"contentId":"http://192.168.1.7:8010/chromecast/2690089000/1313848015/stream","streamType":"LIVE","contentType":"video/x-matroska","mediaCategory":"VIDEO","duration":null},"autoplay":"false","orderId":0}],"repeatMode":"REPEAT_OFF"}],"requestId":8}
stream_out_chromecast debug: Player state: PLAYING sessionId: 1
stream_out_chromecast debug: processMessage: urn:x-cast:com.google.cast.receiver->* {"requestId":0,"status":{"applications":[{"appId":"CC1AD845","appType":"WEB","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"528fc12f-8f54-452b-8565-f2d1cfe9d1ad","statusText":"Default Media Receiver","transportId":"528fc12f-8f54-452b-8565-f2d1cfe9d1ad","universalAppId":"CC1AD845"}],"isActiveInput":true,"isStandBy":false,"userEq":{},"volume":{"controlType":"master","level":0.0,"muted":false,"stepInterval":0.01666666753590107}},"type":"RECEIVER_STATUS"}
stream_out_chromecast debug: processMessage: urn:x-cast:com.google.cast.media->* {"type":"MEDIA_STATUS","status":[{"mediaSessionId":1,"playbackRate":1,"playerState":"IDLE","currentTime":0,"supportedMediaCommands":12303,"volume":{"level":1,"muted":false},"currentItemId":1,"idleReason":"FINISHED"}],"requestId":0}
stream_out_chromecast debug: Player state: IDLE sessionId: 1
stream_out_chromecast debug: Switching from state Playing to Ready
avcodec error: could not write frame (pts: 31741001, dts: 31741001) (pkt pts: 31741, dts: 31741)
attached is debug level log, sanitized for sanitys sake, its not supposed to be a 1.6MB text file filled with teh same looping error message.
Edited by Rémi Denis-Courmont