by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Jeremy Lainé
    @jlaine
    Have you tried running the server in verbose mode?
    Is the "server" machine firewalled?
    qube13
    @qube13
    the javascript does not complete the ice gathering
    in chrome I dont get any error message but when I run it in Firefox I get the message "ICE failed, see about:webrtc for more detail"
    When I comment the part in javascript where the ice gathering is completed:
           return new Promise(function(resolve) {
                if (pc.iceGatheringState === 'complete') {
                    resolve();
                } else {
                    function checkState() {
                        if (pc.iceGatheringState === 'complete') {
                            pc.removeEventListener('icegatheringstatechange', checkState);
                            resolve();
                        }
                    }
                    pc.addEventListener('icegatheringstatechange', checkState);
    then the sdp is exchanged but the video stream is not transferred
    qube13
    @qube13
    About the firewall I am not sure, but I run everything on localhost on one PC, so I think there should not be any firewall issues
    Andrew Kralovec
    @AndrewKralovec

    Hey guys,

    Im new to the project, and was hoping for some advice.
    I'm trying to use aiortc allow two clients (browser webcams) to connect to the server, and have the server broadcast both ( and it will only ever be two), video streams to each user. So they can see each other. What example on github would best help me with this ? I was thinking about merging webcam & apprtc. I'll be honest though. Im unsure how to convert the image reciver to a media player. Any advice would be appreciated.

    Tomasz Rojek
    @trojek
    @italojs Did you try to send message to the browser using WebSockets?
    You can use socket.io which works both on python and javascript
    Tomasz Rojek
    @trojek
    Does anyone know how to enable hardware acceleration in server example ?
    Alexander Kozhevin
    @AlexanderKozhevin
    Hello, everyone. I want to make a clone of https://golightstream.com/
    Is there any reliable way to make WebRTC -> RTMP converter with 720p quality at least. ?
    Yury Zhuravlev
    @stalkerg
    Hello all!
    Praveen Mareedu
    @NYUTerminal_gitlab
    Hi Everyone
    I am working on testing aiortc on AWS EC2 servers. I have created a docker of AIORTC and deployed in an ec2 instance .. I want to stream my webcam feed from local Mac to the EC2 instance and back to browser in local machine.
    I have opened all kinds of traffic on my Ec2 instance and send UDP packets from local machine to EC2
    Praveen Mareedu
    @NYUTerminal_gitlab
    I am testing the server example and I can load the interface but I think there is a problem with WEBRTC connection establishment.
    ICE gathering state: new -> gathering -> complete
    ICE connection state: new -> checking -> disconnected
    Signaling state: stable -> have-local-offer -> stable
    Any idea on how to debug this?
    Raghvendra Jain
    @raghavendrajain
    @italojs Could you solve the problem? I tried using data channels, but it does not send the data continuously in the loop. what to do?
    @trojek Hi. I am in same boat as @italojs. I understand how to use WebSockets with browser, but in this case I am unable to send the data from aiortc.
    Ivelin Ivanov
    @ivelin
    I’ve been working on similar problems and have been able to make good progress recently. Ported PeerJS to python. It’s been a battle but well the effort.
    Higher level abstraction over Aiortc that addresses signaling.
    Raghvendra Jain
    @raghavendrajain
    Good work @ivelin. I will look into it, thanks!
    Sohil
    @sohils
    Hi, I need help processing a video frames and sending back data in data channels.
    arpu
    @arpu
    Hello i am on fedora 31 and MediaRecorder does not create any file any hint how i can debug this?
    arpu
    @arpu
    found it
    does the MediaRecorder always encode the incoming stream? or would it bepossible to forward it without reencoding ( h264)
    arpu
    @arpu
    looks very quite here :> is there a other channel like discord or irc slack ?
    Zack Schwartz
    @apexdodge
    I'm using the server example of aiortc which I got working, but I'd like to stream what I receive at the server side to an RTMP endpoint. Does anyone have any guidance on that?
    Nikhil
    @necronomican
    Hello all, I have raised an issue,
    Nikhil
    @necronomican
    This is for pyav but hampers the installation for aiortc, did anyone encounter this while installing aiortc?
    smandava98
    @smandava98
    Hi all. I am having trouble install aiortc on Mac. I keep getting this:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
    If anyone has any insight - would love it!
    Michael Noronha
    @mtn
    Hi, I've got a bit of a basic question -- I have a client receiving a sequence of frames (via a VideoStreamTrack) from a server, and I want to process that sequence of frames on the client. I understand how to process them on the server (in recv, right?), but how can I do it on the client?
    Michael Noronha
    @mtn
    The solution I came up with is pretty simple: in my @pc.on("datachannel") and @pc.on("track") handlers, I check if the other one has been initialized. They happen sequentially, so one of them must have both initialized and from there I set up a function that processes them in a loop
    I'd be interested to hear about better ways of doing this though
    Gerrit
    @gerrito333
    I run some transformation a aiortc video stream and change the transformation at runtime. The switch to another transformations takes some secs and I end up with an accumulated delay on the stream. Is there a way to skip the queued frames and jump to the latests frame to reduce this delay?
    gustavopretto
    @gustavopretto

    Hi, I'm trying to process with OpenCV and python a live video transmission from a WebRTC site: https://webrtc-streamer.herokuapp.com/webrtcstreamer.html?video=Bahia&options=rtptransport%3Dtcp%26timeout%3D60& But I can't open the video with cv2.videocapture (URL).

    How could I open the video that is compatible with OpenCV? I appreciate it if you demonstrate the code.

    Ilyas Salhi
    @ilyas121
    hey everyone, I'm new here and just curious if anyone has done clientjs to serverpy example with multiple datachannels for one peer connection? I modified the example/server in the project's repo to conditionally respons based on the channel label, but I noticed that RTT goes up. Curious if I'm just using asyncio wrong or if anyone has found ways of opening extra channels without hurting latency
    Ilyas Salhi
    @ilyas121
    Interesting thing is that the second channel has the larger RTT's
    Wondering if there's a way to thread each datachannel seperately
    Ilyas Salhi
    @ilyas121
    Also its the act of creating two channels that slows things down, increasing the rate of transmission to 2X the original has better RTT's, super interesting
    boris-savic
    @boris-savic

    Hi everyone. I know this might not be the correct channel for this, but just in case. Has anyone had experience with accepting multiple webrtc sources, encoding to a single tiled video output and then republishing via RTMP to twitch/youtube/... ?

    If i understand the workflow correctly I would first establish a webrtc connection between server and client applications, use ffmpeg (?) to encode to video and then output to rtmp endpoint. In theory seems simple, just checking if anyone has additional knowledge and is willing to share. Especially with ffmpeg I'm not entierly clear how would I arrange tiles or allow server to receive instructions on how to actually tile the video if new participants are added etc...

    boris-savic
    @boris-savic
    or is this something that could be accomplished with MediaRecorded class ?
    AK
    @akh64bit
    Hi everyone 👋. Can some one please point me to python example of establishing the webrtc connection?
    I had a look at the examples in the official git repo of Aiortc, however in all the examples there, webrtc is established using client.js which is JavaScript. Can some point me to code where it is done in python by Aiortc?
    Thanks for your help in advance 😃
    jgeary
    @jgeary
    has anyone used aiortc for a proxy server? or care to sanity check that it makes sense to do that? my goal is to manage separate connections with streaming users (in which case the server is receiving) and viewing users (in which case the server is sending), and be able to write logic re: who receives what. if anyone has even a super simple example of just forwarding video received from one connection to another, that would be super helpful.
    Prabhudatta Das
    @pdcoded
    @jlaine Is there any example you can point me for a simple streaming speech to text ; I am struggling to do that following the https://github.com/aiortc/aiortc/tree/main/examples/server ; where on the server side, I am trying to add speech to text api call and sending it back via data channel ; any blog , direction will be appreciated