From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 23:31:36 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 A7BF616A41F for ; Thu, 3 Nov 2005 23:31:36 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BC1C43D45 for ; Thu, 3 Nov 2005 23:31:36 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA3NVgP16258 for freebsd-multimedia@freebsd.org; Thu, 3 Nov 2005 15:31:42 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id XAA01781; Thu, 3 Nov 2005 23:31:34 GMT Message-Id: <200511032331.XAA01781@sopwith.solgatos.com> To: freebsd-multimedia@freebsd.org Date: Thu, 03 Nov 2005 15:31:34 +0000 From: Dieter Subject: trying to convert mpeg2 to dv X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2005 23:31:36 -0000 I'm trying to convert some mpeg2 video to dv format. Looks like transcode should be able to do it, but transcode -x mpeg2 -y dvraw grinds away but doesn't generates any output, and transcode -x mpeg2 -y dv gives Segmentation fault. So I recompile transcode and look at the compiler warnings and find: libxio.c:707: warning: cast to pointer from integer of different size cat -n work/transcode-1.0.0rc1/libxio/libxio.c | grep 707 707 _handles[ret_fd]->data = (void *)open(pathname, flags, mode); I have to agree with the compiler, casting a file descriptor to a pointer seems wrong, and likely to generate a seg fault if "data" is later treated as a pointer. So, edit libxio.c add a debug printf to see if the code actually gets executed, type make and nothing happens. Nice makefile. So before I burn too much time chasing this, should transcode work the way I think it should, or am I doing something wrong? The transcode man page isn't clear on the difference between dv and dvraw? Are there alternatives to transcode I should be looking at?