Opened 6 months ago
Last modified 6 months ago
#11024 reopened enhancement
IO error: Error number -10053 occured when streaming to youtube in HLS
Reported by: | sanjxz | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | gnutls |
Cc: | sanjxz, MasterQuestionable | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
Summary of the bug: After some amount of time, from 1hr to 6hrs, stream to youtube crashes with "[tls] Error in push function" "[tls] IO error: Error number -10053 occured" "[hls] Failed to open file https://a.upload.youtube.com/http_upload_tls?cid={streamkey}©=0&file=masterXXXX.ts" "[vost#0:0/hevc_nvenc] Error submitting a packet to the muxer: Error number -10053 occured" "[out#0/hls] error muxing a packet"
How to reproduce:
% ffmpeg -hwaccel cuda \ -hide_banner -re -stream_loop -1 -y \ -i {video_file} -c:a aac \ -c:v hevc_nvenc -max_reload 2147483647 -m3u8_hold_counters 2147483647 \ -pix_fmt yuv420p -tag:v hvc1 \ -b:v 6M -flvflags no_duration_filesize \ -hls_list_size 5 -http_persistent 1 \ -profile:v main -framerate 60 -b:a 128k \ -bf:v 2 -g 120 -bufsize 16M -ac 2 -ar 44100 \ -f hls -method PUT -master_pl_name master.m3u8 -master_pl_publish_rate 2 \ {url_of_livestream}{stream_key}©=0&file=master.m3u8 ffmpeg version git master by gyan dev built on 2024-05-23
Attachments (1)
Change History (4)
comment:1 by , 6 months ago
Cc: | added |
---|---|
Description: | modified (diff) |
Status: | new → open |
comment:2 by , 6 months ago
Cc: | added |
---|---|
Component: | ffmpeg → avformat |
Keywords: | gnutls added; youtube streaming ffmpeg NVENC HLS removed |
Resolution: | → invalid |
Status: | open → closed |
comment:3 by , 6 months ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Type: | defect → enhancement |
͏ Or maybe FFmpeg may improve by adding/improving some retry mechanism..?
͏ (for certain recoverable transient network failures)
by , 2 months ago
Attachment: | _Okka_Puta_Annam_Kosam_Bichagadu_Telugu_Ringtone_(by Fringster.com).mp3 added |
---|
hi
͏ Network problem irrelevant with FFmpeg:
͏ https://github.com/FFmpeg/FFmpeg/blob/bcae59b8982f0836bfa1f86b320a199f20ca9afc/libavutil/error.c#L129
͏ https://github.com/search?type=code&q=repo:FFmpeg/FFmpeg+path:/^libavformat%5C/tls(?:_gnutls)?%5C.%5Bch%5D%24/+error
͏ https://github.com/search?type=code&q=repo:FFmpeg/FFmpeg+path:/^libavformat%5C/tls(?:_gnutls)?%5C.%5Bch%5D%24/+/(?-i)EIO(?:%5CW|%24)/
͏ .
͏ https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/tls_gnutls.c
͏ https://www.gnutls.org/manual/html_node/Error-codes.html ("-53")