Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 1999 00:26:22 -0500 (CDT)
From:      Kevin Day <toasty@home.dragondata.com>
To:        aa8vb@ipass.net (Randall Hopper)
Cc:        freebsd-multimedia@FreeBSD.ORG
Subject:   Re: fxtv -> mpeg
Message-ID:  <199906230526.AAA16220@home.dragondata.com>
In-Reply-To: <19990620090207.A1125@ipass.net> from Randall Hopper at "Jun 20, 1999  9: 2: 7 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> I'm not sure that I've seen this error before, but this may be a byte-order
> problem.  FreeBSD-versions ago, I found I had to rebuild mpeg_audio from
> scratch to get the byte order so it was compatible with sox and mpeg_encode.
> 
> But to nail it down, capture a clip with "MPEG Ready" as a Target (instead
> of MPEG).  This'll leave you with raw capture files and a shell script with
> a .sh extension).  Edit the first line of the script, and change
> "#!/bin/sh" to " "#!/bin/sh -x".  Now, it'll print what its doing, and you
> can see which command is griping.
> 
> Run the script and save off the output.  E.g.:
> 
>    go.sh >& OUT          (csh/tcsh), or 
>    go.sh > OUT 2>&1      (sh/ksh/bash)
> 
> See what you find.
> 

Here's what I get..

::EXEC:: fxtv -batch streamavcap -streaminput /root/myfile.AVraw -frameformat PPM -videotarget - -streamfps 30 -audiotarget /root/myfile.AUDraw | mpeg_encode /root/myfile.param
MPEG ENCODER STATS (1.5b)
------------------------
TIME STARTED:  Wed Jun 23 00:13:29 1999
MACHINE:  unknown
INPUT:  stdin
PATTERN:  ibpbibpbpb
GOP_SIZE:  10
SLICES PER FRAME:  1
RANGE:  +/-8
PIXEL SEARCH:  HALF
PSEARCH:  LOGARITHMIC
BSEARCH:  SIMPLE
QSCALE:  8 10 25
REFERENCE FRAME:  ORIGINAL


Creating new GOP (closed = T) before frame 0
FRAME 0 (I):  0 seconds  (2699040 bits/s output)
FRAME 2 (P):  I BLOCKS:  0;  P BLOCKS:  229   SKIPPED:  71  (0 seconds)
FRAME 1 (B):  I BLOCKS:  0;  B BLOCKS:  215   SKIPPED:  85 (0 seconds)
FRAME 4 (I):  0 seconds  (2703600 bits/s output)
FRAME 3 (B):  I BLOCKS:  0;  B BLOCKS:  297   SKIPPED:  3 (0 seconds)
FRAME 6 (P):  I BLOCKS:  2;  P BLOCKS:  231   SKIPPED:  67  (0 seconds)
FRAME 5 (B):  I BLOCKS:  0;  B BLOCKS:  298   SKIPPED:  2 (0 seconds)
FRAME 8 (P):  I BLOCKS:  3;  P BLOCKS:  228   SKIPPED:  69  (0 seconds)
FRAME 7 (B):  I BLOCKS:  0;  B BLOCKS:  298   SKIPPED:  2 (0 seconds)
FRAME 10 (I):  0 seconds  (2705040 bits/s output)
FRAME 9 (B):  I BLOCKS:  0;  B BLOCKS:  299   SKIPPED:  1 (0 seconds)
FRAME 12 (P):  I BLOCKS:  2;  P BLOCKS:  237   SKIPPED:  61  (0 seconds)
FRAME 11 (B):  I BLOCKS:  0;  B BLOCKS:  300   SKIPPED:  0 (0 seconds)
Creating new GOP (closed = F) before frame 14

<huge snip>

FRAME 2126 (P):  I BLOCKS:  47;  P BLOCKS:  185   SKIPPED:  68  (0 seconds)
FRAME 2125 (B):  I BLOCKS:  0;  B BLOCKS:  247   SKIPPED:  53 (0 seconds)
FRAME 2128 (P):  I BLOCKS:  4;  P BLOCKS:  222   SKIPPED:  74  (0 seconds)
FRAME 2127 (B):  I BLOCKS:  0;  B BLOCKS:  167   SKIPPED:  133 (0 seconds)
FRAME 2130 (I):  0 seconds  (1086960 bits/s output)
FRAME 2129 (B):  I BLOCKS:  0;  B BLOCKS:  184   SKIPPED:  116 (0 seconds)
FRAME 2132 (P):  I BLOCKS:  72;  P BLOCKS:  191   SKIPPED:  37  (0 seconds)
FRAME 2131 (B):  I BLOCKS:  1;  B BLOCKS:  279   SKIPPED:  20 (0 seconds)
Creating new GOP (closed = F) before frame 2134
FRAME 2134 (I):  0 seconds  (1301760 bits/s output)
FRAME 2133 (B):  I BLOCKS:  0;  B BLOCKS:  210   SKIPPED:  90 (0 seconds)
FRAME 2136 (P):  I BLOCKS:  2;  P BLOCKS:  251   SKIPPED:  47  (0 seconds)
FRAME 2135 (B):  I BLOCKS:  0;  B BLOCKS:  212   SKIPPED:  88 (0 seconds)


TIME COMPLETED:  Wed Jun 23 00:19:57 1999
Total time:  6 minutes and 28 seconds

-------------------------
*****I FRAME SUMMARY*****
-------------------------
  Blocks:    128400     (26775575 bits)     (  208 bpb)
  Frames:      428     (26820648 bits)     (62665 bpf)     (58.5% of total)
  Compression:   29:1     (   0.8160 bpp)
  Seconds:         37     (  11.2830 fps)  (   866530 pps)  (     3384 mps)
-------------------------
*****P FRAME SUMMARY*****
-------------------------
  I Blocks:  27879     (5108947 bits)     (  183 bpb)
  P Blocks:  109998     (8056797 bits)     (   73 bpb)
  Skipped:   54423
  Frames:      641     (13238552 bits)     (20652 bpf)     (28.9% of total)
  Compression:   89:1     (   0.2689 bpp)
  Seconds:        149     (   4.2924 fps)  (   329657 pps)  (     1287 mps)
-------------------------
*****B FRAME SUMMARY*****
-------------------------
  I Blocks:   7376     (829008 bits)     (  112 bpb)
  B Blocks:  262867     (4852598 bits)     (   18 bpb)
  B types:   48850     (  19 bpb) forw  46187 (  19 bpb) back   167830 (  17 bpb) bi
  Skipped:   50157
  Frames:     1068     (5802792 bits)     ( 5433 bpf)     (12.6% of total)
  Compression:  339:1     (   0.0707 bpp)
  Seconds:        369     (   2.8893 fps)  (   221902 pps)  (      866 mps)
---------------------------------------------
Total Compression:   -7:1     (  -3.0924 bpp)
Total Frames Per Second:  5.507732 (1652 mps)
CPU Time:  3.837314 fps     (1151 mps)
Total Output Bit Rate (30 fps):  644031 bits/sec
MPEG file created in :  /root/myfile.mpg


======FRAMES READ:  2137
::STATUS:: 0
::EXEC:: rm /root/myfile.param
::STATUS:: 0
::EXEC:: sox -t raw -s -w -c 2 -r 44100 /root/myfile.AUDraw -t aiff /root/myfile.aiff && mpeg_musicin -l 2 -p 1 /root/myfile.aiff /root/myfile.mp2 && rm /root/myfile.aiff
SmpFrqIndex: 0 is not a legal sample rate
>>> Using Audio IFF sound file headers
in "/root/myfile.aiff".
::STATUS:: 1

Command Failed:
  sox -t raw -s -w -c 2 -r 44100 /root/myfile.AUDraw -t aiff /root/myfile.aiff && mpeg_musicin -l 2 -p 1 /root/myfile.aiff /root/myfile.mp2 && rm /root/myfile.aiff
Conversion Aborted.



> Also, check your audio capture format.  If you're not, try using Stereo 16-bit
> 44.1KHz.

Yeah, It's 44k 16 bit stereo....

> 
> Another thing to try:  see what sox thinks of your AIFF file directly.  Grab:
> 
>     wget http://www.ipass.net/~dbhopper/aa8vb/dsp-recplay.tgz
> 
> compile, then play:
> 
>     sox -t aiff /root/whatever/myfile.aiff -t raw -s -w -r 44100 - | \
>       dsp-play -r 44100 -b 16 -c 2
> 
> Randall
> 

I'm not able to reach that site now, but i'll try again in a little bit. :)


Also, I'm not sure if I mentioned this the first time or not, but Windows
and QuickTime are able to read the aiff file just fine.

Kevin


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906230526.AAA16220>