From owner-freebsd-multimedia Sun Nov 17 2:37:42 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93C1737B401 for ; Sun, 17 Nov 2002 02:37:40 -0800 (PST) Received: from smtp4.wanadoo.nl (smtp4.wanadoo.nl [194.134.35.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 288C043E6E for ; Sun, 17 Nov 2002 02:37:36 -0800 (PST) (envelope-from steve@sohara.org) Received: from ams-gw.sohara.org (i2203.vwr.wanadoo.nl [194.134.216.164]) by smtp4.wanadoo.nl (Postfix) with SMTP id 17A123EAFF; Sun, 17 Nov 2002 11:37:33 +0100 (CET) Date: Sun, 17 Nov 2002 11:37:28 +0100 From: Steve O'Hara-Smith To: Stephen Roome Cc: freebsd-multimedia@freebsd.org Subject: Re: BT848 docs Message-Id: <20021117113728.266d3243.steve@sohara.org> In-Reply-To: <20020927214316.C183@dylan.home> References: <20020927214316.C183@dylan.home> X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i386-portbld-freebsd4.7) X-Face: %]+HVL}K`P8>+8ZcY-WGHP6j@&mxMo9JH6_WdgIgUGH)JX/usO0%jy7T~IVgqjumD^OBqX,Kv^-GM6mlw(fI^$"QRKyZ$?xx/ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 27 Sep 2002 21:43:16 +0100 Stephen Roome wrote: It looks like nobody else has anything to say on this, I'll see what I can do. SR> I'm guessing that the lack of docs is because the very few people that SR> write much code to use the bt848+tuner have been reading this mailing SR> list since long before the meteor driver even existed. man meteor is about as good as it gets. I have a PDF of the BT848 documentation too, but it's real chip documentation. SR> How to get signal strength out of my tuner, the TVTUNER_GETSTATUS only SR> ever seems to return 120->124 but this doesn't seem to reliably be SR> concerned with whether it's actually tuned in or not. METEORGSIGNAL SR> (which looked like I hopeful case) doesn't work for me. (ioctl returns SR> -1) That's for frame sync signalling :) TVTUNER_GETSTATUS is supposed to do what you want (it's also what the scan code in fxtv uses). Probably the tuner hardware isn't giving much feedback, sadly this is common. SR> Also is it possible to obtain some sort of raw access to the data, I SR> think I mean to bypass the dma stuff in the driver (or tell the driver SR> to ignore syncs and vbi and just pass me unadulterated bits from the SR> tuner), but I wouldn't want to have to do the dma myself (I don't SR> think so anyway, I just don't know how one would go about it.) Hmm you can put it in continuous capture mode and either mmap the buffer or read the frame from /dev/bktr0 whenever you like (see sample code in man meteor). You can't get unadulterated bits from the tuner, there aren't any, but this will get you the video in as good (or bad) a state as the decoder got it. The tuner is connected directly to the BT848 which has all the video decode, colour burst handling and so forth, it's basically a single chip TV with a PCI bus interface. You can't bypass the DMA because the chip only has a couple of line buffers and *must* dump the data into the main memory frame buffer or lose it. The transfer is controlled by a programmable DMA controller (it really puts the R in RISC) so you just have to select the format you would like to see. The actual video decode is in YUV so any of the YUV formats is close to the original data. To get any closer would take a rewrite of the driver. The driver will try and sort out syncs and VBI but you don't get bothered by it unless you go looking for it. If it can't sync the signals probably garbage anyway :) SR> I think really what I'm aiming for is the ability to tune the tuner to SR> xMHz then to have an ioctl to tell me what strength signal the card SR> thinks it's got and then some device that I could just read() in the SR> style of say /dev/dsp. That's there, but it seems that your tuner isn't being very informative about the signal quality. -- C:>WIN | Directable Mirrors The computer obeys and wins. |A Better Way To Focus The Sun You lose and Bill collects. | licenses available - see: | http://www.sohara.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Nov 18 6: 6:47 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9414437B401 for ; Mon, 18 Nov 2002 06:06:45 -0800 (PST) Received: from smtp.web.de (smtp01.web.de [217.72.192.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0B9343E3B for ; Mon, 18 Nov 2002 06:06:43 -0800 (PST) (envelope-from g.w.k@web.de) Received: from [213.148.149.130] (helo=hunter.muc.macsch.com) by smtp.web.de with esmtp (WEB.DE(Exim) 4.91 #2) id 18DmXl-0000Db-00; Mon, 18 Nov 2002 15:06:29 +0100 Subject: Re: G550 dvi,dual-head problem From: "Georg-W. Koltermann" To: Ken Marx Cc: FreeBSD Multimedia , kmarx@vicor-nb.com In-Reply-To: <3DD4648C.C641DC6A@vicor.com> References: <3DD4648C.C641DC6A@vicor.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 18 Nov 2002 15:07:05 +0100 Message-Id: <1037628431.439.38.camel@hunter.muc.macsch.com> Mime-Version: 1.0 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Ken, I notice that your X server senses the very same monitor on both heads via DDC. I had the same problem with my Radeon-based laptop when I hooked up an external LCD via analog. I didn't try with my G550 at home because I have just one display at home. I think XFree86 gets confused if it finds an LCD (or maybe the same monitor type in general) on more than one head. I found that renaming X11R6/lib/modules/libddc.a to something else, e.g. libddc.a.bad, helped. The X server would then just consult the config file and not try to be smart and identify the monitors by itself (i.e. by DDC). If you can confirm that this fixes the problem for you, too, maybe a report to XFree86 would be in order. I wasn't brave enough, I thought maybe it was just me who got things wrong. -- Regards, Georg. Am Fr, 2002-11-15 um 04.05 schrieb Ken Marx: > Hi, > > I'm trying to get a a dual-head set up going using > - Matrox G550 dvi card > - neovo 17" lcd/dvi monitor > - impression 15" lcd monitor (analog) > > - 4.7-RELEASE FreeBSD > - XFree86 Version 4.2.1 > o With the linux mga_drv.o, mga_hal_drv.o > copied into lib/modules/drivers > > I can get either monitor to work independently, > and the 17"dvi monitor runs in digital mode. > > However, I can't get the dual head bit to work. > I'm attaching the /etc/X11/XF86Config file > and the stderr. But the salient bits are: [...] > (II) MGA(0): I2C bus "DDC" initialized. > (II) MGA(0): I2C device "DDC:ddc2" registered. > (II) MGA(0): I2C device "DDC:ddc2" removed. > (II) MGA(0): I2C device "DDC:ddc2" registered. > (II) MGA(0): I2C device "DDC:ddc2" removed. > (II) MGA(0): I2C Monitor info: 0x8354000 > (II) MGA(0): Manufacturer: AIC Model: 2171 Serial#: 0 > (II) MGA(0): Year: 2002 Week: 26 > (II) MGA(0): EDID Version: 1.3 > (II) MGA(0): Digital Display Input > (II) MGA(0): Max H-Image Size [cm]: horiz.: 35 vert.: 28 > (II) MGA(0): Gamma: 2.20 [...] > (II) MGA(1): I2C Monitor info: 0x847e400 > (II) MGA(1): Manufacturer: AIC Model: 2171 Serial#: 0 > (II) MGA(1): Year: 2002 Week: 26 > (II) MGA(1): EDID Version: 1.3 > (II) MGA(1): Digital Display Input > (II) MGA(1): Max H-Image Size [cm]: horiz.: 35 vert.: 28 > (II) MGA(1): Gamma: 2.20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Nov 18 7: 1:10 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7065637B401 for ; Mon, 18 Nov 2002 07:01:09 -0800 (PST) Received: from hindenburg.eboai.org (hindenburg.eboai.org [206.183.134.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id D689E43E9C for ; Mon, 18 Nov 2002 07:01:08 -0800 (PST) (envelope-from chip@chocobo.cx) Received: by hindenburg.eboai.org (Postfix, from userid 1000) id BD1E55E3F8; Mon, 18 Nov 2002 10:01:07 -0500 (EST) Date: Mon, 18 Nov 2002 10:01:07 -0500 From: Chip Marshall To: "Georg-W. Koltermann" Cc: Ken Marx , FreeBSD Multimedia , kmarx@vicor-nb.com Subject: Re: G550 dvi,dual-head problem Message-ID: <20021118150107.GA76172@chocobo.cx> Reply-To: chip@chocobo.cx Mail-Followup-To: "Georg-W. Koltermann" , Ken Marx , FreeBSD Multimedia , kmarx@vicor-nb.com References: <3DD4648C.C641DC6A@vicor.com> <1037628431.439.38.camel@hunter.muc.macsch.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <1037628431.439.38.camel@hunter.muc.macsch.com> X-URL: http://www.chocobo.cx/chip/ X-OS: FreeBSD 4.6-RELEASE-p2 i386 up 3 days User-Agent: Mutt/1.5.1i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On November 18, 2002, Georg-W. Koltermann sent me the following: > I had the same problem with my Radeon-based laptop when I hooked up an > external LCD via analog. I didn't try with my G550 at home because I > have just one display at home. =20 I had a similar problem with my Radeon chipset in my laptop, I found that adding Option "NoVBE" to the section for the screen 0 device section fixed the problem. --=20 Chip Marshall http://www.chocobo.cx/chip/ GCM/CS d+(-) s+:++ a21>? C++ UB++++$ P+++$ L- E--- W++ N@ o K- w O M+ V-- PS+ PE Y+ PGP++ t+@ R@ tv@ b++@ DI++++ D+(-) G++ e>++ h>++ r++ y? --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE92QCz8vyTVl6qbdQRAmJwAKC2gk0LoYDWDmuxcYDw32pyOeWhaACg2i1a GEJaCDymizfy3J0YVf2CWV0= =Weg1 -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Tue Nov 19 3:34: 3 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B22037B401 for ; Tue, 19 Nov 2002 03:34:01 -0800 (PST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DD2943E97 for ; Tue, 19 Nov 2002 03:33:59 -0800 (PST) (envelope-from uzs106@ibm.rhrz.uni-bonn.de) Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18E6di-0007H4-00 for freebsd-multimedia@freebsd.org; Tue, 19 Nov 2002 12:33:58 +0100 Received: from [80.133.101.122] (helo=moritz.alleswirdgruener) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18E6dh-0001bx-00 for freebsd-multimedia@FreeBSD.ORG; Tue, 19 Nov 2002 12:33:57 +0100 Received: from localhost (localhost [127.0.0.1]) by moritz.alleswirdgruener (8.12.6/8.12.6) with ESMTP id gAJBKVij000215 for ; Tue, 19 Nov 2002 12:20:31 +0100 (CET) (envelope-from uzs106@ibm.rhrz.uni-bonn.de) Date: Tue, 19 Nov 2002 12:20:31 +0100 (CET) From: Heiko Recktenwald X-Sender: uzs106@localhost To: freebsd-multimedia@FreeBSD.ORG Subject: [mpeg4ip - Open Discussion] RE: about the mp4live's video capture card??? (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Well, I asked about mp4live support in the Cisco forum, here is maersks reply. He did bring ogg to mp4s, there is allready mp3, whatever the gods in Cupertino say. Anyway, havent found mp4live in the mpeg4ip port. Live streaming. Apples QTBroadcaster shouldnt be the only option. I thought mp4live supports video4linux, maybe this isnt true. H. http://www.uni-bonn.de/~uzs106/ ---------- Forwarded message ---------- Date: Tue, 19 Nov 2002 03:05:39 -0800 From: noreply@sourceforge.net To: noreply@sourceforge.net Subject: [mpeg4ip - Open Discussion] RE: about the mp4live's video capture card??? Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=1761431 By: maersk Hi Heiko. Though Dave has always said that mp4live was/is very Linux specific, that's not completely true. It ought not be that hard to get it running on xBSD supporting OSS and a video capture API. The GUI ought to be pretty platform independent relying on SDL and gtk. I also assume that the encoders (primarily lame, faac and XviD) are platform independent. Now back to the sources then the audio_oss_source.cpp ought to work on FreeBSD too. Is there any difference between the Linux OSS API and the FreeBSD one ? All you have to do is to make FreeBSD changes to the video_v4l_source.cp file to support the FreeBSD video capture API - if any exist. I'm doing something similar myself creating two new files (audio_rtp_source.cpp and video_rtp_source.cpp) which takes input from multicasted MPEG-2 TS in RTP. This approach is in nature platform independent, but needs something else to create the mutlicasted MPEG-2 streams. So good luck - it ought not be that difficult - maybe somebody else out there can help - anybody out there being FreeBSD users with a clue ? --PMM ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge and visit: https://sourceforge.net/forum/monitor.php?forum_id=59136 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Tue Nov 19 9:46:25 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13B2337B401 for ; Tue, 19 Nov 2002 09:46:24 -0800 (PST) Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BB0C43E75 for ; Tue, 19 Nov 2002 09:46:23 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd11.sul.t-online.de by mailout05.sul.t-online.com with smtp id 18ECS5-0005Pw-05; Tue, 19 Nov 2002 18:46:21 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[80.131.109.186]) by fmrl11.sul.t-online.com with esmtp id 18ECRu-21HyaGC; Tue, 19 Nov 2002 18:46:10 +0100 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) by Andro-Beta.Leidinger.net (8.12.6/8.12.6) with ESMTP id gAJHjwZ7028105; Tue, 19 Nov 2002 18:45:58 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.6/8.12.6) with SMTP id gAJHjvo7009455; Tue, 19 Nov 2002 18:45:57 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Tue, 19 Nov 2002 18:45:57 +0100 From: Alexander Leidinger To: Heiko Recktenwald Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: [mpeg4ip - Open Discussion] RE: about the mp4live's video capture card??? (fwd) Message-Id: <20021119184557.7bf20a60.Alexander@Leidinger.net> In-Reply-To: References: X-Mailer: Sylpheed version 0.8.5claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 19 Nov 2002 12:20:31 +0100 (CET) Heiko Recktenwald wrote: > Now back to the sources then the audio_oss_source.cpp ought to work on FreeBSD > too. Is there any difference between the Linux OSS API and the FreeBSD one ? If the audio device is mmap()ed, then you have to be carefull. My short advise without seeing the code: do everything (ioctl()s) you can do before the mmap(). And even then, there may be a ioctl() which you have to do before another... I don't remember what I fixed in quakeforge1 to get it working, but it was something like the above. Bye, Alexander. -- Secret hacker rule #11: hackers read manuals. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Tue Nov 19 11: 5: 9 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7938537B401 for ; Tue, 19 Nov 2002 11:05:08 -0800 (PST) Received: from smtp5.wanadoo.nl (smtp5.wanadoo.nl [194.134.35.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF96E43E8A for ; Tue, 19 Nov 2002 11:05:07 -0800 (PST) (envelope-from steve@sohara.org) Received: from ams-gw.sohara.org (rot2-p0583.dial.wanadoo.nl [62.234.200.71]) by smtp5.wanadoo.nl (Postfix) with SMTP id 762587527A; Tue, 19 Nov 2002 20:05:04 +0100 (CET) Date: Tue, 19 Nov 2002 20:05:00 +0100 From: Steve O'Hara-Smith To: Heiko Recktenwald Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: [mpeg4ip - Open Discussion] RE: about the mp4live's video capture card??? (fwd) Message-Id: <20021119200500.7cc3c454.steve@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i386-portbld-freebsd4.7) X-Face: %]+HVL}K`P8>+8ZcY-WGHP6j@&mxMo9JH6_WdgIgUGH)JX/usO0%jy7T~IVgqjumD^OBqX,Kv^-GM6mlw(fI^$"QRKyZ$?xx/ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 19 Nov 2002 12:20:31 +0100 (CET) Heiko Recktenwald wrote: HR> All you have to do is to make FreeBSD changes to the HR> video_v4l_source.cp file to support the FreeBSD video capture API - if HR> any exist. Feel free to use the grab_bsdbktr.c from the ffmpeg port as a basis for changing that code. It doesn't look like it should be too much trouble. A document specifying what the entry points are and what they are supposed to do would help. -- C:>WIN | Directable Mirrors The computer obeys and wins. |A Better Way To Focus The Sun You lose and Bill collects. | licenses available - see: | http://www.sohara.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Tue Nov 19 11:23:43 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E433437B401 for ; Tue, 19 Nov 2002 11:23:42 -0800 (PST) Received: from wrzx35.rz.uni-wuerzburg.de (wrzx35.rz.uni-wuerzburg.de [132.187.3.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 862AA43E4A for ; Tue, 19 Nov 2002 11:23:35 -0800 (PST) (envelope-from q@uni.de) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx35.rz.uni-wuerzburg.de (8.8.8/8.8.8/uniwue-MM-1.05) with ESMTP id UAA11170 for ; Tue, 19 Nov 2002 20:23:27 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by virusscan.rz.uni-wuerzburg.de (Postfix) with ESMTP id 610B842478 for ; Tue, 19 Nov 2002 20:23:27 +0100 (CET) Received: from wrzx07.rz.uni-wuerzburg.de (wrzx07.rz.uni-wuerzburg.de [132.187.1.7]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 4239A42477 for ; Tue, 19 Nov 2002 20:23:27 +0100 (CET) Received: from frodo.galgenberg.net (galgenberg.net [132.187.222.250]) by wrzx07.rz.uni-wuerzburg.de (Postfix) with SMTP id 230793FF8 for ; Tue, 19 Nov 2002 20:23:27 +0100 (CET) Received: (qmail 74836 invoked from network); 19 Nov 2002 19:23:26 -0000 Received: from gb-007.galgenberg.net (HELO roadrunner) (132.187.222.7) by galgenberg.net with SMTP; 19 Nov 2002 19:23:26 -0000 From: "Ulrich 'Q' Spoerlein" To: Alexander Leidinger Cc: Heiko Recktenwald , freebsd-multimedia@FreeBSD.ORG Subject: Re: [mpeg4ip - Open Discussion] RE: about the mp4live's video capture card??? (fwd) Date: Tue, 19 Nov 2002 20:23:26 +0100 Organization: Hier koennte Ihre Werbung stehen! Message-ID: <0n3ltuc85rdtkj1mcd228ua46mll4dk974@4ax.com> References: <20021119184557.7bf20a60.Alexander@Leidinger.net> In-Reply-To: <20021119184557.7bf20a60.Alexander@Leidinger.net> X-Mailer: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS snapshot-20020422 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 19 Nov 2002 18:45:57 +0100, you wrote: >> Now back to the sources then the audio_oss_source.cpp ought to work on FreeBSD >> too. Is there any difference between the Linux OSS API and the FreeBSD one ? > >If the audio device is mmap()ed, then you have to be carefull. My short >advise without seeing the code: do everything (ioctl()s) you can do >before the mmap(). And even then, there may be a ioctl() which you have >to do before another... I don't remember what I fixed in quakeforge1 to >get it working, but it was something like the above. sorry, but your fix was incomplete. the problem is not the ioctls, but the mmap() call on -STABLE needs read/write access to the sound-device (don't ask me why). the problem doesn't occur on -CURRENT. see the thread on -multimedia "mmap'ed sound buffer doesn't work in -stable, but works in -current" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Nov 20 0:12:50 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDCE737B401 for ; Wed, 20 Nov 2002 00:12:49 -0800 (PST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DEA943E77 for ; Wed, 20 Nov 2002 00:12:48 -0800 (PST) (envelope-from uzs106@ibm.rhrz.uni-bonn.de) Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18EPyS-0006nl-00; Wed, 20 Nov 2002 09:12:40 +0100 Received: from [80.133.100.37] (helo=moritz.alleswirdgruener) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18EPyS-0001ZK-00; Wed, 20 Nov 2002 09:12:40 +0100 Received: from localhost (localhost [127.0.0.1]) by moritz.alleswirdgruener (8.12.6/8.12.6) with ESMTP id gAK87HIn000410; Wed, 20 Nov 2002 09:07:17 +0100 (CET) (envelope-from uzs106@ibm.rhrz.uni-bonn.de) Date: Wed, 20 Nov 2002 09:07:17 +0100 (CET) From: Heiko Recktenwald X-Sender: uzs106@localhost To: "Steve O'Hara-Smith" Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: [mpeg4ip - Open Discussion] RE: about the mp4live's video capture card??? (fwd) In-Reply-To: <20021119200500.7cc3c454.steve@sohara.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear Steve, I was just forwarding this piece. More as a user than a programmer. On Tue, 19 Nov 2002, Steve O'Hara-Smith wrote: > HR> All you have to do is to make FreeBSD changes to the > HR> video_v4l_source.cp file to support the FreeBSD video capture API - if > HR> any exist. > > Feel free to use the grab_bsdbktr.c from the ffmpeg port as a basis > for changing that code. It doesn't look like it should be too much > trouble. > > A document specifying what the entry points are and what they are > supposed to do would help. I am shure the Cisco guy at mpeg4ip.sourceforge.net would be happy to cooperate. Best, H. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Nov 20 3:21:16 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B96E037B401 for ; Wed, 20 Nov 2002 03:21:15 -0800 (PST) Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D76243E6E for ; Wed, 20 Nov 2002 03:21:10 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd11.sul.t-online.de by mailout09.sul.t-online.com with smtp id 18ESuq-0005IY-07; Wed, 20 Nov 2002 12:21:08 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[80.131.110.93]) by fmrl11.sul.t-online.com with esmtp id 18ESuY-14M0hcC; Wed, 20 Nov 2002 12:20:50 +0100 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) by Andro-Beta.Leidinger.net (8.12.6/8.12.6) with ESMTP id gAKBKoZ7031393; Wed, 20 Nov 2002 12:20:50 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.6/8.12.6) with SMTP id gAKBKq6k000807; Wed, 20 Nov 2002 12:20:52 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Wed, 20 Nov 2002 12:20:52 +0100 From: Alexander Leidinger To: "Ulrich 'Q' Spoerlein" Cc: uzs106@ibm.rhrz.uni-bonn.de, freebsd-multimedia@FreeBSD.ORG Subject: Re: [mpeg4ip - Open Discussion] RE: about the mp4live's video capture card??? (fwd) Message-Id: <20021120122052.7306e23c.Alexander@Leidinger.net> In-Reply-To: <0n3ltuc85rdtkj1mcd228ua46mll4dk974@4ax.com> References: <20021119184557.7bf20a60.Alexander@Leidinger.net> <0n3ltuc85rdtkj1mcd228ua46mll4dk974@4ax.com> X-Mailer: Sylpheed version 0.8.5claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 19 Nov 2002 20:23:26 +0100 "Ulrich 'Q' Spoerlein" wrote: > sorry, but your fix was incomplete. the problem is not the ioctls, but No, it was complete to be able to have it work for me on -current (where I did the work). ;-) > the mmap() call on -STABLE needs read/write access to the sound-device > (don't ask me why). I was under the impression that both versions are on par with each other... Bye, Alexander. -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Nov 20 9:18:47 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 312D937B401 for ; Wed, 20 Nov 2002 09:18:46 -0800 (PST) Received: from srv2.resnet.ohio-state.edu (srv2.resnet.ohio-state.edu [164.107.3.56]) by mx1.FreeBSD.org (Postfix) with SMTP id 5E87243E42 for ; Wed, 20 Nov 2002 09:18:45 -0800 (PST) (envelope-from mistry.7@osu.edu) Received: (qmail 7582 invoked by uid 506); 20 Nov 2002 17:29:30 -0000 Received: from mistry.7@osu.edu by srv2.resnet.ohio-state.edu by uid 503 with qmail-scanner-1.14 ( Clear:. Processed in 0.041334 secs); 20 Nov 2002 17:29:30 -0000 Received: from rdrt-164-107-205-149.resnet.ohio-state.edu (HELO bigguy.am-productions.biz) (164.107.205.149) by srv2.resnet.ohio-state.edu with SMTP; 20 Nov 2002 17:29:30 -0000 Content-Type: text/plain; charset="us-ascii" From: Anish Mistry To: freebsd-multimedia@FreeBSD.ORG Subject: Video playback corruption Date: Wed, 20 Nov 2002 12:19:09 -0500 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211201219.09525.mistry.7@osu.edu> Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org When I play back certain types of files divx and wmv are the ones I've no= ticed=20 they appear on the screen with pink and green spots of streaks. It happe= ns=20 in both avifile and mplayer, and using different outputs ie. x11, xv. It= =20 used to works, but started exhibiting this behavior a few months ago. I = can=20 play the exact same file on my laptop and it looks fine, so the files are= =20 fine. I've got an Nvidia Geforce2 MX 400. Using either the nv or nvidia= =20 driver produces the same result. Any suggestion? Pic of problem: http://am-productions.biz/images/snapshot1.png Thanks, --=20 Anish Mistry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Nov 20 11:41:27 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB61737B401 for ; Wed, 20 Nov 2002 11:41:26 -0800 (PST) Received: from smtp6.wanadoo.nl (smtp6.wanadoo.nl [194.134.35.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3694643E9C for ; Wed, 20 Nov 2002 11:41:22 -0800 (PST) (envelope-from steve@sohara.org) Received: from ams-gw.sohara.org (p3551.vwr.wanadoo.nl [212.129.225.231]) by smtp6.wanadoo.nl (Postfix) with SMTP id 84DC26F489; Wed, 20 Nov 2002 20:41:19 +0100 (CET) Date: Wed, 20 Nov 2002 20:05:39 +0100 From: Steve O'Hara-Smith To: Heiko Recktenwald Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: [mpeg4ip - Open Discussion] RE: about the mp4live's video capture card??? (fwd) Message-Id: <20021120200539.7137139c.steve@sohara.org> In-Reply-To: References: <20021119200500.7cc3c454.steve@sohara.org> X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i386-portbld-freebsd4.7) X-Face: %]+HVL}K`P8>+8ZcY-WGHP6j@&mxMo9JH6_WdgIgUGH)JX/usO0%jy7T~IVgqjumD^OBqX,Kv^-GM6mlw(fI^$"QRKyZ$?xx/ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 20 Nov 2002 09:07:17 +0100 (CET) Heiko Recktenwald wrote: HR> Dear Steve, I was just forwarding this piece. More as a user than a HR> programmer. Ah, OK. I wasn't volunteering to attack that C++ code. -- C:>WIN | Directable Mirrors The computer obeys and wins. |A Better Way To Focus The Sun You lose and Bill collects. | licenses available - see: | http://www.sohara.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Thu Nov 21 3:44:31 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96D4A37B401 for ; Thu, 21 Nov 2002 03:44:30 -0800 (PST) Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA33443E6E for ; Thu, 21 Nov 2002 03:44:29 -0800 (PST) (envelope-from g.w.k@web.de) Received: from [213.148.149.130] (helo=hunter.muc.macsch.com) by smtp.web.de with esmtp (WEB.DE(Exim) 4.91 #2) id 18Epky-0002AE-00 for freebsd-multimedia@freebsd.org; Thu, 21 Nov 2002 12:44:28 +0100 Subject: screen show movie capture program? From: "Georg-W. Koltermann" To: freebsd-multimedia@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 21 Nov 2002 12:45:01 +0100 Message-Id: <1037879106.81842.67.camel@hunter.muc.macsch.com> Mime-Version: 1.0 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, is there a program that captures the X11 display and records that as a movie? ffmpeg and mencoder only seem to capture from bktr. -- Regards, Georg. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Thu Nov 21 12:27:46 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E97A737B401 for ; Thu, 21 Nov 2002 12:27:44 -0800 (PST) Received: from weber.siteprotect.com (weber.siteprotect.com [64.26.0.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4195D43E88 for ; Thu, 21 Nov 2002 12:27:44 -0800 (PST) (envelope-from barlow@starkube.net) Received: from starkube.net (bdsl.204.193.117.66.gte.net [204.193.117.66] (may be forged)) by weber.siteprotect.com (8.9.3/8.9.3) with ESMTP id OAA27118 for ; Thu, 21 Nov 2002 14:27:43 -0600 Message-ID: <3DDD8821.6090807@starkube.net> Date: Thu, 21 Nov 2002 20:28:01 -0500 From: John Barlow User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.1) Gecko/20021005 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@FreeBSD.ORG Subject: running xmms from cron Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greetings, I would like to make cron open xmms and stream my favorite radio shows. Using crontab -e I created a schedule that follows this format: # wake up with KEXP 0622AM Monday - Friday 22 6 * * 1-5 oenomaus xmms /usr/home/oenomaus/streams/kexp.pls # listen to the news @ 0730 30 7 * * 1-5 oenomaus xmms /usr/home/oenomaus/streams/kuow.pls . . . and so on. The music never plays, however. I can open up an xterm (the machine is always running X as user oenomaus) and issue the command: xmms /usr/home/oenomaus/streams/kexp.pls and it starts right away. I have also tried using the url for that stream instead of the filename - this works fine from an xterm but I get nowhere running it from cron. I also tried playing a local .mp3 file as a cron job, but it failed to play. My hunch is that my cron request is being attempted at the console level and is not being passed to my X session, but even if I'm correct I don't have the first idea of how to specify a session, or whether it is even possible. If all else fails, I can probably use mpg321 to play some of the streams, but would prefer to use xmms and occasionally realplay. If anyone has something to suggest I'd be quite grateful. John Barlow To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Thu Nov 21 13:51:29 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 347AF37B401 for ; Thu, 21 Nov 2002 13:51:27 -0800 (PST) Received: from hindenburg.eboai.org (hindenburg.eboai.org [206.183.134.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4899843EAC for ; Thu, 21 Nov 2002 13:51:24 -0800 (PST) (envelope-from chip@chocobo.cx) Received: by hindenburg.eboai.org (Postfix, from userid 1000) id 46ED25E3CC; Thu, 21 Nov 2002 16:51:23 -0500 (EST) Date: Thu, 21 Nov 2002 16:51:23 -0500 From: Chip Marshall To: John Barlow Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: running xmms from cron Message-ID: <20021121215123.GA53141@chocobo.cx> Reply-To: chip@chocobo.cx Mail-Followup-To: John Barlow , freebsd-multimedia@FreeBSD.ORG References: <3DDD8821.6090807@starkube.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <3DDD8821.6090807@starkube.net> X-URL: http://www.chocobo.cx/chip/ X-OS: FreeBSD 4.6-RELEASE-p2 i386 up 6 days User-Agent: Mutt/1.5.1i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On November 21, 2002, John Barlow sent me the following: > I would like to make cron open xmms and stream my favorite radio shows.= =20 > Using crontab -e I created a schedule that follows this format: >=20 > # wake up with KEXP 0622AM Monday - Friday > 22 6 * * 1-5 oenomaus xmms=20 > /usr/home/oenomaus/streams/kexp.pls >=20 > # listen to the news @ 0730 > 30 7 * * 1-5 oenomaus xmms=20 > /usr/home/oenomaus/streams/kuow.pls Unless this is the system crontab (/etc/crontab) you don't need to specify a username. I don't know off the top of my head if it will break because of that though. =20 I think the problem here is that cron does not run these commands with the same environment that your shell does. In particular, without a DISPLAY variable, I don't think xmms will know how to connect to X. In an xterm, try running "echo $DISPLAY" and adding whatever's it's value is to your crontab on a line of it's own, something along the lines of: DISPLAY=3D:0.0 It's a little hacky, but it should work, I think. --=20 Chip Marshall http://www.chocobo.cx/chip/ GCM/CS d+(-) s+:++ a21>? C++ UB++++$ P+++$ L- E--- W++ N@ o K- w O M+ V-- PS+ PE Y+ PGP++ t+@ R@ tv@ b++@ DI++++ D+(-) G++ e>++ h>++ r++ y? --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE93VVa8vyTVl6qbdQRApbVAJ9TxdGcMwCphXDUmswKwSUmoPe95ACfXSss v0nH3bgCfGaGq831AKlHHDA= =YhxC -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Thu Nov 21 14: 4:26 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B50C337B401 for ; Thu, 21 Nov 2002 14:04:24 -0800 (PST) Received: from mail2.qc.uunet.ca (mail2.qc.uunet.ca [198.168.54.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2A6143E9E for ; Thu, 21 Nov 2002 14:04:23 -0800 (PST) (envelope-from anarcat@espresso-com.com) Received: from xtanbul.studio.espresso-com.com ([216.94.147.57]) by mail2.qc.uunet.ca (8.9.3/8.9.3) with ESMTP id RAA06056; Thu, 21 Nov 2002 17:04:02 -0500 Received: from anarcat by xtanbul.studio.espresso-com.com with local (Exim 3.36 #1 (Debian)) id 18EzQH-0005PL-00; Thu, 21 Nov 2002 17:03:45 -0500 Date: Thu, 21 Nov 2002 17:03:45 -0500 From: The Anarcat To: Chip Marshall Cc: John Barlow , freebsd-multimedia@freebsd.org Subject: Re: running xmms from cron Message-ID: <20021121220344.GD20208@xtanbul.studio.espresso-com.com> Mail-Followup-To: Chip Marshall , John Barlow , freebsd-multimedia@FreeBSD.ORG References: <3DDD8821.6090807@starkube.net> <20021121215123.GA53141@chocobo.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021121215123.GA53141@chocobo.cx> User-Agent: Mutt/1.4i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu Nov 21, 2002 at 04:51:23PM -0500, Chip Marshall wrote: > On November 21, 2002, John Barlow sent me the following: > > I would like to make cron open xmms and stream my favorite radio shows. > > Using crontab -e I created a schedule that follows this format: > > > > # wake up with KEXP 0622AM Monday - Friday > > 22 6 * * 1-5 oenomaus xmms > > /usr/home/oenomaus/streams/kexp.pls > > > > # listen to the news @ 0730 > > 30 7 * * 1-5 oenomaus xmms > > /usr/home/oenomaus/streams/kuow.pls > > Unless this is the system crontab (/etc/crontab) you don't need to > specify a username. I don't know off the top of my head if it will > break because of that though. > > I think the problem here is that cron does not run these commands with > the same environment that your shell does. In particular, without a > DISPLAY variable, I don't think xmms will know how to connect to X. > > In an xterm, try running "echo $DISPLAY" and adding whatever's it's > value is to your crontab on a line of it's own, something along the > lines of: > DISPLAY=:0.0 > > It's a little hacky, but it should work, I think. The problem is the X server access restrictions, in that case. You'll have to have an X session opened for that to work or in a worst case, start some kind of "virtual server" that doesn't have a graphic front end, before starting xmms. In general, I would recommend using gstreamer or another console-based streamer instead of XMMS, even if xmms is good software. A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Nov 22 10:54:10 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 463A237B401 for ; Fri, 22 Nov 2002 10:54:08 -0800 (PST) Received: from weber.siteprotect.com (weber.siteprotect.com [64.26.0.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9657243EAA for ; Fri, 22 Nov 2002 10:54:07 -0800 (PST) (envelope-from barlow@starkube.net) Received: from starkube.net (bdsl.204.193.117.66.gte.net [204.193.117.66] (may be forged)) by weber.siteprotect.com (8.9.3/8.9.3) with ESMTP id MAA32277; Fri, 22 Nov 2002 12:53:53 -0600 Message-ID: <3DDEC3B4.50003@starkube.net> Date: Fri, 22 Nov 2002 18:54:28 -0500 From: John Barlow User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.1) Gecko/20021005 X-Accept-Language: en-us, en MIME-Version: 1.0 To: faber@ISI.EDU, randall@ucsb.edu, chip@chocobo.cx, anarcat@anarcat.ath.cx, john@utzweb.net Cc: freebsd-multimedia Subject: Re: running xmms from cron in FreeBSD Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks to all who replied and helped me sort this one out. For the edification of poor souls who may want to run xmms (or any X app) from cron in the future, I'll summarize your suggestions . . . 1. Tell cron how to find X in the first place by running echo $DISPLAY in an xterm. Mine reported :0.0, which is pretty typical. I inserted the following line at the beginning of my crontab: DISPLAY=:0.0 2. Include the full path to xmms. In my old non-working crontab I had the following lines: # wake up with KEXP 0622AM Monday - Friday 22 6 * * 1-5 oenomaus xmms /usr/home/oenomaus/streams/kexp.pls I added the path like so . . . 22 6 * * 1-5 oenomaus /usr/X11R6/bin/xmms /usr/home/oenomaus/streams/kexp.pl 3. It still wasn't working. I then tried leaving out the user ("oenomaus" in this case), and that nailed it - I guess user only needs to be included when a job needs to be run as someone else. Here's how the above line looked in the end: 22 6 * * 1-5 /usr/X11R6/bin/xmms /usr/home/oenomaus/streams/kexp.pl And voila - I'm on my way to having the streaming jukebox of my dreams. I can run realplay as well, as long as I have cron do a killall before switching players so /dev/dsp is available. The only other problem I've had is that occasionally I get loud white noise instead of my stream. I think it's a sound card issue, but until I figure it out I can get around it by opening the stream twice in a row: 22 6 * * 1-5 /usr/X11R6/bin/xmms /usr/home/oenomaus/streams/kexp.pl && /usr/X11R6/bin/xmms /usr/home/oenomaus/streams/kexp.pl a butt-ugly hack, but hey, it works. Thanks again Ted, Randall, Chip, Anarcat, and John. Here's a last embarrassing detail: I should have been able to figure this out myself. About halfway through messing with this last night, I figured out that cron sends me reports about everything I ask it to do in my crontab. Next time I have a problem with cron, I'll start with my system mail. Best, John Barlow To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message