From owner-freebsd-questions@FreeBSD.ORG Thu Dec 14 00:33:17 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3381716A504 for ; Thu, 14 Dec 2006 00:33:17 +0000 (UTC) (envelope-from tfcheng@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12F9443D3F for ; Thu, 14 Dec 2006 00:31:03 +0000 (GMT) (envelope-from tfcheng@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so310317uge for ; Wed, 13 Dec 2006 16:32:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=tbUOGsjIGabfGBJhtYwtjgFl/e1uFbDJQfPtBZQuoABVuNHyd5VeUPzYBEY/RoWdc5tj6d1TvZSH7eumiqMor46JWlqjE7kqR9Lqqm7Mo5s8x4KDWf8QSTDf/adhh54fSB7JZcTqJsR8szS7uw6sWL31t3i8Of9Nd7ENXVBfq/0= Received: by 10.78.193.19 with SMTP id q19mr318261huf.1166056354798; Wed, 13 Dec 2006 16:32:34 -0800 (PST) Received: by 10.78.160.4 with HTTP; Wed, 13 Dec 2006 16:32:34 -0800 (PST) Message-ID: Date: Wed, 13 Dec 2006 19:32:34 -0500 From: "Tsu-Fan Cheng" To: FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: mkxvcd not working due to floating point expression of movie length identification from mplayer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2006 00:33:17 -0000 hi ... i need to use mkxvcd script to create movies, but it gave me error messages. After some debugging I found out it's because (I guess) that mplayer use floating point expression instead of integer when identifying the length of the movie, like 208.15 or something. Anyway, when mkxvcd trying to decide how many hours this movie has by code: HOURS=$[quant/3600], which quant means the length, the script can't handle it and exit. The script is written in Bash, and I am not so much of a expert, can someone suggest me the next step?? much appreciated!! TFC