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

    Rachel

    03/24/2023, 3:26 AM
    What problem do you run into with Larix?
    t
    • 2
    • 4
  • c

    carrot

    03/24/2023, 8:00 AM
    Hi, how to do ingest stream using FFmpeg on Cloudflare WebRTC? I'd like to capture my video device, and stream it to WebRTC ingest stream. Before that (Other company) I used it like this.
    Copy code
    /usr/bin/ffmpeg -y -f v4l2 -video_size 320x240 -framerate 25 -i /dev/video0 -vcodec h264 -c:a aac -b:a 160k -ar 44100  -f flv rtmp://wowza.xxx/stream
  • r

    Rachel

    03/24/2023, 11:18 AM
    I don't recommend using ffmpeg as the packetizer is not very stable. gstreamer may be a better choice
  • r

    Rachel

    03/24/2023, 11:19 AM
    However if streaming H264 then it is fine
  • r

    Rachel

    03/24/2023, 11:19 AM
    Yet, ffmpeg doesn't have native support for webrtc/whip, therefore you will need another piece of software to support it
  • c

    carrot

    03/24/2023, 12:54 PM
    What is the simple way to use WebRTC ? I have a video device on Linux, how to do stream Ingest server ?
  • d

    deepdev

    03/24/2023, 4:23 PM
    Have you seen libdatachannel? I’ve had similar question myself for a c++ lib for WebRTC but I guess I need another lib that would do the window capture and h264 encoding. I did find a windows lib that can do the capture think it’s called the 3D streaming toolkit. It’s what I’m looking at as a reference bc I want to build my own native windows (prob for Linux too at some point) full WebRTC encoding and streaming lib that I can connect to CF Stream
  • a

    altryne

    03/24/2023, 6:03 PM
    Hey folks, can I get at least a reply here? Am I using it wrong? It feels ... too big.
  • k

    Kyle_Cloudflare

    03/24/2023, 7:25 PM
    hey @altryne sorry for the delay; right now the size of the SDK could use improvement but we don't have it scheduled to work on immediately. If you can load the SDK in an async manner that would hopefully help reduce the impact it has on your page load performance.
  • a

    altryne

    03/24/2023, 7:27 PM
    hmm for my use-case, I have to load it to be able to track currentTime, so not an option to load async :/ In fact, it seems that I need to load it twice, once it loads with the page, and I need to additionally include it to be able to track current time etc. Thanks for the comment, I'm moving to video JS likely, but thought it makes sense to let you guys know. CF is really good at performance, and this feels like an oversight worth fixing 🙏
  • k

    Kyle_Cloudflare

    03/24/2023, 7:35 PM
    @altryne Gotcha, having to load it twice seems a little bit odd. Lemme chat with our frontend folks on Monday and see if there's something we can recommend to prevent that from being necessary. I totally get if you wanna swap to a different player. We try to address a lot of use cases with our player and sometimes it doesn't quite work for some folks uses. Excited to get you back on our player in the future with future improvements 🙂
  • a

    altryne

    03/24/2023, 7:37 PM
    Sure thing! I don't think my use-case should be supported TBH, I have tons of stuff I want to do with subtitles for Targum, and that code shouldn't be loaded for all folks I think For refrence, here's what I mean by loading twice https://developers.cloudflare.com/stream/viewing-videos/using-the-player-api Not sure it's the same SDK, but the main one loads automatically via Iframe, and then I have this sitting in my bundle (and by extension worker code as my site is in workers) to be able to get the currentTime
  • a

    altryne

    03/24/2023, 7:38 PM
    Ah ok checked, this one is tiny actually, so loading twice is my mistake
  • t

    tt2468

    03/24/2023, 8:51 PM
    You'd probably want to use gstreamer over a custom solution for something like that
  • p

    physxx

    03/24/2023, 11:16 PM
    When using stream what's the lowest delay setup possible? I've tried using the RTMPS playback key and got down to a couple seconds of latency, a couple seconds is perfectly useable but less delay would add a cool factor
  • r

    Rachel

    03/25/2023, 1:03 AM
    Currently WebRTC gives you sub second latency however currently it is in beta. What is your use case?
  • p

    physxx

    03/25/2023, 1:12 AM
    streaming from OBS threw stream then to twitch, also looking to use stream to setup private streams for patreon supporters with super low latency
  • j

    JustDalek_

    03/25/2023, 11:51 PM
    Have we found a solution for the issue with the plater stopping briefly? I cancelled my subscription some time ago, came back to test it because aside from my web player issues I love the cloudflare service..... It still appears to be locking up for viewers all my restreams to other platforms work perfectly
  • j

    JustDalek_

    03/25/2023, 11:53 PM
    I am re-attempting the streaming from one input to another thing again, but how is cloudflare stream still operating with this issue?
  • e

    Erisa | Support Engineer

    03/25/2023, 11:55 PM
    this the official player?
  • j

    JustDalek_

    03/25/2023, 11:56 PM
    Sure is! Web embed, trying the method of sending feed from one stream input to another right now (was last suggested to me) still not working unfortunately
  • j

    JustDalek_

    03/25/2023, 11:56 PM
  • e

    Erisa | Support Engineer

    03/25/2023, 11:57 PM
    interesting, ive not seen any problems like this with the cf player before, neither myself or reported by customers in support tickets 🤔
  • e

    Erisa | Support Engineer

    03/25/2023, 11:57 PM
    do you have a URL that can consistently reproduce it?
  • j

    JustDalek_

    03/25/2023, 11:58 PM
    I can check on my history but I had a thread here with someone else from CF sure thing I am currently live at https://justdalek.com/
  • j

    JustDalek_

    03/25/2023, 11:58 PM
    Also live on all platforms linked within the site if you want to see the restream itself performing well
  • j

    JustDalek_

    03/26/2023, 12:00 AM
    at best, I have had reports of around 10 mins of solid viewing (also my own self tests) and after that it for sure locks up and fails to load
  • j

    JustDalek_

    03/26/2023, 12:00 AM
    from there a refresh might temporarily fix, but again, after some time fails again
  • j

    JustDalek_

    03/26/2023, 12:01 AM
    And here is my previous thread on the matter
  • j

    JustDalek_

    03/26/2023, 12:01 AM
    https://discord.com/channels/595317990191398933/1077076045775241326
1...878889...105Latest