From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 1 06:53:01 2003 Return-Path: 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 352A516A4BF for ; Mon, 1 Sep 2003 06:53:01 -0700 (PDT) Received: from serio.al.rim.or.jp (serio.al.rim.or.jp [202.247.191.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id D611143FE0 for ; Mon, 1 Sep 2003 06:52:59 -0700 (PDT) (envelope-from sugiura@kt.rim.or.jp) Received: from mail5.rim.or.jp by serio.al.rim.or.jp (3.7W/HMX-13) id WAA10559 for ; Mon, 1 Sep 2003 22:52:56 +0900 (JST) Received: from general.hexagon.mil (YahooBB219015172032.bbtec.net [219.15.172.32]) by mail5.rim.or.jp (8.9.3/3.7W) id WAA07523 for freebsd-multimedia@freebsd.org; Mon, 1 Sep 2003 22:52:57 +0900 (JST) Date: Mon, 1 Sep 2003 22:52:57 +0900 (JST) Message-Id: <200309011352.WAA07523@mail5.rim.or.jp> From: sugiura@kt.rim.or.jp (Sugiura Shiro) To: freebsd-multimedia@freebsd.org X-Mailer: mnews [version 1.22] 1999-12/19(Sun) Subject: How to make high quality MPEG4 video X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 13:53:01 -0000 I want to record and encode high quality video(MPEG4/DivX) 640x480@29.97fps from TV using bt878 chip(PVR951). I tried to use ffmpeg0.4.6, 0.4.7 and mencoder , but not so good. Step0: set up 1. add bktr_load="YES" in /boot/loader.conf 2. # sysctl hw.bt848.card=13 # sysctl hw.bt848.tuner=4 Step1: record rawvideo % ffmpeg -r 29.97 -s 640x480 -ac 2 -ar 48000 -ab 256 -acodec mp3 -vcodec \ rawvideo -tvstd ntsc -deinterlace raw.avi I sometimes found "SLEPT NO signals - xxxxx microseconds late" error . Step2-1: mpeg4 encode by mencoder(very quick , but not so good) % mencoder raw.avi -oac copy -ovc lavc -ofps 29.97 lavc=2000:29.97 \ -lavcopts vcodec=mpeg4:vqscale=31:vme=5:vhq:vbitrate=2000 -o tv.mpg Step2-2: mpeg4 encode by ffmpeg(strange out put) % ffmpeg -i raw.avi -vcodec mpeg4 -r 29.97 -me full -re -b 2000 -acodec \ copy -deinterlace tv.avi I want know how to make high quality MPEG4 video. fxtv has not work well on my FreeBSD box. CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2806.38-MHz 686-class CPU) bktr0: mem 0xf7000000-0xf7000fff irq 10 at device 7.0 on pci2 bktr0: Card has no configuration EEPROM. Cannot determine card make. bktr0: Pinnacle/Miro TV, Temic NTSC tuner. ad0: 176700MB [359010/16/63] at ata0-master UDMA100 % uname -r 5.1-CURRENT-20030812-JPSNAP % iozone 2000 46661984 bytes/second for writing the file 46354470 bytes/second for reading the file -- Sugiura Shiro E-mail : sugiura@kt.rim.or.jp