Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Creating barrel distortion of video Date: Wed, 9 Mar 2016 12:52:50 +1100 Lines: 25 Message-ID: References: <837ce225-4dbb-43c5-b473-273e73d89263@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de VBPLBe3UU5rqiDyDsAvNmwyP80KqRueh2m2/ClDT/v9g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'used.': 0.05; 'cc:addr :python-list': 0.09; 'here?': 0.09; 'stored': 0.10; 'python': 0.10; 'python.': 0.11; 'wed,': 0.15; '2016': 0.16; 'backgrounds': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'latter,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'odd': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'do.': 0.22; 'features,': 0.22; 'file.': 0.22; 'trying': 0.22; '(or': 0.23; 'seems': 0.23; 'examples': 0.24; 'header:In-Reply-To:1': 0.24; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'correct': 0.28; 'fork': 0.29; 'index,': 0.29; 'received:209.85.213.174': 0.29; "i'm": 0.30; 'though,': 0.32; 'file': 0.34; 'this?': 0.34; 'list': 0.34; 'advice': 0.35; 'received:google.com': 0.35; 'quite': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'received:209.85.213': 0.37; 'thought': 0.37; 'seem': 0.37; 'received:209': 0.38; 'mailing': 0.38; 'end': 0.39; 'google': 0.39; 'sure': 0.39; 'group,': 0.60; "you'll": 0.61; 'utilize': 0.61; 'video': 0.62; 'different': 0.63; 'places': 0.64; 'due': 0.65; 'mar': 0.65; 'rendering': 0.76; 'chrisa': 0.84; 'optical': 0.84; 'to:none': 0.91; 'optics': 0.93; 'insane': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-transfer-encoding; bh=qJE2ssgUWY8s/1p5IGLa9+873guxaoFzPjfs9MZ9H5E=; b=GGF9r64+Xs0GeOmb19+stmYVBBvO+rNvAUIICClPMvzICkE9LDYX9NPMAlvPtHzJU+ I50LvkxCjsLSimw4PqQ+beHkAri+DVRqUMVIG6a5BAgeOqBdxSfVruKU8U1MotRMn+0o EcCzVa5vAjoRRNzpyJtq73XNqVgX7eDlScvXzH1L70kfuxV3RDV1VqMHJLvuMNsEuqQZ cj4NUB8dKnToV/RoXeNx0RrMC/D46OEQT1JOTbKNNmMPKvb1JGiq529QjZ52d9kdS4Iv JoBvfs05lMy/1J0ADhucwWm41552t2NO3HlB6VOA6kImSWKlumP1uJlhySSd3hCcBpjV IRBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-transfer-encoding; bh=qJE2ssgUWY8s/1p5IGLa9+873guxaoFzPjfs9MZ9H5E=; b=fawZPfRjOmDsCKrO58B3QUY+1lyVdmRBMq6f6ye6rA9oMMIGU6FWQ4xHnZfIevYmwb ejGt4r+5CFjAWEf9wNsnFQUkxd2yA1HHcdPR1vGN6gyfTDPq0sc+lUkWwRYRYO/eL8Ju eSVTA6EtsEwDWXZcqvpR2EgTaqLWTdNzwKAZQ9+OuMlQm80vyB1ZcD0EXkbnVyRqZ1KE j4QVKBDGPwMtvvn6L7zzUwKyo5eFt50SaVy/17xLhLQ2w9rlLlR3UrkjUnbmoJdgIVHU +NHj+trO0QpiM7Y9XqZi22niHv2dFmvg9Xl08lqwsYBFfXvcVqYlDgA7GM5tQc2H4y+v v6Pg== X-Gm-Message-State: AD7BkJJ2BxsBGo6a5GTV/Nq1nCBver7FYbv+SWgYjL5FW3ceAfPldzSBEHioP+mDCZGRSP6tyJ6rWarg+qdUag== X-Received: by 10.50.41.106 with SMTP id e10mr23015032igl.94.1457488370947; Tue, 08 Mar 2016 17:52:50 -0800 (PST) In-Reply-To: <837ce225-4dbb-43c5-b473-273e73d89263@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104376 On Wed, Mar 9, 2016 at 12:32 PM, wrote: > This may seem like an odd request for the main python google group, but I= thought this question might have answers coming from different backgrounds= that utilize python. > > I'm trying to find a way of rendering an optical distortion on a video I = will be presenting through the use of a head-mounted display. This distorti= on is necessary to correct the video due to the optics being used. Any advi= ce on a module(s) or examples that already do this? > Hi! Seems like a perfectly reasonable request; there are tens of thousands of packages listed on the Python Package Index, and this mailing list is one of the best places to find advice! Are you playing the video in real-time, or is it stored in a file that you'll end up playing? If the latter, I would recommend looking into FFMpeg (or its fork AVConv), which has an insane number of features, and quite likely has what you want. It'll read in a file and write out a file. If it's real-time, though, I'm not sure what's best to do. Do you know exactly what distortion you're trying to perform here? ChrisA