From dev-return-9797-archive-asf-public=cust-asf.ponee.io@openmeetings.apache.org Fri May 24 03:37:06 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B234018062F for ; Fri, 24 May 2019 05:37:05 +0200 (CEST) Received: (qmail 46631 invoked by uid 500); 24 May 2019 03:37:04 -0000 Mailing-List: contact dev-help@openmeetings.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openmeetings.apache.org Delivered-To: mailing list dev@openmeetings.apache.org Received: (qmail 46600 invoked by uid 99); 24 May 2019 03:37:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2019 03:37:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 510B7180F34 for ; Fri, 24 May 2019 03:37:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.051 X-Spam-Level: *** X-Spam-Status: No, score=3.051 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Y4-ZBA-Osmmr for ; Fri, 24 May 2019 03:37:00 +0000 (UTC) Received: from mail-it1-f170.google.com (mail-it1-f170.google.com [209.85.166.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A86775F30B for ; Fri, 24 May 2019 03:37:00 +0000 (UTC) Received: by mail-it1-f170.google.com with SMTP id m141so13502843ita.3 for ; Thu, 23 May 2019 20:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=aDrwxiK8HmqDZyM81KxMXu2vhFD3aSrzOtsCc74d4sQ=; b=ut+zqlr8UMm6GHrdjrawVR3LHZL9RujalHJmhQjuSewfjDW86L4IzuJhkZnJELavHy gxYuw5hJZ4Ztrr52bc29noyMFpLMqgqzdnMbkEN9DujscpUNq2iPX+ow6bFLprcM0afL 09RvwLOu734G6Zt0ElIVnM/3IXvoNKinMDbwL0Gi7eazBWUW7Rss6KX5yRGSqKV5JxWS Zs4XyzYhiNIRpG4fgCnWoxHr0ZfxYuWzJx7rWCmZ0WC3hWI6vYNN6TZqBRH8Q6/dyIKV 1qeVOk7dg73dIhR7ytVX3uCGfNPg1eDsGqwXrufGRvc6Hqu/r7yt9PZF+TrNvCfy4/f9 hARg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=aDrwxiK8HmqDZyM81KxMXu2vhFD3aSrzOtsCc74d4sQ=; b=ETH7Jt3HOOoyJKxXpvGfwuEXfnk2gwxf7WgOn+00dMNOGWBQ5/7DLO6+He+ZwrIHhu gAFE3iZxm4ZDjWfv8ikPU+Gc4zfUgUtCR+Xs4eg3cFlgGaJ+qMQ2LoJ+91MQaOOVqgQ2 poD4RV7hWZ9FcN4gYtPkL6JvDIls8vvwS1lRmg9zHeBJ0+lDcNFJwB5axzr2blvZ1i4/ +bhzFZ9KWs9GtRuD+n0zuwqzA/6P6tkv3i/sQRIIkIblWTuvUDisptoG1QcCCOJ+PaRJ 3x3dxkho38ywE3QxJkkJw/k6toPH8ckl22sHoVc1RvVthf0zUDhvKcVxl1TQaJbU+Uc2 QpWQ== X-Gm-Message-State: APjAAAUTLuht46EF177NhqLCGOOdWfWAkaUoaStut/kp2f5O1Y3Xsv/C LM2U+bnCKbhxWZs/a4uxEN1Bvq55VbvXVD18K8Oei8yG X-Google-Smtp-Source: APXvYqx9iMTXhjWwYZwNfzclz2I5Z9oguwmwMYQBjwPnVFKrKEm2a+yIcVBCYkAiuVhFv2Nq8ZFLHxJuXbCx8S4qZn0= X-Received: by 2002:a02:6a19:: with SMTP id l25mr23398396jac.123.1558669019797; Thu, 23 May 2019 20:36:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Maxim Solodovnik Date: Fri, 24 May 2019 10:36:48 +0700 Message-ID: Subject: Re: Questions on Screen Recording To: dev Content-Type: multipart/alternative; boundary="0000000000003f7564058999e920" --0000000000003f7564058999e920 Content-Type: text/plain; charset="UTF-8" Hello, actually OM server code need to be corrected to receive "screen stream" from ffmpeg It requires some additional parameters to be passed And currently some parameter are passed in Red5 specific way [1] So the implementation I would implement: 1) check if ffmpeg is available on client machine 2) YES: create ffmpeg process with all required parameters (here is sort of example [2]) instead of Java encoder 3) NO: use java encoder 4*) contribute it back :))) [1] https://github.com/apache/openmeetings/blob/4.0.x/openmeetings-core/src/main/java/org/apache/openmeetings/core/remote/ScopeApplicationAdapter.java#L235 [2] https://om.alteametasoft.com/openmeetings/docs/ExternalVideo.html On Thu, 23 May 2019 at 11:15, Sonia SWEngineer wrote: > Thanks very much Maxim. Yes, I meant better compression so the screen data > uses less bandwidth. > Regarding replacement of the current encoder with ffmpeg: > - Can this be achieved by streaming the screen with ffmpeg with options: -i > :0.0+0,0...-c:v libx264......-f flv rtmps://...? > - Or, by continue using the EncodeJob and SendJob logic but compressing the > image(s) with ffmpeg in the "encode" method before pushing them as > videoData? > If this is the way, then will ffmpeg need to output a ByteArrayOutputStream > that is compressed by libx264 in the encode method? > > Regards, > > Sonia > > > > On Wed, May 22, 2019 at 3:14 AM Maxim Solodovnik > wrote: > > > Hello Sonia, > > > > hand-made ScreenV1 codec is being used for screen-share > > the size of keyframe is roughly equals to width*height*4*scale (scale is > > calculated based on selected image quality [1]) > > non key frame size depends on what was changed > > > > This hand-made encoder can be replaced with ffmpeg code modification will > > be required > > > > Do you mean "better compression" by "reduce the length of the encoded > > screen data"? > > If so you can use x264 compression, most probably will work better > > > > > > [1] > > > > > https://github.com/apache/openmeetings/blob/master/openmeetings-screenshare/src/main/java/org/apache/openmeetings/screenshare/gui/ScreenSharerFrame.java#L784 > > > > On Wed, 22 May 2019 at 10:26, Sonia SWEngineer > > > wrote: > > > > > Good day all, > > > This message is to request your advice on the following questions > > regarding > > > Screen Recording: > > > > > > 1- What could be a rough estimate on how much bandwidth is needed for > > > screen recording with RTMPS using the Java applet? > > > The NetworkCalculator link below does not specify how much is needed > for > > > screen sharing/recording. > > > https://openmeetings.apache.org/NetworkCalculator.html > > > > > > 2-Are there open source or commercial options to reduce the length of > the > > > encoded screen data for RTMPS at this time? > > > > > > Thanks in advance for any advice on this regard. > > > > > > > > > -- > > WBR > > Maxim aka solomax > > > -- WBR Maxim aka solomax --0000000000003f7564058999e920--