Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F0D99200B4E for ; Sun, 24 Jul 2016 21:29:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EF854160A74; Sun, 24 Jul 2016 19:29:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 921BE160A71 for ; Sun, 24 Jul 2016 21:29:23 +0200 (CEST) Received: (qmail 58848 invoked by uid 500); 24 Jul 2016 19:29:21 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 58651 invoked by uid 99); 24 Jul 2016 19:29:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jul 2016 19:29:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 50EDFC2064 for ; Sun, 24 Jul 2016 19:29:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=usc-edu.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dRHPke39ETSS for ; Sun, 24 Jul 2016 19:29:17 +0000 (UTC) Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 01FA15F3A1 for ; Sun, 24 Jul 2016 19:29:17 +0000 (UTC) Received: by mail-vk0-f53.google.com with SMTP id w127so219127129vkh.2 for ; Sun, 24 Jul 2016 12:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usc-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UHQsBMCEHz2I0yrl9TjU/iTjpSZKQ/dgRCxO5B1woOc=; b=jlqtDHGeOPVDRhh0WeDKwX+op5HT66h/SQ0cZx/RLWzDzmSAE/8i+eUYPrP98QweFf JtS0+ApPkK39ali5KxvGCZwqAN4LDFyRaaMQsNxTHrjvho7i/eeZ9FBiSv02kFY0EgBc pr0+Ui5QbAtcv/J8WZrfNSUxzZ9kEOvlFDUC1oKcnV8dYx7bEWurK439zI56YmxMFRMq K/FC/D/YuxP1910TgDpxt6ix4U2dZATxZ+wwL+aqF0br4LgbmBW3SxtPwzQ1f49ha3UB EwJZpLAL1xdfoDmMoW2L8i0p+jn3pT0ljbfDA47ggJK+STODgrU7mHivQC3dtXyiH8FY ok6Q== 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:from:date :message-id:subject:to:cc; bh=UHQsBMCEHz2I0yrl9TjU/iTjpSZKQ/dgRCxO5B1woOc=; b=aAPwhNbmFteg2nwzKxc4kL2W/eLvIp3fVzRkfgDn17IQeG0WOmsb280x7BS5wOYqjH p6SL9ByawFxDQF56ut2XJNmXUTmKeepj5eKGtj+XlHl6mwx7isbmc6hSN8XS9R2ptSPn ac9jm1nBijABkdpsAA7Qh6IqSGoTer+FgPslkW1n28OAFZj1KhJCoQzW8+xaOErtIxac QkVyyjKszCuE2RoGhOjNqZ1v08p/TwQuVbawGcCYJvUprgQVvAnXBJ409io8SKwlyrR6 M2xbXDMVjhgZvn8FvFYU+8/WMzrqRsi+SCAFW11OFzviOIGArknBc3PkQbzbm3RAzUYS yfdA== X-Gm-Message-State: AEkoouuRA6O1cUGCHLD6JB94nN6gHOz40naNUVoqQip6DpQFezgLQoMM1JT8yE48aHgxBrItL6o4n3vKUFlDzg6h X-Received: by 10.31.70.66 with SMTP id t63mr4872272vka.99.1469388555950; Sun, 24 Jul 2016 12:29:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.145.77 with HTTP; Sun, 24 Jul 2016 12:28:56 -0700 (PDT) In-Reply-To: <52AF7039-7BA9-4A58-B7B0-F05DF3D4EB32@yahoo.com> References: <52AF7039-7BA9-4A58-B7B0-F05DF3D4EB32@yahoo.com> From: Madhav Sharan Date: Sun, 24 Jul 2016 12:28:56 -0700 Message-ID: Subject: Re: Reading video files from HDFS using OpenCV To: "Ron's Yahoo!" Cc: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11484ae0ea2591053866aebd archived-at: Sun, 24 Jul 2016 19:29:25 -0000 --001a11484ae0ea2591053866aebd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ron, Thanks for replying. Unfortunately I could not find a VideoCapture method accepting stream input= . I will look into second option. Will it be similar to copying file from hdfs to a tmp directory and then using tmp file? -- Madhav Sharan On Sun, Jul 24, 2016 at 12:08 PM, Ron's Yahoo! wrote= : > You can create a stream for an HDFS file and have OpenCV read from the > stream. > Other option is to create a yarn job and you can resource localize the > HDFS file so you can run OpenCV just like any other application. > > Thanks, > Ron > > On Jul 24, 2016, at 12:03 PM, Madhav Sharan wrote: > > Hi hadoop users, > > I need some help in reading video files from HDFS. I am processing videos > using OpenCV and opencv is not able to read video file from hdfs. I tried > prefixing path with "hdfs://" but it still does not works. Is there a way > we can directly read from HDFS using opencv? > > > [0] Video capture code - > https://github.com/smadha/pooled_time_series/blob/master/src/main/java/go= v/nasa/jpl/memex/pooledtimeseries/PoT.java#L441 > > > [1] TMP file solution - > https://github.com/smadha/pooled_time_series/blob/master/src/main/java/go= v/nasa/jpl/memex/pooledtimeseries/OpticalTimeSeries.java#L66 > > > -- > Madhav Sharan > > > --001a11484ae0ea2591053866aebd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Ron, Thanks for replying.

Unfo= rtunately I could not find a VideoCapture method accepting stream input.
I will look into second option. Will it be similar to copy= ing file from hdfs to a tmp directory and then using tmp file?

--
Madhav Sharan


On Sun, Jul 24, 2016 at 12:08 PM, Ron's = Yahoo! <zlgonzalez@yahoo.com> wrote:
You can create a stream f= or an HDFS file and have OpenCV read from the stream.
Other option is t= o create a yarn job and you can resource localize the HDFS file so you can = run OpenCV just like any other application.

Thanks= ,
Ron

On Jul 24, 2016, at 12:03 PM, Madhav Sharan <msharan@usc.edu> wrote:

Hi hadoop users,

I need some help in readi= ng video files from HDFS. I am processing videos using OpenCV and opencv is= not able to read=C2=A0video file from hdfs. I tried prefixing path with &q= uot;hdfs://" but it still does not works. Is there a way we can direct= ly read from HDFS using opencv?=C2=A0


[0] Video capture code - =C2=A0= https://github.com/smadha/pooled_time_series/blob/master/src/main/java/gov/= nasa/jpl/memex/pooledtimeseries/PoT.java#L441

--001a11484ae0ea2591053866aebd--