From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 19 08:56:18 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 1DFF216A4CE; Wed, 19 Nov 2003 08:56:18 -0800 (PST) Received: from mailrtr03.ntelos.net (mailrtr03.ntelos.net [216.12.0.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0B3943FAF; Wed, 19 Nov 2003 08:56:16 -0800 (PST) (envelope-from wer@cstone.net) Received: from cstone.net (bill.eng.cstone.net [209.145.66.27]) by mailrtr03.ntelos.net (8.11.7/8.11.7) with ESMTP id hAJGuDv08513; Wed, 19 Nov 2003 11:56:13 -0500 Message-ID: <3FBBA0A7.4010804@cstone.net> Date: Wed, 19 Nov 2003 11:56:07 -0500 From: Bill Reid User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031024 X-Accept-Language: en-us, en MIME-Version: 1.0 To: epilogue@attcanada.ca References: <20031111165957.57114d1e.epilogue@attcanada.ca> In-Reply-To: <20031111165957.57114d1e.epilogue@attcanada.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: sound recording questions 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: Wed, 19 Nov 2003 16:56:18 -0000 Since you have a rec option in your mixer.... I would go ahead and set the record input (which you probably already did) mixer -f /dev/mixer[device] =rec [ line, mic ] When you run mixer you should see ....... Mixer video is currently set to 75:75 Recording source: mic So I got my recording source in mixer output. Also you could try giving the program the actual device /dev/dspW0.1 instead of a symlink.... Maybe it will like that better. The only other thing I can say on the topic is that many full duplex cards (I am not at all familiar with yours) can do full duplex but may only do 8 bit in one direction and 16 bit in the other. So they may be trying to set AFMT_S16_LE or AFMT_STEREO in both directions, which might not work. They should be doing AFMT_U8 on playback and AFMT_STEREO on recording ..... Not sure if this helps you. My only recording interests were to "Tivo" Radio talk show Mainly Art Bell. Um. So I just have some crappy program and some scripts. I have not been played with anything else related to recording. Best wishes, -=Bill epilogue@attcanada.ca wrote: >hello all, > >a couple of questions: > >1) have any of you had success installing ardour (ardour.sf.net)? if so, could you >please contact me to review the steps taken? > >2) audacity users: i currently have audacity-1.0.0_2 installed (audacity.sf.net). >even though it invariably hiccups an error message about /dev/dsp not being a >valid playback device, it does provide playback. i cannot, however, seem to get it >to record. i've scoured both google and the audacity mailing lists, but no luck. > >for what it is worth, i do have 1 recording channel... > > > >>cat /dev/sndstat >> >> >FreeBSD Audio Driver (newpcm) >Installed devices: >pcm0: port 0x1400-0x14ff irq 5 at device 8.0 > on pci0 (4p/1r/4v channels duplex) > >i have also fiddled with the mixer settings in pretty much every way imaginable.... > > > >>mixer >> >> >Mixer vol is currently set to 75:75 >Mixer pcm is currently set to 75:75 >Mixer speaker is currently set to 75:75 >Mixer line is currently set to 75:75 >Mixer mic is currently set to 75:75 >Mixer cd is currently set to 75:75 >Mixer rec is currently set to 75:75 >Mixer ogain is currently set to 50:50 >Mixer line1 is currently set to 75:75 >Mixer phin is currently set to 75:75 >Mixer phout is currently set to 75:75 >Mixer video is currently set to 75:75 > >when i try to record, audacity complains about not being able to record and >playback simultaneously under unix. when i try to change the program's >preferences so that it does not try to do both at the same time, i uncheck >a couple of boxes and hit 'ok'. however, as soon as i hit 'ok', audacity whines >again about /dev/dsp not being a valid device and refuses to accept the changes. > >sigh. > >any suggestions you might have regarding getting recording working with this program >would be VERY much appreciated. thanks for your time. > > >cheers, >epi >_______________________________________________ >freebsd-multimedia@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia >To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" > > From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 19 20:06:25 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 2D58116A4CE for ; Wed, 19 Nov 2003 20:06:25 -0800 (PST) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00D2443FBF for ; Wed, 19 Nov 2003 20:06:24 -0800 (PST) (envelope-from mistry.7@osu.edu) Received: from 192.168.0.2 (adsl-66-72-216-74.dsl.wotnoh.ameritech.net [66.72.216.74]) (authenticated bits=0)hAK4AZZ3098066 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 19 Nov 2003 23:10:37 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-multimedia@freebsd.org Date: Wed, 19 Nov 2003 23:04:22 -0500 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_O1Dv/GHsOFHWwMG"; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200311192304.30668.mistry.7@osu.edu> Subject: ffmpeg deinterlace broken? 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: Thu, 20 Nov 2003 04:06:25 -0000 --Boundary-02=_O1Dv/GHsOFHWwMG Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline I've finally started using ffmpeg again, and the latest version 0.4.8 seems= =20 to have deinterlace broken. With 0.4.7 and below I was able to use the=20 deinterlace option, which worked fine. I can't seem to figure how to=20 downgrade to 0.4.7 (ffmpeg045 doesn't want to compile on my system). I=20 did try to just change the version in the Makefile to grab 0.4.7, which=20 worked, and all the patches seemed to apply ok, but deinterlacing was=20 still broken, so it seems like some of the port specific patches breaks=20 deinterlacing at least with bktr grabbing? Anyone else seeing this? =2D-=20 Anish Mistry --Boundary-02=_O1Dv/GHsOFHWwMG Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/vD1OxqA5ziudZT0RAuFKAKDaWEbdZGaqe5eKr4pZSmmGI9lKAwCeNnQp nMW8furPt6WIHKbWTigUdhY= =+JKD -----END PGP SIGNATURE----- --Boundary-02=_O1Dv/GHsOFHWwMG-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 19 22:29:49 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 6BF4C16A4CE for ; Wed, 19 Nov 2003 22:29:49 -0800 (PST) Received: from smtp5.wanadoo.nl (smtp5.wanadoo.nl [194.134.35.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D33F43FAF for ; Wed, 19 Nov 2003 22:29:48 -0800 (PST) (envelope-from steve@sohara.org) Received: from ams-gw.sohara.org (p0172.nas3-asd6.dial.wanadoo.nl [62.234.216.172]) by smtp5.wanadoo.nl (Postfix) with SMTP id 316027515E; Thu, 20 Nov 2003 07:29:46 +0100 (CET) Date: Thu, 20 Nov 2003 07:29:41 +0100 From: Steve O'Hara-Smith To: Anish Mistry Message-Id: <20031120072941.7fb9dc36.steve@sohara.org> In-Reply-To: <200311192304.30668.mistry.7@osu.edu> References: <200311192304.30668.mistry.7@osu.edu> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.9) 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 cc: freebsd-multimedia@freebsd.org Subject: Re: ffmpeg deinterlace broken? 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: Thu, 20 Nov 2003 06:29:49 -0000 On Wed, 19 Nov 2003 23:04:22 -0500 Anish Mistry wrote: AM> I've finally started using ffmpeg again, and the latest version 0.4.8 AM> seems to have deinterlace broken. With 0.4.7 and below I was able to AM> use the deinterlace option, which worked fine. I can't seem to figure Interesting I have never seen the deinterlace option have any effect whatsoever. Then again I've been running the current grab code for a few months longer than most :) AM> how to downgrade to 0.4.7 (ffmpeg045 doesn't want to compile on my AM> system). I did try to just change the version in the Makefile to grab AM> 0.4.7, which worked, and all the patches seemed to apply ok, but AM> deinterlacing was still broken, so it seems like some of the port AM> specific patches breaks deinterlacing at least with bktr grabbing? Try downgrading the grab_bsdbktr.c to version 1.6. If that makes a difference then would you do some patch testing please ? -- 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/ From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 20 07:20:34 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 F215D16A4CE for ; Thu, 20 Nov 2003 07:20:33 -0800 (PST) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EA0643FD7 for ; Thu, 20 Nov 2003 07:20:32 -0800 (PST) (envelope-from mistry.7@osu.edu) Received: from 192.168.0.2 (adsl-66-72-216-74.dsl.wotnoh.ameritech.net [66.72.216.74]) (authenticated bits=0)hAKFOkZ3004815 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Thu, 20 Nov 2003 10:24:48 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: "Steve O'Hara-Smith" Date: Thu, 20 Nov 2003 10:18:32 -0500 User-Agent: KMail/1.5.3 References: <200311192304.30668.mistry.7@osu.edu> <20031120072941.7fb9dc36.steve@sohara.org> In-Reply-To: <20031120072941.7fb9dc36.steve@sohara.org> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_PtNv/mPodtn0mih"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200311201018.39097.mistry.7@osu.edu> cc: freebsd-multimedia@freebsd.org Subject: Re: ffmpeg deinterlace broken? 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: Thu, 20 Nov 2003 15:20:34 -0000 --Boundary-02=_PtNv/mPodtn0mih Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Thursday 20 November 2003 01:29 am, Steve O'Hara-Smith wrote: > On Wed, 19 Nov 2003 23:04:22 -0500 > Anish Mistry wrote: >=20 > AM> I've finally started using ffmpeg again, and the latest version 0.4.8 > AM> seems to have deinterlace broken. With 0.4.7 and below I was able to > AM> use the deinterlace option, which worked fine. I can't seem to=20 figure >=20 > Interesting I have never seen the deinterlace option have any > effect whatsoever. Then again I've been running the current grab code > for a few months longer than most :) >=20 > AM> how to downgrade to 0.4.7 (ffmpeg045 doesn't want to compile on my > AM> system). I did try to just change the version in the Makefile to=20 grab > AM> 0.4.7, which worked, and all the patches seemed to apply ok, but > AM> deinterlacing was still broken, so it seems like some of the port > AM> specific patches breaks deinterlacing at least with bktr grabbing?=20 >=20 > Try downgrading the grab_bsdbktr.c to version 1.6. If that > makes a difference then would you do some patch testing please ? >=20 Version 1.6 doesn't compile. cc -O -pipe -I/usr/local/include -O3 -ffast-math -fomit-frame-pointer -g= =20 =2DO3 - Wall -I.. -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.8= =20 =2DI/usr/ports/multimed ia/ffmpeg/work/ffmpeg-0.4.8/libavcodec=20 =2DDHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE= =20 =2DD_GNU_SOURCE -c -o grab_bsdbktr.o grab_bsdbktr.c=20 grab_bsdbktr.c:42: syntax error before `INT64' grab_bsdbktr.c:70: syntax error before `*' grab_bsdbktr.c:70: warning: type defaults to `int' in declaration of=20 `video_buf' grab_bsdbktr.c:70: warning: data definition has no type or storage class grab_bsdbktr.c: In function `bktr_init': grab_bsdbktr.c:96: structure has no member named `last_frame_time' grab_bsdbktr.c: In function `grab_read_packet': grab_bsdbktr.c:160: syntax error before `curtime' grab_bsdbktr.c:167: `curtime' undeclared (first use in this function) grab_bsdbktr.c:167: (Each undeclared identifier is reported only once grab_bsdbktr.c:167: for each function it appears in.) grab_bsdbktr.c:168: structure has no member named `last_frame_time' grab_bsdbktr.c:169: structure has no member named `last_frame_time' grab_bsdbktr.c:169: structure has no member named `per_frame' grab_bsdbktr.c:170: structure has no member named `last_frame_time' grab_bsdbktr.c:170: structure has no member named `per_frame' grab_bsdbktr.c:170: structure has no member named `per_frame' grab_bsdbktr.c:173: structure has no member named `last_frame_time' grab_bsdbktr.c:173: structure has no member named `per_frame' grab_bsdbktr.c:178: structure has no member named `last_frame_time' grab_bsdbktr.c: In function `grab_read_header': grab_bsdbktr.c:207: structure has no member named `per_frame' grab_bsdbktr.c:207: warning: implicit declaration of function `INT64_C' grab_bsdbktr.c:207: `FRAME_RATE_BASE' undeclared (first use in this=20 function) grab_bsdbktr.c: In function `grab_read_close': grab_bsdbktr.c:227: warning: implicit declaration of function=20 `please_use_av_fre e' gmake[1]: *** [grab_bsdbktr.o] Error 1 gmake[1]: Leaving directory `/usr/ports/multimedia/ffmpeg/work/ ffmpeg-0.4.8/liba vformat' gmake: *** [lib] Error 2 *** Error code 2 Stop in /usr/ports/multimedia/ffmpeg. =2D-=20 Anish Mistry --Boundary-02=_PtNv/mPodtn0mih Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/vNtPxqA5ziudZT0RAk++AKC4cueMU6WOZfhgNwZ0f4jtqTmp1ACgxf81 uFoPcNKKJgskw3gXr7bDaO4= =daWC -----END PGP SIGNATURE----- --Boundary-02=_PtNv/mPodtn0mih-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 20 07:47:17 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 A0E2E16A4CE for ; Thu, 20 Nov 2003 07:47:17 -0800 (PST) Received: from elsoxfs03088.elsevier.co.uk (elsoxfs03088.elsevier.co.uk [193.131.223.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id E847343FBF for ; Thu, 20 Nov 2003 07:47:15 -0800 (PST) (envelope-from steve@sohara.org) Received: from elsoxfs12414.elsevier.co.uk (unverified) by elsoxfs03088.elsevier.co.uk (Content Technologies SMTPRS 4.3.10) with ESMTP id ; Thu, 20 Nov 2003 15:48:17 +0000 Received: from olorin.elsevier.nl (olorin.elsevier.nl [145.36.13.14]) by elsoxfs12414.elsevier.co.uk (2.6 Build 1 (Berkeley 8.8.6)/8.8.4) with ESMTP id PAA00538; Thu, 20 Nov 2003 15:41:16 GMT Received: from sol8test1 ([145.36.48.241]) by olorin.elsevier.nl (8.8.8/8.8.8) with SMTP id QAA14713; Thu, 20 Nov 2003 16:47:07 +0100 (MET) Date: Thu, 20 Nov 2003 16:40:37 +0000 From: "Steve O'Hara-Smith" To: Anish Mistry Message-Id: <20031120164037.3ee82842.steve@sohara.org> In-Reply-To: <200311201018.39097.mistry.7@osu.edu> References: <200311192304.30668.mistry.7@osu.edu> <20031120072941.7fb9dc36.steve@sohara.org> <200311201018.39097.mistry.7@osu.edu> Organization: Elsevier Science X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; sparc-sun-solaris2.8) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@freebsd.org Subject: Re: ffmpeg deinterlace broken? 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: Thu, 20 Nov 2003 15:47:17 -0000 On Thu, 20 Nov 2003 10:18:32 -0500 Anish Mistry wrote: > > Try downgrading the grab_bsdbktr.c to version 1.6. If that > > makes a difference then would you do some patch testing please ? > > > Version 1.6 doesn't compile. > cc -O -pipe -I/usr/local/include -O3 -ffast-math > -fomit-frame-pointer -g -O3 - Wall -I.. > -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.8 -I/usr/ports/multimed > ia/ffmpeg/work/ffmpeg-0.4.8/libavcodec > -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > > -D_GNU_SOURCE -c -o grab_bsdbktr.o grab_bsdbktr.c > grab_bsdbktr.c:42: syntax error before `INT64' Urk - ah yes ffmpeg dropped the INT64 type definition a while back. Change all the INT64 to int64_t (or put this line near the top) #define INT64 int64_t If that doesn't do it I'll do some hacking this eve. From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 20 17:52:29 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 A3EE816A4CE for ; Thu, 20 Nov 2003 17:52:29 -0800 (PST) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A13E43F93 for ; Thu, 20 Nov 2003 17:52:26 -0800 (PST) (envelope-from mistry.7@osu.edu) Received: from 192.168.0.2 (adsl-66-72-216-74.dsl.wotnoh.ameritech.net [66.72.216.74]) (authenticated bits=0)hAL1ugZ3005320 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Thu, 20 Nov 2003 20:56:44 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: "Steve O'Hara-Smith" Date: Thu, 20 Nov 2003 20:50:24 -0500 User-Agent: KMail/1.5.3 References: <200311192304.30668.mistry.7@osu.edu> <200311201018.39097.mistry.7@osu.edu> <20031120164037.3ee82842.steve@sohara.org> In-Reply-To: <20031120164037.3ee82842.steve@sohara.org> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_o9Wv/hFURXGSpb0"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200311202050.32355.mistry.7@osu.edu> cc: freebsd-multimedia@freebsd.org Subject: Re: ffmpeg deinterlace broken? 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: Fri, 21 Nov 2003 01:52:29 -0000 --Boundary-02=_o9Wv/hFURXGSpb0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Thursday 20 November 2003 11:40 am, Steve O'Hara-Smith wrote: > On Thu, 20 Nov 2003 10:18:32 -0500 > Anish Mistry wrote: >=20 >=20 > > > Try downgrading the grab_bsdbktr.c to version 1.6. If that > > > makes a difference then would you do some patch testing please ? > > >=20 > > Version 1.6 doesn't compile. > > cc -O -pipe -I/usr/local/include -O3 -ffast-math > > -fomit-frame-pointer -g -O3 - Wall -I.. > > -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.8 -I/usr/ports/multimed > > ia/ffmpeg/work/ffmpeg-0.4.8/libavcodec=20 > > -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE > >=20 > > -D_GNU_SOURCE -c -o grab_bsdbktr.o grab_bsdbktr.c=20 > > grab_bsdbktr.c:42: syntax error before `INT64' >=20 > Urk - ah yes ffmpeg dropped the INT64 type definition a while back. > Change all the INT64 to int64_t (or put this line near the top) >=20 > #define INT64 int64_t >=20 > If that doesn't do it I'll do some hacking this eve. >=20 Nope, still more problems than just types. cc -O -pipe -I/usr/local/include -O3 -ffast-math -fomit-frame-pointer -g= =20 =2DO3 -Wall -I.. -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.8 -I/usr/ ports/multimedia/ffmpeg/work/ffmpeg-0.4.8/libavcodec -DHAVE_AV_CONFIG_H=20 =2DD_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o=20 grab_bsdbktr.o grab_bsdbktr.c=20 grab_bsdbktr.c: In function `grab_read_packet': grab_bsdbktr.c:173: warning: int format, different type arg (arg 2) grab_bsdbktr.c: In function `grab_read_header': grab_bsdbktr.c:207: `FRAME_RATE_BASE' undeclared (first use in this=20 function) grab_bsdbktr.c:207: (Each undeclared identifier is reported only once grab_bsdbktr.c:207: for each function it appears in.) grab_bsdbktr.c: In function `grab_read_close': grab_bsdbktr.c:227: warning: implicit declaration of function=20 `please_use_av_free' gmake[1]: *** [grab_bsdbktr.o] Error 1 gmake[1]: Leaving directory `/usr/ports/multimedia/ffmpeg/work/ ffmpeg-0.4.8/libavformat' gmake: *** [lib] Error 2 *** Error code 2 Stop in /usr/ports/multimedia/ffmpeg. =2D-=20 Anish Mistry --Boundary-02=_o9Wv/hFURXGSpb0 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/vW9oxqA5ziudZT0RAmY0AJ9+g+tEzeiO7PafxIfQFJtK4mxDhgCgow5u TBVbr909eWHyGKeKFYl/xHo= =IkOH -----END PGP SIGNATURE----- --Boundary-02=_o9Wv/hFURXGSpb0-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 20 22:29:23 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 734B216A4CE for ; Thu, 20 Nov 2003 22:29:23 -0800 (PST) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3A5E43FE3 for ; Thu, 20 Nov 2003 22:29:22 -0800 (PST) (envelope-from rpratt1950@earthlink.net) Received: from user150.net311.fl.sprint-hsd.net ([198.70.221.150] helo=kt.weeble.com) by harrier.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 1AN4nC-0000Jf-00 for freebsd-multimedia@freebsd.org; Thu, 20 Nov 2003 22:29:22 -0800 Date: Fri, 21 Nov 2003 01:30:22 -0500 From: Randy Pratt To: freebsd-multimedia@freebsd.org Message-Id: <20031121013022.0d274b6d.rpratt1950@earthlink.net> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: vcdimager and "bad packet" 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: Fri, 21 Nov 2003 06:29:23 -0000 I've been transcoding some avi files to mpeg2 format to make SVCDs so that I can watch them on the tv. I've not had any problems with the transcoding, but when i use vcdimager to create the bin/cue files I'll get a warning like: ++ WARN: bad packet at packet #314266 (stream byte offset 730354184) -- remaining 796144300 bytes of stream will be ignored I did not create the original avi file but I'm guessing that this problem was created when two avi files were joined together to make one file. I'd appreciate any pointers on how to repair the breakage or any method that could be used as a work-around. I've looked thru man transcode and tons of google but so far found nothing to address this. Any ideas appreciated! Thanks, Randy From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 20 22:59:20 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 1E26016A4CE for ; Thu, 20 Nov 2003 22:59:20 -0800 (PST) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id A09E643FE1 for ; Thu, 20 Nov 2003 22:59:18 -0800 (PST) (envelope-from mjoyner@hq.dyns.cx) Received: from duron.rv1.dynip.com (c-66-177-119-177.se.client2.attbi.com[66.177.119.177]) by comcast.net (sccrmhc11) with ESMTP id <2003112106591701100k821ke>; Fri, 21 Nov 2003 06:59:17 +0000 Received: from hq.dyns.cx (localhost [127.0.0.1]) by duron.rv1.dynip.com (8.12.10/8.12.10) with ESMTP id hAL6xKox008112; Fri, 21 Nov 2003 01:59:21 -0500 (EST) (envelope-from mjoyner@hq.dyns.cx) Message-ID: <3FBDB7C8.2000201@hq.dyns.cx> Date: Fri, 21 Nov 2003 01:59:20 -0500 From: Michael Joyner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Randy Pratt References: <20031121013022.0d274b6d.rpratt1950@earthlink.net> In-Reply-To: <20031121013022.0d274b6d.rpratt1950@earthlink.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@freebsd.org Subject: Re: vcdimager and "bad packet" 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: Fri, 21 Nov 2003 06:59:20 -0000 You can "transcode" the avi files to divx avi file using mencoder before feeding to transcode (including size translations, etc), this will most likey make transcode much happier! also the following script that I use for recoding avis may be useful. :) (doesn't use transcode) you will of course have to fix it up for your situation, file system also, note that it is definately a work in progress. :) btw, all the spanish segments were taken from a web site somewhere, unfortunately, don't know where, so can't give proper copyright stuff I think it was GPL though. #!/bin/sh AUDIORATE=224 WIDTH_OUT=480 HEIGHT_OUT=480 CHAPTERS="0:00,10:00,20:00,30:00,40:00,50:00,1:00:00,1:10:00,1:20:00,1:30:00,1:40:00,1:50:00,2:00:00,2:10:00,2:20:00,2:30:00,2:40:00,2:50:00,3:00:00,3:10:00,3:20:00,3:30:00,3 :40:00,3:50:00,4:00:00" #CHAPTERS="0" BASE_CD=700 cd ~/dvdrip for i in avis/*; do if [ ! -s "$i" ]; then rm -vf "$i"; fi done TITLE_COUNT=0 for i in avis/*; do TITLE_COUNT=$(($TITLE_COUNT+1)); done xmessage -timeout 30 -center "Found $TITLE_COUNT Titles for miniDVD" & CDSIZE=$(($BASE_CD/$TITLE_COUNT)) # CHOICE="`xmessage -print -center -buttons "1/10 CD,1/5 CD,1/4CD,1/3 CD,1/2 CD,ONE CD" \ # "How Many CD's for these Movies?"`" # echo $CHOICE # if [ "$CHOICE" = "1/10 CD" ]; then CDSIZE=$(($BASE_CD/10)); fi # if [ "$CHOICE" = "1/5 CD" ]; then CDSIZE=$(($BASE_CD/5)); fi # if [ "$CHOICE" = "1/4 CD" ]; then CDSIZE=$(($BASE_CD/4)); fi # if [ "$CHOICE" = "1/3 CD" ]; then CDSIZE=$(($BASE_CD/3)); fi # if [ "$CHOICE" = "1/2 CD" ]; then CDSIZE=$(($BASE_CD/2)); fi # if [ "$CHOICE" = "ONE CD" ]; then CDSIZE=$(($BASE_CD)); fi rm -rfv vcd3/* for i in avis/*; do #imported script stuff (that is in Espanol) tcprobe -i "$i" > vcd3/info WIDTH=`grep '\[avilib\] V:' vcd3/info | \ perl -e ' $line= ; $line =~ /width=(\d+)/ ; print $1' ` HEIGHT=`grep '\[avilib\] V:' vcd3/info | \ perl -e ' $line= ; $line =~ /height=(\d+)/ ; print $1' ` FPS=`grep '\[avilib\] V:' vcd3/info | \ perl -e ' $line= ; $line =~ /V: (.+?) fps/ ; print $1' ` FPS_1=`echo "scale=1 ; $FPS/1"| bc -l` FRAMES=`grep '\[avilib\] V:' vcd3/info | \ perl -e ' $line= ; $line =~ /frames=(\d+)/ ; print $1' ` SEGUNDOS_TOTAL=`echo "scale=0 ; ($FRAMES / $FPS)"| bc -l` HORAS=`echo "scale=0 ; ($SEGUNDOS_TOTAL / 3600)"| bc -l` MINUTOS=`echo "scale=0 ; (($SEGUNDOS_TOTAL - 3600 * $HORAS)/60)"| bc -l` SEGUNDOS=`echo "scale=0 ; ($SEGUNDOS_TOTAL % 60)"| bc -l` VIDEO_RATE=`echo "scale=0 ;(($CDSIZE * 1024 - \ ($AUDIORATE/8*$SEGUNDOS_TOTAL))*8 / $SEGUNDOS_TOTAL)"| bc -l` if [ $VIDEO_RATE -ge 8000 ]; then VIDEO_RATE=8000; fi #VIDEO_RATE=1150 rm vcd3/info echo "*************** FILE INFO ***************" echo "Frame Size: ${WIDTH}x${HEIGHT} - FPS: $FPS" echo "Length: $FRAMES - Seconds: $SEGUNDOS_TOTAL" echo "$HORAS hours, $MINUTOS minutes, $SEGUNDOS seconds" rm vcd3/info echo "*************** FILE INFO ***************" echo "Frame Size: ${WIDTH}x${HEIGHT} - FPS: $FPS" echo "Length: $FRAMES - Seconds: $SEGUNDOS_TOTAL" echo "$HORAS hours, $MINUTOS minutes, $SEGUNDOS seconds" echo echo "VIDEO-RATE: $VIDEO_RATE" CBR="`echo "$VIDEO_RATE * 1000" | bc -l`" cat > auto.prof << END #VCD profile to try and fit space allocated fixed_vbv_delay = 1 vbv_buffer_size = 230 cbr = 1 cbr_bitrate = $CBR.0 quant_value = 2 qscale_type = 0 vbr_mux = 0 video_buf_size = 230 use_comp_bitrate = 1 max_bitrate = $CBR.0 END echo "Video Output: ${WIDTH_OUT}x${HEIGHT_OUT}" # Ahora calculamos los valores pa los bordes. ANCHO_1_1_OUT="`echo "($HEIGHT_OUT * 4/3)"| bc -l`" ALTO_OUT="`echo "$HEIGHT / ($WIDTH / $ANCHO_1_1_OUT)" | bc -l`" # Redondeamos ALTO_OUT="`echo "scale=0 ; $ALTO_OUT/1"| bc -l`" # Nos aseguramos de que sea par ALTO_OUT="`echo "scale=0 ; $ALTO_OUT+$ALTO_OUT%2" | bc -l`" BORDE="`echo "scale=0 ; ($HEIGHT_OUT-$ALTO_OUT)/2"| bc -l`" echo "alto sin bordes: $ALTO_OUT, con borde: $BORDE" echo INASPECT="$WIDTH_OUT:$ALTO_OUT" B=`basename "$i"` C="$B ($HORAS:$MINUTOS:$SEGUNDOS minutes playtime) $CHOICE $VIDEO_RATE" BB=vcd3/$$.temp.avi echo "^[]0;$C - Stage 1 (Resizing)^G" mencoder -aspect "$INASPECT" -noskiplimit -ovc lavc \ -lavcopts vcodec=mpeg2video:vhq:vrc_minrate=${VIDEO_RATE}:vbitrate=${VIDEO_RATE}:vrc_maxrate=${VIDEO_RATE}:aspect=4/3 \ -oac copy \ -ofps 23.976 \ -vop expand=$WIDTH_OUT:$HEIGHT_OUT,scale -zoom -xy $WIDTH_OUT \ -o "$BB" "$i" # -oac pcm -srate 44100 \ echo "^[]0;$C - Stage 2 (Converting into streams)^G" ffmpeg -i "$BB" \ -b "${VIDEO_RATE}" \ -r 23.976 \ -aspect "4:3" \ -vcodec copy \ -acodec mp2 \ -ab ${AUDIORATE} \ -ar 44100 \ -ac 2 \ -f vcd \ "vcd3/${B}.mpg" #echo "^[]0;$C - Stage 3 (Multiplexing into VOB)^G" #mplex -f 8 -V -o "vcd3/${B}.vob" "vcd3/${B}.m1v" "vcd3/${B}.mp2" # echo "^[]0;$C - Stage 4 (Adding Movie Title to DVD)^G" #dvdauthor\ #-o vcd3/mydvd \ #-a "en" \ #-v "ntsc+4:3+${WIDTH_OUT}x${HEIGHT_OUT}" \ #-t \ #"vcd3/${B}.vob" rm "$BB" rm "vcd3/${B}.m1v" rm "vcd3/${B}.m2v" rm "vcd3/${B}.mp2" rm "vcd3/${B}.mp3" rm "vcd3/${B}.vob" #cdrdao blank --device 0,0,0 --force --driver generic-mmc-raw #cd vcd3 || exit 0 #vcdxgen -t svcd --nopbc *vcd #vcdxbuild -p --gui *xml #cdrdao write --device 0,0,0 --force --driver generic-mmc-raw *.cue #cd .. echo "^[]0;Done Converting $C^G" echo exit 0 Randy Pratt wrote: >I've been transcoding some avi files to mpeg2 format to make SVCDs so >that I can watch them on the tv. > >I've not had any problems with the transcoding, but when i use >vcdimager to create the bin/cue files I'll get a warning like: > > ++ WARN: bad packet at packet #314266 (stream byte offset > 730354184) -- remaining 796144300 bytes of stream will be ignored > >I did not create the original avi file but I'm guessing that this >problem was created when two avi files were joined together to make >one file. > >I'd appreciate any pointers on how to repair the breakage or any >method that could be used as a work-around. I've looked thru >man transcode and tons of google but so far found nothing to >address this. > >Any ideas appreciated! > >Thanks, > >Randy > > >_______________________________________________ >freebsd-multimedia@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia >To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" > > From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 21 10:12:11 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 F205216A4CE for ; Fri, 21 Nov 2003 10:12:10 -0800 (PST) Received: from smtp5.wanadoo.nl (smtp5.wanadoo.nl [194.134.35.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id F331E43FE0 for ; Fri, 21 Nov 2003 10:12:09 -0800 (PST) (envelope-from steve@sohara.org) Received: from ams-gw.sohara.org (p0932.nas4-asd6.dial.wanadoo.nl [62.234.223.169]) by smtp5.wanadoo.nl (Postfix) with SMTP id EB6B176E65; Fri, 21 Nov 2003 19:12:06 +0100 (CET) Date: Fri, 21 Nov 2003 19:12:03 +0100 From: Steve O'Hara-Smith To: Anish Mistry Message-Id: <20031121191203.380e6cbc.steve@sohara.org> In-Reply-To: <200311202050.32355.mistry.7@osu.edu> References: <200311192304.30668.mistry.7@osu.edu> <200311201018.39097.mistry.7@osu.edu> <20031120164037.3ee82842.steve@sohara.org> <200311202050.32355.mistry.7@osu.edu> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.9) 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 cc: freebsd-multimedia@freebsd.org Subject: Re: ffmpeg deinterlace broken? 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: Fri, 21 Nov 2003 18:12:11 -0000 On Thu, 20 Nov 2003 20:50:24 -0500 Anish Mistry wrote: AM> > Urk - ah yes ffmpeg dropped the INT64 type definition a while AM> > back. AM> > Change all the INT64 to int64_t (or put this line near the top) AM> > AM> > #define INT64 int64_t AM> > AM> > If that doesn't do it I'll do some hacking this eve. AM> > AM> Nope, still more problems than just types. I got to my box with all the history on it - this is odd. If you are sure version 0.4.7 worked then the grab code can be eliminated as a candidate. This pile of API changes came in with 0.4.7 which means that 0.4.7 went out with grab_bsdbktr.c 1.7. I have a thought - when you downgraded did you do a make deinstall before building the older version ? If not try it - the build will pick up installed headers. -- 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/ From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 21 20:17:28 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 C0A0116A4CE for ; Fri, 21 Nov 2003 20:17:28 -0800 (PST) Received: from conure.mail.pas.earthlink.net (conure.mail.pas.earthlink.net [207.217.120.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id B663F43FB1 for ; Fri, 21 Nov 2003 20:17:27 -0800 (PST) (envelope-from rpratt1950@earthlink.net) Received: from user150.net311.fl.sprint-hsd.net ([198.70.221.150] helo=kt.weeble.com) by conure.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 1ANPCx-0007Cc-00; Fri, 21 Nov 2003 20:17:20 -0800 Date: Fri, 21 Nov 2003 23:18:28 -0500 From: Randy Pratt To: Michael Joyner Message-Id: <20031121231828.34008c49.rpratt1950@earthlink.net> In-Reply-To: <3FBDB7C8.2000201@hq.dyns.cx> References: <20031121013022.0d274b6d.rpratt1950@earthlink.net> <3FBDB7C8.2000201@hq.dyns.cx> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@freebsd.org Subject: Re: vcdimager and "bad packet" 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: Sat, 22 Nov 2003 04:17:29 -0000 On Fri, 21 Nov 2003 01:59:20 -0500 Michael Joyner wrote: > You can "transcode" the avi files to divx avi file using mencoder before > feeding to transcode (including size translations, etc), > this will most likey make transcode much happier! > > also the following script that I use for recoding avis may be useful. :) > (doesn't use transcode) > > you will of course have to fix it up for your situation, file system > also, note that it is definately a work in progress. :) > btw, all the spanish segments were taken from a web site somewhere, > unfortunately, don't know where, so can't give proper copyright stuff > I think it was GPL though. Thanks! I'll give this a try once I study the script a bit. I certainly appreciate the response. Thank you Randy > #!/bin/sh > > AUDIORATE=224 > WIDTH_OUT=480 > HEIGHT_OUT=480 > CHAPTERS="0:00,10:00,20:00,30:00,40:00,50:00,1:00:00,1:10:00,1:20:00,1:30:00,1:40:00,1:50:00,2:00:00,2:10:00,2:20:00,2:30:00,2:40:00,2:50:00,3:00:00,3:10:00,3:20:00,3:30:00,3 > :40:00,3:50:00,4:00:00" > #CHAPTERS="0" > > BASE_CD=700 > > cd ~/dvdrip > for i in avis/*; do > if [ ! -s "$i" ]; then rm -vf "$i"; fi > done > > TITLE_COUNT=0 > for i in avis/*; do > TITLE_COUNT=$(($TITLE_COUNT+1)); > done > xmessage -timeout 30 -center "Found $TITLE_COUNT Titles for miniDVD" & > CDSIZE=$(($BASE_CD/$TITLE_COUNT)) > # CHOICE="`xmessage -print -center -buttons "1/10 CD,1/5 CD,1/4CD,1/3 > CD,1/2 CD,ONE CD" \ > # "How Many CD's for these Movies?"`" > # echo $CHOICE > # if [ "$CHOICE" = "1/10 CD" ]; then CDSIZE=$(($BASE_CD/10)); fi > # if [ "$CHOICE" = "1/5 CD" ]; then CDSIZE=$(($BASE_CD/5)); fi > # if [ "$CHOICE" = "1/4 CD" ]; then CDSIZE=$(($BASE_CD/4)); fi > # if [ "$CHOICE" = "1/3 CD" ]; then CDSIZE=$(($BASE_CD/3)); fi > # if [ "$CHOICE" = "1/2 CD" ]; then CDSIZE=$(($BASE_CD/2)); fi > # if [ "$CHOICE" = "ONE CD" ]; then CDSIZE=$(($BASE_CD)); fi > > rm -rfv vcd3/* > for i in avis/*; do > > #imported script stuff (that is in Espanol) > tcprobe -i "$i" > vcd3/info > > WIDTH=`grep '\[avilib\] V:' vcd3/info | \ > perl -e ' $line= ; $line =~ /width=(\d+)/ ; > print $1' ` > HEIGHT=`grep '\[avilib\] V:' vcd3/info | \ > perl -e ' $line= ; $line =~ /height=(\d+)/ ; > print $1' ` > FPS=`grep '\[avilib\] V:' vcd3/info | \ > perl -e ' $line= ; $line =~ /V: (.+?) fps/ ; > print $1' ` > FPS_1=`echo "scale=1 ; $FPS/1"| bc -l` > FRAMES=`grep '\[avilib\] V:' vcd3/info | \ > perl -e ' $line= ; $line =~ /frames=(\d+)/ ; > print $1' ` > SEGUNDOS_TOTAL=`echo "scale=0 ; ($FRAMES / $FPS)"| bc -l` > HORAS=`echo "scale=0 ; ($SEGUNDOS_TOTAL / 3600)"| bc -l` > MINUTOS=`echo "scale=0 ; (($SEGUNDOS_TOTAL - 3600 * > $HORAS)/60)"| bc -l` > SEGUNDOS=`echo "scale=0 ; ($SEGUNDOS_TOTAL % 60)"| bc -l` > > VIDEO_RATE=`echo "scale=0 ;(($CDSIZE * 1024 - \ > ($AUDIORATE/8*$SEGUNDOS_TOTAL))*8 / $SEGUNDOS_TOTAL)"| > bc -l` > if [ $VIDEO_RATE -ge 8000 ]; then VIDEO_RATE=8000; fi > #VIDEO_RATE=1150 > > rm vcd3/info > > echo "*************** FILE INFO ***************" > echo "Frame Size: ${WIDTH}x${HEIGHT} - FPS: $FPS" > echo "Length: $FRAMES - Seconds: $SEGUNDOS_TOTAL" > echo "$HORAS hours, $MINUTOS minutes, $SEGUNDOS seconds" > rm vcd3/info > > echo "*************** FILE INFO ***************" > echo "Frame Size: ${WIDTH}x${HEIGHT} - FPS: $FPS" > echo "Length: $FRAMES - Seconds: $SEGUNDOS_TOTAL" > echo "$HORAS hours, $MINUTOS minutes, $SEGUNDOS seconds" > > echo > echo "VIDEO-RATE: $VIDEO_RATE" > CBR="`echo "$VIDEO_RATE * 1000" | bc -l`" > > cat > auto.prof << END > #VCD profile to try and fit space allocated > fixed_vbv_delay = 1 > vbv_buffer_size = 230 > cbr = 1 > cbr_bitrate = $CBR.0 > quant_value = 2 > qscale_type = 0 > vbr_mux = 0 > video_buf_size = 230 > use_comp_bitrate = 1 > max_bitrate = $CBR.0 > END > echo "Video Output: ${WIDTH_OUT}x${HEIGHT_OUT}" > > # Ahora calculamos los valores pa los bordes. > > ANCHO_1_1_OUT="`echo "($HEIGHT_OUT * 4/3)"| bc -l`" > ALTO_OUT="`echo "$HEIGHT / ($WIDTH / $ANCHO_1_1_OUT)" | bc -l`" > # Redondeamos > ALTO_OUT="`echo "scale=0 ; $ALTO_OUT/1"| bc -l`" > # Nos aseguramos de que sea par > ALTO_OUT="`echo "scale=0 ; $ALTO_OUT+$ALTO_OUT%2" | bc -l`" > > BORDE="`echo "scale=0 ; ($HEIGHT_OUT-$ALTO_OUT)/2"| bc -l`" > echo "alto sin bordes: $ALTO_OUT, con borde: $BORDE" > echo > INASPECT="$WIDTH_OUT:$ALTO_OUT" > > B=`basename "$i"` > C="$B ($HORAS:$MINUTOS:$SEGUNDOS minutes playtime) $CHOICE > $VIDEO_RATE" > BB=vcd3/$$.temp.avi > echo "^[]0;$C - Stage 1 (Resizing)^G" > > mencoder -aspect "$INASPECT" -noskiplimit -ovc lavc \ > -lavcopts > vcodec=mpeg2video:vhq:vrc_minrate=${VIDEO_RATE}:vbitrate=${VIDEO_RATE}:vrc_maxrate=${VIDEO_RATE}:aspect=4/3 > \ > -oac copy \ > -ofps 23.976 \ > -vop expand=$WIDTH_OUT:$HEIGHT_OUT,scale -zoom > -xy $WIDTH_OUT \ > -o "$BB" "$i" > # -oac pcm -srate 44100 \ > echo "^[]0;$C - Stage 2 (Converting into streams)^G" > ffmpeg -i "$BB" \ > -b "${VIDEO_RATE}" \ > -r 23.976 \ > -aspect "4:3" \ > -vcodec copy \ > -acodec mp2 \ > -ab ${AUDIORATE} \ > -ar 44100 \ > -ac 2 \ > -f vcd \ > "vcd3/${B}.mpg" > #echo "^[]0;$C - Stage 3 (Multiplexing into VOB)^G" > > #mplex -f 8 -V -o "vcd3/${B}.vob" "vcd3/${B}.m1v" "vcd3/${B}.mp2" > # echo "^[]0;$C - Stage 4 (Adding Movie Title to DVD)^G" > #dvdauthor\ > #-o vcd3/mydvd \ > #-a "en" \ > #-v "ntsc+4:3+${WIDTH_OUT}x${HEIGHT_OUT}" \ > #-t \ > #"vcd3/${B}.vob" > rm "$BB" > rm "vcd3/${B}.m1v" > rm "vcd3/${B}.m2v" > rm "vcd3/${B}.mp2" > rm "vcd3/${B}.mp3" > rm "vcd3/${B}.vob" > #cdrdao blank --device 0,0,0 --force --driver generic-mmc-raw > #cd vcd3 || exit 0 > #vcdxgen -t svcd --nopbc *vcd > #vcdxbuild -p --gui *xml > #cdrdao write --device 0,0,0 --force --driver generic-mmc-raw *.cue > #cd .. > echo "^[]0;Done Converting $C^G" > echo > exit 0 > > > > > > Randy Pratt wrote: > > >I've been transcoding some avi files to mpeg2 format to make SVCDs so > >that I can watch them on the tv. > > > >I've not had any problems with the transcoding, but when i use > >vcdimager to create the bin/cue files I'll get a warning like: > > > > ++ WARN: bad packet at packet #314266 (stream byte offset > > 730354184) -- remaining 796144300 bytes of stream will be ignored > > > >I did not create the original avi file but I'm guessing that this > >problem was created when two avi files were joined together to make > >one file. > > > >I'd appreciate any pointers on how to repair the breakage or any > >method that could be used as a work-around. I've looked thru > >man transcode and tons of google but so far found nothing to > >address this. > > > >Any ideas appreciated! > > > >Thanks, > > > >Randy > > > > > >_______________________________________________ > >freebsd-multimedia@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > >To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" > > > > > > --