--- Dave Chapman <[EMAIL PROTECTED]> wrote:
> As promised a couple of hours ago, here's a first
> attempt at a
> "wav2lpcm" program to create a ".lpcm" file suitable
> for multiplexing
> with mplex.
> 
> It should support mono/stereo WAV files at
> 16-bit/24-bit and
> 48KHz/96KHz, but I've not tested it very thoroughly.

dave,
i tried this on a small sample 24/48 wav file.  i then
mplexed it to a black video.  the commands i used and
output are below.  notice that mplex seems to
recognize the lpcm file as 16 bit.  based on the file
size alone (when compared to the original wav file), i
think it is in fact 24 bit.  how do i test the lpcm
file to find sample size and rate?

[EMAIL PROTECTED] 24bit $ /home/chris/wav2lpcm
sample2448.wav > sample2448-2.lpcm
wav2lpcm - Copyright (C) 2005 Dave Chapman
Latest version available from
http://dvd-audio.sourceforge.net/

This is free software; see the source for copying
conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.

INFO: Opening sample2448.wav
WARN: Padding end of stream with one silent sample
INFO: 816882 bytes processed successfully

[EMAIL PROTECTED] 24bit $ mplex -f 8 -o sample2448-2.mpg
black.m2v sample2448-2.lpcm
    INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date:
2004/01/13 20:45:26 $)
   INFO: [mplex] File black.m2v looks like an MPEG
Video stream.
   INFO: [mplex] File sample2448-2.lpcm looks like an
LPCM Audio stream.
   INFO: [mplex] Video stream 0: profile 8 selected -
ignoring non-standard options!
   INFO: [mplex] Found 1 audio streams and 1 video
streams
   INFO: [mplex] Selecting dvdauthor DVD output
profile
   INFO: [mplex] Multiplexing video program stream!
   INFO: [mplex] Scanning for header info: Video
stream e0 (black.m2v)
   INFO: [mplex] VIDEO STREAM: e0
   INFO: [mplex] Frame width     : 720
   INFO: [mplex] Frame height    : 480
   INFO: [mplex] Aspect ratio    : 4:3 display
   INFO: [mplex] Picture rate    : 29.970 frames/sec
   INFO: [mplex] Bit rate        : 7500000 bits/sec
   INFO: [mplex] Vbv buffer size : 229376 bytes
   INFO: [mplex] CSPF            : 0
   INFO: [mplex] Scanning for header info: LPCM Audio
stream 00 (sample2448-2.lpcm)
   INFO: [mplex] LPCM AUDIO STREAM:
   INFO: [mplex] Bit rate       :   192000 bytes/sec
(1536000) bit/sec)
   INFO: [mplex] Channels       :     2
   INFO: [mplex] Bits per sample:     16
   INFO: [mplex] Frequency      :     48000 Hz
   INFO: [mplex] SYSTEMS/PROGRAM stream:
   INFO: [mplex] rough-guess multiplexed stream data
rate    : 9222448
   INFO: [mplex] target data-rate specified           
   : 10080000
   INFO: [mplex] Setting specified specified data
rate: 10080000
   INFO: [mplex] Run-in Sectors = 89 Video delay =
13019 Audio delay = 16022
   INFO: [mplex] New sequence commences...
   INFO: [mplex] Video e0: buf= 237568 frame=000000
sector=00000000
   INFO: [mplex] Audio bd: buf=  59392 frame=000000
sector=00000000
   INFO: [mplex] Scanned to end AU 49
   INFO: [mplex] STREAM e0 completed @ frame 49.
++ WARN: [mplex] Discarding incomplete final frame
LPCM  stream 0
   INFO: [mplex] STREAM bd completed @ frame 2551.
   INFO: [mplex] Multiplex completion at SCR=371419.
   INFO: [mplex] Video e0: buf= 237568 frame=000049
sector=00000020
   INFO: [mplex] Audio bd: buf=    832 frame=002551
sector=00000407
   INFO: [mplex] VIDEO_STATISTICS: e0
   INFO: [mplex] Video Stream length:       35590
bytes
   INFO: [mplex] Sequence headers:        3
   INFO: [mplex] Sequence ends   :        1
   INFO: [mplex] No. Pictures    :       49
   INFO: [mplex] No. Groups      :        3
   INFO: [mplex] No. I Frames    :        3 avg. size 
7350 bytes
   INFO: [mplex] No. P Frames    :       47 avg. size 
 288 bytes
   INFO: [mplex] No. B Frames    :        0 avg. size 
   0 bytes
   INFO: [mplex] Average bit-rate :   170400 bits/sec
   INFO: [mplex] Peak bit-rate    :   163200  bits/sec
   INFO: [mplex] BUFFERING stream too short for useful
statistics
   INFO: [mplex] AUDIO_STATISTICS: bd
   INFO: [mplex] Audio stream length 816888 bytes.
   INFO: [mplex] Frames         : 874157843
   INFO: [mplex] BUFFERING min 32 Buf max 344
   INFO: [mplex] MUX STATUS: no under-runs detected.

[EMAIL PROTECTED] 24bit $ ls -l
total 175921
-rw-r--r--  1 chris users     35590 Feb 12 22:44
black.m2v
-rw-r--r--  1 chris users    816888 Apr  5 18:38
sample2448-2.lpcm
-rw-r--r--  1 chris users    882688 Apr  5 18:39
sample2448-2.mpg
-rw-r--r--  1 chris users    816888 Apr  5 17:18
sample2448.lpcm
-rw-r--r--  1 chris users    816926 Mar 15 17:47
sample2448.wav



                
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to