From owner-freebsd-multimedia Sat Sep 11 15:20:33 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 7A44414D0E for ; Sat, 11 Sep 1999 15:20:29 -0700 (PDT) (envelope-from rhh@ipass.net) Received: from stealth.ipass.net. (ppp-4-171.dialup.rdu.ipass.net [209.170.134.171]) by pluto.ipass.net (8.9.3/8.9.3) with ESMTP id SAA12163; Sat, 11 Sep 1999 18:20:24 -0400 (EDT) Received: (from rhh@localhost) by stealth.ipass.net. (8.9.3/8.8.8) id SAA92646; Sat, 11 Sep 1999 18:21:29 -0400 (EDT) (envelope-from rhh) Date: Sat, 11 Sep 1999 18:21:29 -0400 From: Randall Hopper To: thomas@hentschel.net Cc: multimedia@FreeBSD.ORG Subject: Re: fxtv MPEG-audio encoding problems - mplex Message-ID: <19990911182129.A92181@ipass.net> References: <19990908213139.A61803@ipass.net> <199909090658.XAA02027@gate.hentschel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <199909090658.XAA02027@gate.hentschel.net>; from thomas@hentschel.net on Thu, Sep 09, 1999 at 12:03:51AM -0700 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org thomas@hentschel.net: |got over that hump, now that the frame rate works I'm determined to |make the mpg encoding work. The video part works great, however the |audio part is still giving trouble. If I try encoding in mp3, the |following happens (on the console with -debug subproc) : | |::EXEC:: mplex test.mpg test.mp3 test.mps ... |*************************************************************** |* MPEG1/SYSTEMS Multiplexer * ... |* Release 1.1 (06.06.95) * |*************************************************************** | |File test.mpg is a 11172-2 Video stream. |File test.mp3 is a 11172-3 Audio stream. ... |Scanning Audio stream for access units information. |Segmentation fault - core dumped |::STATUS:: 139 | |Command Failed: | mplex test.mpg test.mp3 test.mps |Conversion Aborted. Ouch. mplex bug. |What strikes me as odd is that 24.000 frames/sec -- I set it to 10 |frames/sec in the dialog. That's normal. To create an MPEG-1 video stream, mpeg_encode requires the input frames to be in one of a handful of acceptable frame rates. So after capturing at 10, Fxtv uses a simple-minded algorithm to adjust the frame rate to a supported rate at or about the captured rate. |If I do encoding with mp2, the conversion finishes ok, but playing with |mtv or a ~doze player displays the video correctly, but the sound is just |a short *blop. I usually use MP2. From your experience, it looks like mplex doesn't reliably support MP3. I don't understand the short *blop. |When doing just audio recording, both mp2 and mp3 are ok, this makes me |think that the problem lies somewhere in mplex. I went thru the (somewhat |sparse) documentation of mplex, couldn't find anything useful.... |any idea ?? Hmm. I assume your MP2 plays just fine with mpg123 or your favorite MPEG audio player? Try these capture parameters and see what you get: Target: MPEG Ready Size: 320x240 ImgCapFmt: IYUV Speed: 15fps ImgEncFmt: YUV AudFmt: 44KHz 16-bit stereo enabled AudEncFmt: MPEG-2 Cleanup: Yes It'll generate a .sh script (e.g. my-video.sh). Run that script. You can uncheck Cleanup to force it to leave the intermediate files around. |Thanks for all the help so far, hope I didn't hit the annoyance |threshold yet -- Ok, good. Hope we can get you going. Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message