From owner-freebsd-multimedia@freebsd.org Sun Nov 22 11:11:35 2015 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20890A35E16 for ; Sun, 22 Nov 2015 11:11:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 05BA41588 for ; Sun, 22 Nov 2015 11:11:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 04447A35E15; Sun, 22 Nov 2015 11:11:35 +0000 (UTC) Delivered-To: multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03E36A35E14 for ; Sun, 22 Nov 2015 11:11:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E46491587 for ; Sun, 22 Nov 2015 11:11:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tAMBBYcN034785 for ; Sun, 22 Nov 2015 11:11:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [Bug 204204] [UPDATE] multimedia/gstreamer1 to 1.6.1 and related plugins Date: Sun, 22 Nov 2015 11:11:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olivierd@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2015 11:11:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204204 Olivier Duchateau changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed --- Comment #1 from Olivier Duchateau --- In ports tree, revision r402206 -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-multimedia@freebsd.org Mon Nov 23 10:06:07 2015 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11B9FA35C35 for ; Mon, 23 Nov 2015 10:06:07 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id EDFBE1E6D for ; Mon, 23 Nov 2015 10:06:06 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id EDBF2A35C33; Mon, 23 Nov 2015 10:06:06 +0000 (UTC) Delivered-To: multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC664A35C32 for ; Mon, 23 Nov 2015 10:06:06 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from portscout.freebsd.org (portscout.freebsd.org [IPv6:2001:1900:2254:206a::50:6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC9E31E6C for ; Mon, 23 Nov 2015 10:06:06 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from portscout.freebsd.org ([127.0.1.123]) by portscout.freebsd.org (8.15.2/8.15.2) with ESMTP id tANA667u014551 for ; Mon, 23 Nov 2015 10:06:06 GMT (envelope-from portscout@FreeBSD.org) Received: (from portscout@localhost) by portscout.freebsd.org (8.15.2/8.15.2/Submit) id tANA66l6014550; Mon, 23 Nov 2015 10:06:06 GMT (envelope-from portscout@FreeBSD.org) Message-Id: <201511231006.tANA66l6014550@portscout.freebsd.org> X-Authentication-Warning: portscout.freebsd.org: portscout set sender to portscout@FreeBSD.org using -f Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain MIME-Version: 1.0 Date: Mon, 23 Nov 2015 10:06:06 +0000 From: portscout@FreeBSD.org To: multimedia@freebsd.org Subject: FreeBSD ports you maintain which are out of date X-Mailer: portscout/0.8.1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2015 10:06:07 -0000 Dear port maintainer, The portscout new distfile checker has detected that one or more of your ports appears to be out of date. Please take the opportunity to check each of the ports listed below, and if possible and appropriate, submit/commit an update. If any ports have already been updated, you can safely ignore the entry. You will not be e-mailed again for any of the port/version combinations below. Full details can be found at the following URL: http://portscout.freebsd.org/multimedia@freebsd.org.html Port | Current version | New version ------------------------------------------------+-----------------+------------ audio/libsndfile | 1.0.25 | 1.0.26 ------------------------------------------------+-----------------+------------ If any of the above results are invalid, please check the following page for details on how to improve portscout's detection and selection of distfiles on a per-port basis: http://portscout.freebsd.org/info/portscout-portconfig.txt Thanks. From owner-freebsd-multimedia@freebsd.org Tue Nov 24 03:03:17 2015 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4C78A36EA1 for ; Tue, 24 Nov 2015 03:03:17 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com [IPv6:2607:f8b0:400d:c04::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 74A3B1DDE for ; Tue, 24 Nov 2015 03:03:17 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by qgec40 with SMTP id c40so2561065qge.2 for ; Mon, 23 Nov 2015 19:03:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=to:from:subject:cc:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=4fZsPz78KQjc2Nu7/F2IH6gbrz3hsezYnX7re6zHVT8=; b=ByF4ZUVKkE24o26FGq8+7Xno5Y2LZjuv+7YNdxtd+4MWtyK10E025hULuJWKr9BhLE i0DR9CdepQaa8vhDPGXsWjocgkN8uaEl33KFKzTQSFo/NkLTtPd5EbPByYgrH/jZ02ny iBeWQq6ZNsG6mcEuo9ekFWc5SFUWaLl6cG0nQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:cc:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=4fZsPz78KQjc2Nu7/F2IH6gbrz3hsezYnX7re6zHVT8=; b=jYUcQY9SiMY2aQn75CVQtIiTmHCvVl5suoGDajtRArMkiB6LVXEv+zD09d4ZUEgKM8 YtotHi0H2V3NUnMBXDOwGJMtHzNPAtJJff75RG8vgOxS5rr2Vd5Frsg29bQZ6oLt1Qrs 4y51VU9kZ8LYTIR48UZlXlxsQYy+4Ga73503nKoEmBq3AT7U4lRBsbaC6Wk/LzWTFuyq X+MZ1ymBIr1jBL+LwmRhaiT+rgvMKue/uzhsYiAy4hHyLoKDUuoqPjEqjp1TAsmSLPdv l8G6pnVuASLJhwA+aQwTZnCMf+FNicBBOQZrU+kJfLogBeHyTJdFemys6Airkb/X+h+r 8O3A== X-Gm-Message-State: ALoCoQlCMySxexQ0kWZx3q2nWKB8S1K0Kpdmb7+6peUqXIUJyFqz9jqQVVfzOEASZV90MB/sI+QN X-Received: by 10.140.179.213 with SMTP id z204mr33691709qhz.70.1448334196240; Mon, 23 Nov 2015 19:03:16 -0800 (PST) Received: from [192.168.25.11] ([187.115.184.23]) by smtp.googlemail.com with ESMTPSA id m64sm3739637qhm.1.2015.11.23.19.03.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Nov 2015 19:03:15 -0800 (PST) To: freebsd-multimedia@freebsd.org From: =?UTF-8?B?T3RhY8OtbGlv?= Subject: linux/uvcvideo.h Cc: otaciliodearaujo@gmail.com Message-ID: <5653D36B.5040906@bsd.com.br> Date: Tue, 24 Nov 2015 00:03:07 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2015 03:03:17 -0000 Dears I'm compiling a program that uses the header file linux/uvcvideo.h I think that this file must be on v4l_compat but this file is not in v4l_compat-1.6.3*. This file must be add to v4l_compat or this file is not necessary on FreeBSD? Thanks a lot -Otacilio*** From owner-freebsd-multimedia@freebsd.org Tue Nov 24 08:17:55 2015 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0EB70A35FBD for ; Tue, 24 Nov 2015 08:17:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD4EB181E for ; Tue, 24 Nov 2015 08:17:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9BE8C1FE023; Tue, 24 Nov 2015 09:17:52 +0100 (CET) Subject: Re: linux/uvcvideo.h To: =?UTF-8?B?T3RhY8OtbGlv?= , freebsd-multimedia@freebsd.org References: <5653D36B.5040906@bsd.com.br> Cc: otaciliodearaujo@gmail.com From: Hans Petter Selasky Message-ID: <56541D9A.3090703@selasky.org> Date: Tue, 24 Nov 2015 09:19:38 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5653D36B.5040906@bsd.com.br> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2015 08:17:55 -0000 On 11/24/15 04:03, Otacílio wrote: > Dears > > I'm compiling a program that uses the header file linux/uvcvideo.h > > I think that this file must be on v4l_compat but this file is not in > v4l_compat-1.6.3*. This file must be add to v4l_compat or this file is > not necessary on FreeBSD? > Hi, Currently the v4l_compat only contains V4L1/2 IOCTLs only. What API's do you need? --HPS From owner-freebsd-multimedia@freebsd.org Tue Nov 24 09:43:50 2015 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22537A356AA for ; Tue, 24 Nov 2015 09:43:50 +0000 (UTC) (envelope-from otaciliodearaujo@gmail.com) Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d:c04::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D17661A77 for ; Tue, 24 Nov 2015 09:43:49 +0000 (UTC) (envelope-from otaciliodearaujo@gmail.com) Received: by qgcc31 with SMTP id c31so6493355qgc.3 for ; Tue, 24 Nov 2015 01:43:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=eFTbRPPP9HPzjMPpExCBja7I5Hh0G0SQFKLETUzNBbQ=; b=o/DUeDFroPQUBhtwnhQtBmaZ9pEW6HXh4kcxIcqZ61uZaFWsg8mPpUA+68gtZCkDuG PWRFBLVaDI4sTgZfiCFI4pu/xYrE7JIolQKy/a1b4fGgeUDvk8CbUeQoUz8exC0HZdMB zOCMRA7UKmaiwOCzWMuk0H1cggEwUH7QzY0vDu029JTaJs39GdSW6VH/uzerDZ+Q32y8 xfpY+BA9bSSo0B2WrLlDWEB6ozFuoEyWlTQkA7k4BB3a3DHgU5sg7lp5qZR31fv3EPPv COVK2KKa0QIldE1SW+cAyTswrxvZHcraO9UHCHz1Y5GWecs0Z7uihZRTQDCIQoD26nHl l9Ug== X-Received: by 10.140.107.72 with SMTP id g66mr31815390qgf.86.1448358228933; Tue, 24 Nov 2015 01:43:48 -0800 (PST) Received: from [192.168.25.11] ([187.115.184.23]) by smtp.googlemail.com with ESMTPSA id f66sm3083735qkb.5.2015.11.24.01.43.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Nov 2015 01:43:47 -0800 (PST) Subject: Re: linux/uvcvideo.h To: Hans Petter Selasky , =?UTF-8?B?T3RhY8OtbGlv?= , freebsd-multimedia@freebsd.org References: <5653D36B.5040906@bsd.com.br> <56541D9A.3090703@selasky.org> From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: <5654314A.4040006@gmail.com> Date: Tue, 24 Nov 2015 06:43:38 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56541D9A.3090703@selasky.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2015 09:43:50 -0000 Em 24/11/2015 05:19, Hans Petter Selasky escreveu: > On 11/24/15 04:03, Otacílio wrote: >> Dears >> >> I'm compiling a program that uses the header file linux/uvcvideo.h >> >> I think that this file must be on v4l_compat but this file is not in >> v4l_compat-1.6.3*. This file must be add to v4l_compat or this file is >> not necessary on FreeBSD? >> > > Hi, > > Currently the v4l_compat only contains V4L1/2 IOCTLs only. > > What API's do you need? > > --HPS > Hello Sr. Selasky I'm using a Qualitech C920 camera to get a video stream codified using the hardware of the camera (H264). The default bitrate of the camera is about 3500Mbps, so I need change this value to a smaller. Googling I found a example for Linux that changes the bitrate and I'm using the example on my software on FreeBSD. The code that I need is this below: static void setBitrate(int bmin, int bmax){ int res; struct uvc_xu_control_query ctrl; uvcx_bitrate_layers_t conf; ctrl.unit = 12; ctrl.size = 10; ctrl.selector = UVCX_BITRATE_LAYERS; ctrl.data = &conf; ctrl.query = UVC_GET_CUR; conf.wLayerID = 0; conf.dwPeakBitrate = conf.dwAverageBitrate = 0; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("ctrl_query"); return; } fprintf(stderr, "Bitrate was %d [%d]\n", conf.dwPeakBitrate * 8, conf.dwAverageBitrate * 8); conf.dwPeakBitrate = bmax; conf.dwAverageBitrate = bmin; ctrl.query = UVC_SET_CUR; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("ctrl_query"); return; } fprintf(stderr, "Bitrate request %d [%d]\n", conf.dwPeakBitrate * 8, conf.dwAverageBitrate * 8); ctrl.query = UVC_GET_CUR; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("ctrl_query"); return; } fprintf(stderr, "Bitrate now %d [%d]\n", conf.dwPeakBitrate * 8, conf.dwAverageBitrate * 8); } static void setRCMode(int mode){ int res; struct uvc_xu_control_query ctrl; uvcx_rate_control_mode_t conf; ctrl.selector = UVCX_RATE_CONTROL_MODE; ctrl.size = 3; ctrl.unit = 12; ctrl.data = &conf; ctrl.query = UVC_GET_CUR; conf.wLayerID = 0; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("query"); return;} fprintf(stderr, "RC mode was %d\n", (int)conf.bRateControlMode); conf.bRateControlMode = mode; ctrl.query = UVC_SET_CUR; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("query"); return;} fprintf(stderr, "RC mode request %d\n", (int)conf.bRateControlMode); ctrl.query = UVC_GET_CUR; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("query"); return;} fprintf(stderr, "RC mode now %d\n", (int)conf.bRateControlMode); } So, when I try compile this software I got this errors: cc -I/usr/local/include -I../Capture\ H264 -I../lib -c -o capture.o capture.c capture.c:463:31: error: variable has incomplete type 'struct uvc_xu_control_query' struct uvc_xu_control_query ctrl; ^ capture.c:463:10: note: forward declaration of 'struct uvc_xu_control_query' struct uvc_xu_control_query ctrl; ^ capture.c:472:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:482:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:490:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:501:31: error: variable has incomplete type 'struct uvc_xu_control_query' struct uvc_xu_control_query ctrl; ^ capture.c:501:10: note: forward declaration of 'struct uvc_xu_control_query' struct uvc_xu_control_query ctrl; ^ capture.c:509:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:514:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:518:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ 8 errors generated. Makefile:6: recipe for target 'capture.o' failed gmake: *** [capture.o] Error 1 What is the best solution to this problem? I need add the header file #include ? Thanks a lot! -Otacílio From owner-freebsd-multimedia@freebsd.org Tue Nov 24 09:45:57 2015 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D33EA35722 for ; Tue, 24 Nov 2015 09:45:57 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d:c04::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AFF91C4A for ; Tue, 24 Nov 2015 09:45:56 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by qgec40 with SMTP id c40so6562280qge.2 for ; Tue, 24 Nov 2015 01:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=KmolLFOGagHxvu7PgRppV2BPzfexV3lUjfkFZ3sOlSc=; b=GJh4jf2y4xL9DsfhvQDXD/7ttwHBJx4mMWBJNBIjfK17aJLwt0r6+Rytt7vn/c4jJ4 zT60DFBBQhuSBoIlVXaMXkPUR43ODPbeKTazI0HsytKrqcqV8gryk7e4qReWtH1xnJEm OG9Y21z1BXZA9IMaCRt0T21NCZ557IUOMti+0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=KmolLFOGagHxvu7PgRppV2BPzfexV3lUjfkFZ3sOlSc=; b=k1t6wo/N+5B5bRwguLU00L0do0jiXB1HnsYVQ7wm5XLOSixAcWKlN2zmtojAY6a327 e7tAn9XqIJEbOAUoSBMzMoEMOWKF8jON9XS0x0UnXx8HxxR88Qij1GbUCUFs58B+/VtU T7dqDXfu4ESPxb1zacBR4W/XQMrRv5XcRWApbSxDpKJTsL7+EGbhNcQvWOM3QfukdV67 5+8YeM7220dXINW2LClOj/PXWB4pWlrzp+7w9nblSFDJ6nUYzhqi7e4ZP7LFP4p6Nmh8 l9sUKXiGtcE0wBDmc+J/5/k84fwUOMSxefAOwcQGJBH3t31GFAMxqyoMEbMsV2Jxf6jh W4tg== X-Gm-Message-State: ALoCoQkzAT7EUc3sad2/qZTFqMjvKGOTTjnXQrCzlVqgQd6QUyDrJRnRKIE0h2iu6f8qnZgGHSzS X-Received: by 10.140.239.87 with SMTP id k84mr34799526qhc.87.1448358355838; Tue, 24 Nov 2015 01:45:55 -0800 (PST) Received: from [192.168.25.11] ([187.115.184.23]) by smtp.googlemail.com with ESMTPSA id f7sm3992017qhf.7.2015.11.24.01.45.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Nov 2015 01:45:55 -0800 (PST) Subject: Re: linux/uvcvideo.h To: Hans Petter Selasky , freebsd-multimedia@freebsd.org References: <5653D36B.5040906@bsd.com.br> <56541D9A.3090703@selasky.org> Cc: otaciliodearaujo@gmail.com From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: <565431C8.10309@bsd.com.br> Date: Tue, 24 Nov 2015 06:45:44 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56541D9A.3090703@selasky.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2015 09:45:57 -0000 Em 24/11/2015 05:19, Hans Petter Selasky escreveu: > On 11/24/15 04:03, Otacílio wrote: >> Dears >> >> I'm compiling a program that uses the header file linux/uvcvideo.h >> >> I think that this file must be on v4l_compat but this file is not in >> v4l_compat-1.6.3*. This file must be add to v4l_compat or this file is >> not necessary on FreeBSD? >> > > Hi, > > Currently the v4l_compat only contains V4L1/2 IOCTLs only. > > What API's do you need? > > --HPS > Hello Sr. Selasky I'm using a Qualitech C920 camera to get a video stream codified using the hardware of the camera (H264). The default bitrate of the camera is about 3500Mbps, so I need change this value to a smaller. Googling I found a example for Linux that changes the bitrate and I'm using the example on my software on FreeBSD. The code that I need is this below: static void setBitrate(int bmin, int bmax){ int res; struct uvc_xu_control_query ctrl; uvcx_bitrate_layers_t conf; ctrl.unit = 12; ctrl.size = 10; ctrl.selector = UVCX_BITRATE_LAYERS; ctrl.data = &conf; ctrl.query = UVC_GET_CUR; conf.wLayerID = 0; conf.dwPeakBitrate = conf.dwAverageBitrate = 0; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("ctrl_query"); return; } fprintf(stderr, "Bitrate was %d [%d]\n", conf.dwPeakBitrate * 8, conf.dwAverageBitrate * 8); conf.dwPeakBitrate = bmax; conf.dwAverageBitrate = bmin; ctrl.query = UVC_SET_CUR; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("ctrl_query"); return; } fprintf(stderr, "Bitrate request %d [%d]\n", conf.dwPeakBitrate * 8, conf.dwAverageBitrate * 8); ctrl.query = UVC_GET_CUR; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("ctrl_query"); return; } fprintf(stderr, "Bitrate now %d [%d]\n", conf.dwPeakBitrate * 8, conf.dwAverageBitrate * 8); } static void setRCMode(int mode){ int res; struct uvc_xu_control_query ctrl; uvcx_rate_control_mode_t conf; ctrl.selector = UVCX_RATE_CONTROL_MODE; ctrl.size = 3; ctrl.unit = 12; ctrl.data = &conf; ctrl.query = UVC_GET_CUR; conf.wLayerID = 0; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("query"); return;} fprintf(stderr, "RC mode was %d\n", (int)conf.bRateControlMode); conf.bRateControlMode = mode; ctrl.query = UVC_SET_CUR; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("query"); return;} fprintf(stderr, "RC mode request %d\n", (int)conf.bRateControlMode); ctrl.query = UVC_GET_CUR; res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); if (res) { perror("query"); return;} fprintf(stderr, "RC mode now %d\n", (int)conf.bRateControlMode); } So, when I try compile this software I got this errors: cc -I/usr/local/include -I../Capture\ H264 -I../lib -c -o capture.o capture.c capture.c:463:31: error: variable has incomplete type 'struct uvc_xu_control_query' struct uvc_xu_control_query ctrl; ^ capture.c:463:10: note: forward declaration of 'struct uvc_xu_control_query' struct uvc_xu_control_query ctrl; ^ capture.c:472:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:482:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:490:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:501:31: error: variable has incomplete type 'struct uvc_xu_control_query' struct uvc_xu_control_query ctrl; ^ capture.c:501:10: note: forward declaration of 'struct uvc_xu_control_query' struct uvc_xu_control_query ctrl; ^ capture.c:509:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:514:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ capture.c:518:20: error: use of undeclared identifier 'UVCIOC_CTRL_QUERY' res = xioctl(fd, UVCIOC_CTRL_QUERY, &ctrl); ^ 8 errors generated. Makefile:6: recipe for target 'capture.o' failed gmake: *** [capture.o] Error 1 What is the best solution to this problem? I need add the header file #include ? Thanks a lot! -Otacílio From owner-freebsd-multimedia@freebsd.org Thu Nov 26 18:57:37 2015 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55D73A3AB8C for ; Thu, 26 Nov 2015 18:57:37 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 37A3C1CBA for ; Thu, 26 Nov 2015 18:57:37 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 34350A3AB8B; Thu, 26 Nov 2015 18:57:37 +0000 (UTC) Delivered-To: multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33B81A3AB8A for ; Thu, 26 Nov 2015 18:57:37 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D094C1CB9 for ; Thu, 26 Nov 2015 18:57:36 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: by wmec201 with SMTP id c201so42836199wme.0 for ; Thu, 26 Nov 2015 10:57:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:importance:mime-version :content-type:content-transfer-encoding; bh=lUlMW0n0/aA2o+C6F/CqgDPTf6H8UKNnPmEqcFdOq18=; b=R67+S1oIa0eRZ6SZCt1wjtVDYtkrwMYzBPy25J9hU1uvLE+dAbotOPRqwlGF03LFfV HQAE/dfqrlWmIdSaIMVeyev1D91sik0wtYnBlYvcayD9FMDtamCf6qTPXtlwlalyfriL tMflOMA7khc/PmVkG37a9v6hHFVIMRfci0AJQ5tQk8zlS7PooguLcsx7LOZKo5R5ZJxc PZMdMvLjDzt3sKsvHzB7Wh2o31JYmFCqOwsvY6vMMJlG525vLAbFHZBQNuEixlkBX9/h TvGmIPMU1lXGGXXML/Ft3tqXl81Kb1gOqFdq8JbqeLtHcAOZi05ZP521AW9Zqai06nPP v9ig== X-Received: by 10.28.210.137 with SMTP id j131mr5863130wmg.93.1448564254902; Thu, 26 Nov 2015 10:57:34 -0800 (PST) Received: from localhost ([193.198.56.245]) by smtp.gmail.com with ESMTPSA id l128sm3947024wmf.10.2015.11.26.10.57.34 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Nov 2015 10:57:34 -0800 (PST) Date: Thu, 26 Nov 2015 19:57:19 +0100 From: To: multimedia@FreeBSD.org Subject: ffmpeg core dumps on x264 Message-ID: <20151126195719.00006061@gmail.com> Importance: high X-Priority: 1 (Highest) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2015 18:57:37 -0000 I get crash upon, or ANY other operation on file with x264 codec: # ffprobe file.mp4 Bus error (core dumped) 10.2-RELEASE-p7 Architecture: freebsd:10:x86:32 #0 ff_deblock_v_luma_8_sse2 () at libavcodec/x86/h264_deblock.asm:503 503 libavcodec/x86/h264_deblock.asm: No such file or directory. in libavcodec/x86/h264_deblock.asm [New Thread 2b403080 (LWP 100169/)] Current language: auto; currently asm (gdb) bt #0 ff_deblock_v_luma_8_sse2 () at libavcodec/x86/h264_deblock.asm:503 #1 0x0000000c in ?? () #2 0x2b494f5e in ?? () #3 0x00000000 in ?? () (gdb) l 503 in libavcodec/x86/h264_deblock.asm Dump of assembler code for function ff_deblock_v_luma_8_sse2: 0x28b7ba10 : push %ebx 0x28b7ba11 : push %esi 0x28b7ba12 : sub $0x24,%esp 0x28b7ba15 : mov 0x30(%esp),%eax 0x28b7ba19 : mov 0x34(%esp),%ecx 0x28b7ba1d : mov 0x38(%esp),%edx 0x28b7ba21 : mov 0x3c(%esp),%ebx 0x28b7ba25 : mov 0x40(%esp),%esi 0x28b7ba29 : lea (%ecx,%ecx,2),%esi 0x28b7ba2c : dec %edx 0x28b7ba2d : neg %esi 0x28b7ba2f : dec %ebx 0x28b7ba30 : add %eax,%esi 0x28b7ba32 : movdqa (%esi,%ecx,1),%xmm0 0x28b7ba37 : movdqa (%esi,%ecx,2),%xmm1 0x28b7ba3c : movdqa (%eax),%xmm2 0x28b7ba40 : movdqa (%eax,%ecx,1),%xmm3 0x28b7ba45 : movd %edx,%xmm4 0x28b7ba49 : movd %ebx,%xmm5 0x28b7ba4d : pshuflw $0x0,%xmm4,%xmm4 0x28b7ba52 : punpcklqdq %xmm4,%xmm4 0x28b7ba56 : pshuflw $0x0,%xmm5,%xmm5 0x28b7ba5b : punpcklqdq %xmm5,%xmm5 0x28b7ba5f : packuswb %xmm4,%xmm4 0x28b7ba63 : packuswb %xmm5,%xmm5 0x28b7ba67 : movdqa %xmm2,%xmm6 0x28b7ba6b : movdqa %xmm1,%xmm7 0x28b7ba6f : psubusb %xmm1,%xmm6 0x28b7ba73 : psubusb %xmm2,%xmm7 0x28b7ba77 : por %xmm6,%xmm7 0x28b7ba7b : psubusb %xmm4,%xmm7 0x28b7ba7f : movdqa %xmm1,%xmm6 0x28b7ba83 : movdqa %xmm0,%xmm4 0x28b7ba87 : psubusb %xmm0,%xmm6 0x28b7ba8b : psubusb %xmm1,%xmm4 0x28b7ba8f : por %xmm6,%xmm4 0x28b7ba93 : psubusb %xmm5,%xmm4 0x28b7ba97 : por %xmm4,%xmm7 0x28b7ba9b : movdqa %xmm2,%xmm6 0x28b7ba9f : movdqa %xmm3,%xmm4 0x28b7baa3 : psubusb %xmm3,%xmm6 0x28b7baa7 : psubusb %xmm2,%xmm4 0x28b7baab : por %xmm6,%xmm4 0x28b7baaf : psubusb %xmm5,%xmm4 0x28b7bab3 : por %xmm4,%xmm7 0x28b7bab7 : pxor %xmm6,%xmm6 0x28b7babb : pcmpeqb %xmm6,%xmm7 0x28b7babf : mov 0x40(%esp),%ebx 0x28b7bac3 : pcmpeqb %xmm3,%xmm3 0x28b7bac7 : movd (%ebx),%xmm4 0x28b7bacb : punpcklbw %xmm4,%xmm4 0x28b7bacf : punpcklbw %xmm4,%xmm4 0x28b7bad3 : movdqa %xmm4,0x10(%esp) 0x28b7bad9 : pcmpgtb %xmm3,%xmm4 0x28b7badd : movdqa (%esi),%xmm3 0x28b7bae1 : pand %xmm7,%xmm4 0x28b7bae5 : movdqa %xmm4,(%esp) 0x28b7baea : movdqa %xmm3,%xmm7 0x28b7baee : movdqa %xmm1,%xmm6 0x28b7baf2 : psubusb %xmm1,%xmm7 0x28b7baf6 : psubusb %xmm3,%xmm6 0x28b7bafa : psubusb %xmm5,%xmm7 0x28b7bafe : psubusb %xmm5,%xmm6 0x28b7bb02 : pcmpeqb %xmm7,%xmm6 0x28b7bb06 : pand %xmm4,%xmm6 0x28b7bb0a : pand 0x10(%esp),%xmm4 0x28b7bb10 : movdqa %xmm4,%xmm7 0x28b7bb14 : psubb %xmm6,%xmm7 0x28b7bb18 : pand %xmm4,%xmm6 0x28b7bb1c : movdqa %xmm1,%xmm4 0x28b7bb20 : pavgb %xmm2,%xmm4 0x28b7bb24 : pavgb %xmm4,%xmm3 0x28b7bb28 : pxor (%esi),%xmm4 0x28b7bb2c : pand 0xa8ff00,%xmm4 0x28b7bb34 : psubusb %xmm4,%xmm3 0x28b7bb38 : movdqa %xmm0,%xmm4 0x28b7bb3c : psubusb %xmm6,%xmm4 0x28b7bb40 : paddusb %xmm0,%xmm6 0x28b7bb44 : pmaxub %xmm4,%xmm3 0x28b7bb48 : pminub %xmm6,%xmm3 0x28b7bb4c : movdqa %xmm3,(%esi,%ecx,1) 0x28b7bb51 : movdqa (%eax,%ecx,2),%xmm4 0x28b7bb56 : movdqa %xmm4,%xmm3 0x28b7bb5a : movdqa %xmm2,%xmm6 0x28b7bb5e : psubusb %xmm2,%xmm3 0x28b7bb62 : psubusb %xmm4,%xmm6 0x28b7bb66 : psubusb %xmm5,%xmm3 0x28b7bb6a : psubusb %xmm5,%xmm6 0x28b7bb6e : pcmpeqb %xmm3,%xmm6 0x28b7bb72 : pand (%esp),%xmm6 0x28b7bb77 : movdqa 0x10(%esp),%xmm5 0x28b7bb7d : psubb %xmm6,%xmm7 0x28b7bb81 : pand %xmm6,%xmm5 0x28b7bb85 : movdqa (%eax,%ecx,1),%xmm3 0x28b7bb8a : movdqa %xmm1,%xmm6 0x28b7bb8e : pavgb %xmm2,%xmm6 0x28b7bb92 : pavgb %xmm6,%xmm4 0x28b7bb96 : pxor (%eax,%ecx,2),%xmm6 0x28b7bb9b : pand 0xa8ff00,%xmm6 0x28b7bba3 : psubusb %xmm6,%xmm4 0x28b7bba7 : movdqa %xmm3,%xmm6 0x28b7bbab : psubusb %xmm5,%xmm6 0x28b7bbaf : paddusb %xmm3,%xmm5 0x28b7bbb3 : pmaxub %xmm6,%xmm4 0x28b7bbb7 : pminub %xmm5,%xmm4 0x28b7bbbb : movdqa %xmm4,(%eax,%ecx,1) 0x28b7bbc0 : pcmpeqb %xmm4,%xmm4 0x28b7bbc4 : movdqa %xmm1,%xmm5 0x28b7bbc8 : pxor %xmm2,%xmm5 0x28b7bbcc : pxor %xmm4,%xmm3 0x28b7bbd0 : pand 0xa8ff00,%xmm5 0x28b7bbd8 : pavgb %xmm0,%xmm3 0x28b7bbdc : pxor %xmm1,%xmm4 0x28b7bbe0 : pavgb 0xa8ff40,%xmm3 0x28b7bbe8 : pavgb %xmm2,%xmm4 0x28b7bbec : pavgb %xmm5,%xmm3 0x28b7bbf0 : movdqa 0xa90840,%xmm6 0x28b7bbf8 : paddusb %xmm4,%xmm3 0x28b7bbfc : psubusb %xmm3,%xmm6 0x28b7bc00 : psubusb 0xa90840,%xmm3 0x28b7bc08 : pminub %xmm7,%xmm6 0x28b7bc0c : pminub %xmm7,%xmm3 0x28b7bc10 : psubusb %xmm6,%xmm1 0x28b7bc14 : psubusb %xmm3,%xmm2 0x28b7bc18 : paddusb %xmm3,%xmm1 0x28b7bc1c : paddusb %xmm6,%xmm2 0x28b7bc20 : movdqa %xmm1,(%esi,%ecx,2) 0x28b7bc25 : movdqa %xmm2,(%eax) 0x28b7bc29 : add $0x24,%esp 0x28b7bc2c : pop %esi 0x28b7bc2d : pop %ebx 0x28b7bc2e : ret 0x28b7bc2f : nop End of assembler dump. (gdb) x/i $eip 0x28b7ba32 : movdqa (%esi,%ecx,1),%xmm0