I'm trying to download HLS format video as mp4 using ffmpeg.
I don't want to bother the server side due to excessive requests, so I want to create an interval for ts file acquisition.
When I actually run ffmpeg, I sometimes get an HTTP 429 error as shown below.
In addition, it looked like there are no good options in ffmpeg.
[https @ 000001bfef570100] Opening 'https://~/ts/9.ts' for reading
[https @ 000001bfeef31140] HTTP error 429 Too Many Requests
[hls @ 000001bfee6be200] keepalive request failed for 'https://~/ts/9.ts' with error: 'Server returned 4XX Client Error, but not one of 40{0,1,3,4}' when opening url, retrying with new connection
[https @ 000001bfef570100] Opening 'https://~/ts/9.ts' for reading
[https @ 000001bfef570100] Opening 'https://~/ts/10.ts' for reading
[https @ 000001bfef570100] Opening 'https://~/ts/11.ts' for reading
[https @ 000001bfef570100] Opening 'https://~/ts/12.ts' for reading
[https @ 000001bfef570100] Opening 'https://~/ts/13.ts' for reading
[https @ 000001bfeef31140] HTTP error 429 Too Many Requests
[hls @ 000001bfee6be200] keepalive request failed for 'https://~/ts/13.ts' with error: 'Server returned 4XX Client Error, but not one of 40{0,1,3,4}' when opening url, retrying with new connection
[https @ 000001bfef570100] Opening 'https://~/ts/13.ts' for reading
…
Can you come up with any good way?
I'm not good at English, so I may not be able to respond well. sorry. This post was written by Google Translate.