From owner-freebsd-multimedia Wed Sep 8 13:44:17 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from pluto.ipass.net (pluto.ipass.net [198.79.53.5]) by hub.freebsd.org (Postfix) with ESMTP id B2E6614C1C for ; Wed, 8 Sep 1999 13:44:11 -0700 (PDT) (envelope-from rhh@ipass.net) Received: from stealth.ipass.net. (ppp-1-16.dialup.rdu.ipass.net [209.170.132.16]) by pluto.ipass.net (8.9.3/8.9.3) with ESMTP id QAA10922; Wed, 8 Sep 1999 16:43:51 -0400 (EDT) Received: (from rhh@localhost) by stealth.ipass.net. (8.9.3/8.8.8) id QAA54627; Wed, 8 Sep 1999 16:44:51 -0400 (EDT) (envelope-from rhh) Date: Wed, 8 Sep 1999 16:44:51 -0400 From: Randall Hopper To: thomas@hentschel.net Cc: multimedia@freebsd.org Subject: Re: Fxtv 1.00 - up for grabs Message-ID: <19990908164451.A54555@ipass.net> References: <19990907060034.A8985@ipass.net> <199909080341.UAA27666@gate.hentschel.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=gBBFr7Ir9EOA20Yy X-Mailer: Mutt 0.95.1i In-Reply-To: <199909080341.UAA27666@gate.hentschel.net>; from thomas@hentschel.net on Tue, Sep 07, 1999 at 08:47:08PM -0700 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii thomas@hentschel.net: |Ha, I found the problem : Whenever you give the file to be saved an |absolute path the console say's |"Failed to open for write: .//hd3/thomas/test.sh" | ^^ |and fxtv returns with an error. Works well with relative paths. |I just gotta run and pick someone up at the airport, I'll look into |this a bit more later. Ahh, yes. Somebody mailed me about encoding not working unless "." was in the $PATH, and I added this at the last minute. A more intelligent fix would prepend ./ only if no path (relative or absolute) was specified. Sorry about that. The attached patch should do the trick. Thanks also for the 2.2.8 patches BTW. |BTW, the frame rate conversion is GREAT !! Now I get non-choppy mpegs |out of this lowly P133 :) Hey, glad to hear it! Randall --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="fxtv-1.00.mpegbasepath.patch" --- t/fxtv-1.00/vidsav_dlg.c Mon Sep 6 10:39:18 1999 +++ vidsav_dlg.c Wed Sep 8 16:39:04 1999 @@ -70,7 +70,7 @@ /* ******************** Local defines ************** */ #define AV_RAWNAME_FMT "%s.AVraw" -#define SCRIPT_FNAME_FMT "./%s.sh" +#define SCRIPT_FNAME_FMT "%s%s.sh" #define OPTIMIZE_NUM_FRAMES 200 @@ -801,9 +801,12 @@ char *str; struct stat stat; TV_INT32 i; + TV_BOOL has_path; /* Open output script file */ - sprintf( p->script_fname, SCRIPT_FNAME_FMT, p->fname_base ); + has_path = strchr( "p->fname_base", '/' ) != NULL; + sprintf( p->script_fname, SCRIPT_FNAME_FMT, + (has_path ? "./" : ""), p->fname_base ); if ( (fp = fopen( p->script_fname, "wt" )) == NULL ) { fprintf( stderr, "Failed to open for write: %s\n", p->script_fname ); --gBBFr7Ir9EOA20Yy-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message