https://discord.cloudflare.com logo
Join Discord
Powered by
# stream
  • t

    Troy

    08/01/2022, 5:07 PM
    ah i see
  • Upcoming domain change to ensure delivery of your video content
    b

    Brendan Irvine-Broque

    08/01/2022, 5:10 PM
    Hey everyone, Brendan here, PM for Stream. Just wanted to let you know about an upcoming change that we'll be making to Stream, to ensure your videos are delivered to viewers. We'll be introducing new subdomains that are specific to your Cloudflare Account, starting August 15th. For more, read this post in the community forum: https://community.cloudflare.com/t/upcoming-domain-change-to-ensure-delivery-of-your-video-content/405842 If you have questions or concerns, please comment on the community forum post — I'll be reading replies and dropping in to answer questions and clarify our documentation on this over the next few weeks.
    • 1
    • 1
  • d

    Deleted User

    08/04/2022, 1:15 PM
    little confused on which exact endpoint I'm actually supposed to poll https://api.cloudflare.com/#stream-videos-retrieve-video-details for future reference if anyone is searching the discord to poll for
    readyToStream
  • i

    Isaac McFadyen | YYZ01

    08/04/2022, 1:19 PM
    https://api.cloudflare.com might be in there?
  • s

    SakuraFC

    08/06/2022, 10:54 AM
    Quick question, does Stream product support 4K VOD?
  • z

    zegevlier

    08/06/2022, 10:55 AM
    https://developers.cloudflare.com/stream/faq/#what-formats-and-quality-levels-are-delivered-through-cloudflare-stream I believe it's limited to a max of 1080p, at least that's what this page on the docs says
  • e

    Erisa | Support Engineer

    08/06/2022, 11:42 AM
    correct, the current state supports up to 1080p
  • e

    Erisa | Support Engineer

    08/06/2022, 11:43 AM
    there is an account flag called
    stream.4k
    but 👀 i dont know if it does anything yet or how one would get it if it does
  • u

    1mdev

    08/08/2022, 1:06 PM
    I have been having an issue with video clip tried setting the duration and parameters as mentioned in the docs but i get an error 10003 can someone help me with this
  • m

    Mumutii

    08/11/2022, 1:19 AM
    Hi boys, question, can i use VLC for open m3u8 ?
  • i

    Isaac McFadyen | YYZ01

    08/11/2022, 1:30 AM
    Yes, via the Open Network Stream button
  • i

    Isaac McFadyen | YYZ01

    08/11/2022, 1:31 AM
    m3u8 is HLS which VLC supports IIRC
  • m

    Mumutii

    08/11/2022, 1:31 AM
    I try, nothing happen wtff
  • j

    joshh

    08/11/2022, 8:47 AM
    how do you get the length of a video being uploaded? I'm using ```` to grab the file, then throwing it through ``filereader``.
    Copy code
    async function uploadVideo(e) {
        // Get the selected file from the input element
        var file = e.target.files[0]
        if (!file) {
          return;
        }
    
        const uploadLink = await getUploadLink(file.size);
        if (uploadLink == null) { alert(`[error]: Could not find drop point.`); }
    
        // Create a new tus upload
        var upload = new tus.Upload(file, {
            endpoint: uploadLink,
            retryDelays: [0, 3000, 5000, 10000, 20000],
            metadata: {
              filename: file.name,
              filetype: file.type
            },
            onError: function(error) {
              console.log("Failed because: " + error)
            },
            onProgress: function(bytesUploaded, bytesTotal) {
              var percentage = (bytesUploaded / bytesTotal * 100).toFixed(2)
              console.log(bytesUploaded, bytesTotal, percentage + "%")
            },
            onSuccess: function() {
              console.log("Download %s from %s", upload.file.name, upload.url)
            }
        })
    
        // Check if there are any previous uploads to continue.
        upload.findPreviousUploads().then(function (previousUploads) {
            // Found previous uploads so we select the first one. 
            if (previousUploads.length) {
                upload.resumeFromPreviousUpload(previousUploads[0])
            }
    
            // Start the upload
            upload.start()
        })
      }
  • j

    joshh

    08/11/2022, 8:47 AM
    Cloudflare Stream is making the direct creator upload 200 minutes for a 30s video.
  • j

    joshh

    08/11/2022, 8:48 AM
    So I want to send the video length in the headers so the server can set a max duration of how long the video actually is.
  • i

    Isaac McFadyen | YYZ01

    08/11/2022, 12:21 PM
    Take a look here: I suspect it's because you are not providing some of the parameters such as uploadSize into TUS. https://developers.cloudflare.com/stream/uploading-videos/upload-video-file/#nodejs-example
  • i

    Isaac McFadyen | YYZ01

    08/11/2022, 12:21 PM
    You need to provide
    size
    to the TUS client too
  • i

    Isaac McFadyen | YYZ01

    08/11/2022, 12:22 PM
    Also, default behavior is not to allow resumes (you'll need to opt in by using
    resume
    )
  • j

    joshh

    08/11/2022, 12:32 PM
    yeah, but I don't actually know how to get that from the file input, which was part of my original question :)
  • j

    joshh

    08/11/2022, 12:32 PM
    That's probably like 99% of this error
  • j

    joshh

    08/11/2022, 12:32 PM
    so Im pretty sure ur right
  • i

    Isaac McFadyen | YYZ01

    08/11/2022, 12:33 PM
    Ah, Ok. - So a couple of things: you need to base64 encode the params (require signed URLs, allow origins, etc) in the Upload-Metadata header, not the body: https://developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads/#upload-metadata-header-syntax - The Size should be gotten from the file: the same as
    file.size
  • p

    poacher2k

    08/14/2022, 7:09 AM
    what is the recommended way of working with CF Stream webhooks in development? does there exist anything similar to Stripe CLI's
    stripe listen
    that forwards webhooks to a local URL, or is there another best practice?
  • k

    kev-ac

    08/14/2022, 11:10 AM
    @poacher2k You could use something like ngrok to tunnel webhook requests to your local running app
  • k

    kev-ac

    08/14/2022, 11:11 AM
    Or of course a cloudflare tunnel 🙂
  • k

    kev-ac

    08/14/2022, 11:12 AM
    Install cloudflared on your machine and then you can create a tunnel with
    cloudflared tunnel --url {Your local app URL with port}
  • g

    gotfredsen

    08/14/2022, 11:18 AM
    a client wanted me to compare if they should use vimeo pro or cloudflare stream ... is this data realy corect ?
  • g

    gotfredsen

    08/14/2022, 11:18 AM
    Cloudflare: H264 hd video with 24 fps is 0.4 MB per sec and 24 MB per minute. 1000 minutes of video - > 24.000 MB data - > 1 dollar on cloudflare stream for bandwidth - > 1 dollar per 24 GB bandwith 1000 minutes of video - > 24.000 MB data - > 5 dollar on cloudflare stream for storage - > 5 dollar per 24 GB storage Vimeo Business: H264 hd video with 24 fps is 0.4 MB per sec and 24 MB per minute. 50 dollar for max 2 TB of bandwith and 5 TB storage of data 2 TB bandwidth = 2000 GB - > 82.000 minutes - > 50 dollar per 2000 GB bandwith or 0.6 dollar per 24 GB bandwith 5 TB storage = 5000 GB - > 208.333 minutes - > 50 dollar per 5000 GB storage or 0.24 dollar per 24 GB storage
  • k

    kev-ac

    08/14/2022, 11:21 AM
    Someone please correct me if I'm wrong, but isn't payment for video on stream based on minutes of video watched / delivered? So your calculation seems to be on the wrong basis.
1...313233...105Latest