https://discord.cloudflare.com logo
Join DiscordCommunities
Powered by
# stream
  • z

    Zaid (Cloudflare)

    04/12/2022, 8:51 PM
    @Dectom have you tried tus instructions under Direct Creator Upload docs? See https://developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads/#using-tus-recommended-for-videos-over-200mb
  • z

    Zaid (Cloudflare)

    04/12/2022, 8:52 PM
    I also have a codepen demo that uses Direct Creator Uploads (in conjunction with the server-side demo code on the previous link): https://codepen.io/cfzf/pen/wvGMRXe
  • d

    Dectom

    04/12/2022, 8:57 PM
    I copied from that Codepen example and my code as shown above was built from those docs, I'm just not using a Cloudflare Worker to generate the URL
  • z

    Zaid (Cloudflare)

    04/12/2022, 9:01 PM
    Can you try the Worker? It should only take minutes to setup. Once you have a functioning Worker, it will help you find the delta in your code causing it to not work
  • m

    Mateen

    04/13/2022, 9:21 PM
    Hi Guys, I'm trying to upload a video in this way but getting error:
    Copy code
    [log] DioError [DioErrorType.response]: Http status error [401]
     Source stack:
     #0      DioMixin.fetch (package:dio/src/dio_mixin.dart:488:35)
     #1      DioMixin.request (package:dio/src/dio_mixin.dart:483:12)
     #2      DioMixin.post (package:dio/src/dio_mixin.dart:97:12)
     #3      _UploadPageState.postHttp (package:custom_video_player/testing_video/testing_video.dart:190:32)
     <asynchronous suspension>
  • m

    Mateen

    04/13/2022, 9:21 PM
  • z

    Zaid (Cloudflare)

    04/14/2022, 3:27 AM
    @Mateen to debug language-specific implementation, I suggest the following: 1. Use a client like Insomnia to unit test the API end point 2. If (1) works, then change the endpoint URL in Insomnia to the URL provided by an HTTP interceptor tool like https://webhook.site/ 3. Change the endpoint URL in your code to same url in step 2 4. Compare the HTTP requests from the working request made by Insomnia client against the HTTP request made by your code to find the delta
  • m

    Mateen

    04/14/2022, 8:14 AM
    I have tried the curl that I copied from the CloudFlare account. It's throwing error as well even provided all the credentials.
  • z

    Zaid (Cloudflare)

    04/14/2022, 8:19 PM
    Can you try the Insomnia client?
  • d

    Dectom

    04/15/2022, 9:06 PM
    So I can get it to work using a worker example it provides, but How am I supposed to get the stream-id from the worker?? I need that to link to my model and store it to know where it's been uploaded to
  • d

    Dectom

    04/15/2022, 9:12 PM
    Why can't it work any other way and has to go through a worker?
  • z

    Zaid (Cloudflare)

    04/16/2022, 7:06 AM
    @Dectom It doesn't have to go through a Worker. It will work with other languages and frameworks as well (php, nodejs) since it is just an API call. I'll try to pull together a PHP code sample to share with you
  • j

    joshh

    04/16/2022, 11:42 AM
    "$1 per 1,000 minutes delivered", is that per viewer for livestreaming? Cause damn that's expensive: https://developers.cloudflare.com/stream/faq/
  • d

    Dectom

    04/16/2022, 4:39 PM
    the only examples you guys have don't apply as those are for just resuamble uploads from a secured backend, I'm trying to do direct creator uploads which doesn't apply I had provided screenshots of the code I was using previously Also, the woerk example that I was previously using that was working for just uploading videos, no longer works, for some reason it hits it, starts an upload then it tries to go to /null and fails
  • d

    Dectom

    04/16/2022, 4:53 PM
    I've found a workaround to my problems and I think i've got it working now reliably so going to play and see what I can change here
  • d

    Dectom

    04/16/2022, 10:10 PM
    My videos are uploading but have no name specified... I can't find a API Endpoint to edit a video, does this just not exist???
  • z

    Zaid (Cloudflare)

    04/17/2022, 7:24 AM
    How are you uploading?
  • z

    Zaid (Cloudflare)

    04/17/2022, 7:26 AM
    You can use Upload-Metadata request header to specify the name property. Just make sure the value (name of the video) is base64 encoded
  • z

    Zaid (Cloudflare)

    04/17/2022, 7:26 AM
    https://developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads/#upload-metadata-header-syntax
  • z

    Zaid (Cloudflare)

    04/17/2022, 7:27 AM
    example: setting Upload-Metadata header to "name TXkgVmlkZW8=" will set the name property in the meta field to "My Video" (TXkgVmlkZW8= is the base64 encoded value for "My Video")
  • o

    ogadagidi

    04/17/2022, 11:41 AM
    This is an interesting detail that never crossed my mind.
  • o

    ogadagidi

    04/17/2022, 12:43 PM
    @Zaid (Cloudflare) how can I calculate the cost of streaming 10,000 minutes of video across 100,000 users ?
  • a

    albert

    04/17/2022, 3:06 PM
    You are billed based on the total number of minutes streamed. If 1 user watches 10,000 minutes, you will be billed for 10,000 minutes. If 1,000 users each watch 10 minutes, you are also billed for 10,000 minutes.
  • o

    ogadagidi

    04/17/2022, 9:11 PM
    Thank you. So just to get it right https://developers.cloudflare.com/stream/faq/ if I have 2000 minutes of video it will cost me $10. If Users stream 100,000 minutes it will be $100. So It will cost me $110 for 2000 minutes of recorded videos and 100,000 minutes of videos streamed. Correct?
  • n

    Nikil

    04/17/2022, 9:48 PM
    Is there a way to use a csv/spreadsheet/json of some kind to upload a whole library of videos and their associated title? All videos are currently in Google Drive
  • n

    Nikil

    04/17/2022, 9:53 PM
    https://developers.cloudflare.com/stream/faq/ > What frame rates (FPS) are supported? > Cloudflare Stream supports video file uploads for any FPS, however videos will be re-encoded for 70 FPS playback. If the original video file has a frame rate lower than 70 FPS, Stream will re-encode at the original frame rate. 70 fps? Surely that's a mistake?
  • r

    rrnn

    04/18/2022, 5:07 AM
    You can write a script and use the API to do this.
    /copy
    API takes a URL to the video you want to upload and can also associate a title to it.
  • r

    rrnn

    04/18/2022, 5:07 AM
    70 is the upper limit.
  • r

    rrnn

    04/18/2022, 5:08 AM
    That number is correct. @ogadagidi
  • z

    Zaid (Cloudflare)

    04/18/2022, 6:21 AM
    It's accurate. Previously, the max supported fps was 30. Videos you upload today will be encoded upto the fps in your original video, upto 70
1...141516...105Latest