austincollinpena
04/07/2022, 2:38 PMWalshy | Pages
04/07/2022, 2:38 PMaustincollinpena
04/07/2022, 2:38 PMsriram
04/08/2022, 12:24 PMsriram
04/08/2022, 12:25 PMDectom
04/09/2022, 6:13 PMhttps://cdn.dectom.dev/EibJXG0WW0.pngâ–ľ
https://cdn.dectom.dev/yrL9CkbFSZ.pngâ–ľ
Dectom
04/09/2022, 6:23 PMDectom
04/09/2022, 6:27 PMhttps://cdn.dectom.dev/TbACN5I9d6.pngâ–ľ
https://cdn.dectom.dev/vEZb9yBEaE.pngâ–ľ
https://cdn.dectom.dev/6vdD6tabjF.pngâ–ľ
Dectom
04/09/2022, 6:56 PMDectom
04/09/2022, 6:56 PMMickie Betz
04/11/2022, 5:52 PMmaxDurationSeconds
field in the data. These uploads in pending
state will count against the total storage quota for a certain amount of time (detailed below).
If using direct-user upload method, the storage space specified with maxDurationSeconds
is held for a default amount of time of 30 minutes but can be held up to 6 hours if desired. You can also set it to expire as quickly as 2 minutes in the future. This is done with the expiry
field.
I believe the default allocated amount of storage held for a TUS upload is for a 4 hour video, which is likely more time than the value you’ve sent with maxDurationSeconds
, so that hopefully explains the discrepancy. Also, TUS will wait for an upload to appear for up to a day, where direct-user upload defaults to 30 minutes before no longer reserving the storage space.
It might be worth avoiding this situation by uploading via link instead: https://developers.cloudflare.com/stream/uploading-videos/upload-via-link/Dectom
04/11/2022, 7:32 PMmaxDurationSeconds
and the expiry
option and see what happens, Thanks for the info, I assumed that it was reserving space but due to it being billed on minutes stored I didn't think that would be the case as wouldn't this lead to false billing in some circumstances where you are billed for reserved space that wasn't actually used?Dectom
04/11/2022, 8:22 PMmaxDurationSeconds
option in the data makes zero difference and it still claims 240 mins of storage space even when passing it at a max duration of 60 secondsDectom
04/11/2022, 8:25 PMhttps://cdn.dectom.dev/BMv8jTJeu4.pngâ–ľ
Mickie Betz
04/11/2022, 9:40 PMmaxDurationSeconds
for a TUS direct user upload, it needs to be sent as a header, like so: 'Upload-Metadata: maxDurationSeconds NjAw
where NjAw is the base64 encoded value for “600” (or 10 minutes), not in the request body like I previously suggested
https://developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads/#upload-metadata-header-syntax.
I totally understand that the storage capacity error is confusing when you haven’t actually uploaded many videos, and I think your experience shows we need to do a lot to clarify this in our docs. We really appreciate your feedback here. Please let me know if you hit on any more friction, but hopefully you’ll be sorted out now!Dectom
04/11/2022, 9:42 PMDectom
04/11/2022, 9:45 PMMickie Betz
04/11/2022, 9:46 PMMickie Betz
04/11/2022, 9:46 PMDectom
04/11/2022, 9:47 PMMickie Betz
04/11/2022, 9:47 PMDectom
04/11/2022, 9:47 PMDectom
04/11/2022, 9:48 PMMickie Betz
04/11/2022, 9:49 PMDectom
04/11/2022, 10:20 PMhttps://cdn.dectom.dev/EQXtgaJj5D.pngâ–ľ
Dectom
04/11/2022, 10:41 PMhttps://cdn.dectom.dev/wEij0MHt8I.pngâ–ľ
Mickie Betz
04/11/2022, 11:45 PMMickie Betz
04/11/2022, 11:47 PMMickie Betz
04/11/2022, 11:52 PMunexpected status received from storage: 400; body: Failed to parse Content-Range header
Dectom
04/12/2022, 3:58 PMhttps://cdn.dectom.dev/k7H6X0wy5z.pngâ–ľ
https://cdn.dectom.dev/JDoPqktR3M.pngâ–ľ
https://cdn.dectom.dev/9I64QAb8fk.pngâ–ľ
/stream
endpoint which I can't do for direct creator uploads.
I've had a scan over the forums and Can't really find anyone else with the same issue so I'm a bit stuck any ideas would be appreciated