From owner-freebsd-multimedia@FreeBSD.ORG Tue Oct 14 14:28:07 2014 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0A7E9F86 for ; Tue, 14 Oct 2014 14:28:07 +0000 (UTC) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 872DE3D3 for ; Tue, 14 Oct 2014 14:28:06 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id gi9so8457601lab.7 for ; Tue, 14 Oct 2014 07:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=7KFXN0IBeOw+hXSPAAMOJcqnj3dUQIu2pJvKtTuXia0=; b=anf1VSXM/w3NoHmJ1G/qKW8TtdUPTU8y9L3vKPQIKdScMVZCyFKsqSz+ZAsx8e9DND ZrsIwtKMH2et+DE6vXOjWPlBYe7LT1AaasQOkey7348gPcilk8wgC9VfSDAqx7OOHWzf n+daCe9JM1yxtNUT75k+OY4UUOy0pmasUzQz2Hf/5y5uCIMWUGeB+nFScLUvfuCjta3u 7Xps+hOaCBbDbWpkUrEbTw31LS7kc49tpAC8MewO9GidJhdW/Ok0DoVws6fA8MjOUMIk 8zvaRkQzo8uyIH87Bbe4Ops9iiBLHteyBdyUWSwif0A/2CkShwL7/BUV1bSLb5WuR8X3 kMTA== X-Received: by 10.152.205.44 with SMTP id ld12mr5663398lac.53.1413296883828; Tue, 14 Oct 2014 07:28:03 -0700 (PDT) Received: from lazlar.no-ip.biz (213-64-218-92-no126.business.telia.com. [213.64.218.92]) by mx.google.com with ESMTPSA id e3sm943462lam.26.2014.10.14.07.28.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Oct 2014 07:28:03 -0700 (PDT) Message-ID: <543D32F2.4030007@gmail.com> Date: Tue, 14 Oct 2014 16:28:02 +0200 From: Rolf Nielsen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: multimedia@FreeBSD.org Subject: Transmitting webcam Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2014 14:28:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've recently acquired a webcam, and I've got it working nicely with the help of webcamd and pwcview. Now I want to do the following. (I want to do them simultaneously). 1. (This is a non-problem, as it took me all of six minutes to get it working, but I include it for completeness). Record the webcam, using motion detection, and save it as a video file on my HDD. 2. Take stills at regular intervals (something like once or twice a minute) and have these stills transmitted on the web. I've figured out how to make pwcview take snapshots, and I guess I could have it call a script that uploads the file somewhere. However, I want it made available as a very slow video stream, so it updates itself when someone views it. The reason I don't want to use the video file is that I want the stills stream updated even if there's no motion. And now for my questions. 1. I'm behind a router to which I have no admin access, and that doesn't allow inbound connections, so does any of you know a streaming service I could use? Preferably one to which I can upload a jpeg once or twice a minute. And preferably free, but I'm willing to pay a reasonable amount, if necessary. It has to have the option to only allow selected people to view the stream. 2. In case uploading a jpeg once in awhile isn't an option, is there a way to encode a video stream and stream it to the server which then streams it on the web? And how can I generate a video stream from files that do not yet exist when the encoder is started? If I output all snapshots to the same filename and tell ffmpeg to loop it, it only reads the file once, and generates a stream of identical frames. Any assistance will be much appreciated. Regards, Rolf -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUPTLyAAoJEPJMW41Co4JgaCcP/2g2h2MFRw/VrfZ2dLyfbXtH qmao9u+/GDzTgBphML4yrm0ANhODQun9FPl3ZIJ4XkmKNH+qhF+AytMuUob2QnzC mLR2KYYgzPcmJPNaDmYa82lmG+oYQVSwQMgWLMLjX06x5zoTHtRsT+30oR9Cdn+P yXnb1Ra3SIX04bV7a0MCLF6kAW/JvZ7VArGYjtLbRZ0X/kJct/llu3CosxS/Nd3e tiD7PHrU0agk9NZgrWU7lR05LF/t8VKiXJMWdm09WempC0NP28BK2bpkJPk2sfCX sIPkVPcrkIwdsfBat/Gil8SkuLJlS7C8Klb5Dg9CAesqJx13i2ovobXNnjK9y0nn UoqMYp8vnJwYygC2JeWIAoE3fVKmx8zKxvEbUYQ9isupUTH5aACg3woqiutpQriE lpBJ+jW17WCsbz/iOsxBOjmhaMQYkmK8Q3SKqyFNw6eivm8UequVIQ4mECm9Lyyb +xpS2eUNSH52r2vnYh8vwNEF2NPq9RTRNf+OA92v+vxcyvrNv/Al3TQ+6hYHhG3L oyHsaAt38P+gEDSboqXKQYfnGmJ5EE9GbXc4LHVb6PcuqLcCln9X00z/ovpGxOgO cYmpkEf24dBUKrrH1oxGjYM23OZd1yeD0tcderviTphX7q/0nH6Yt2ofNjpWqiZL EcO7D4JMs4pBbcqBjNY/ =XboN -----END PGP SIGNATURE-----