Re: taking many 198k mp3 files and converting them to 16k mp3

2006-09-01 Thread Gary Kline
On Wed, Aug 30, 2006 at 10:08:04AM +0100, Howard Jones wrote:
 [EMAIL PROTECTED] wrote:
  If your DVD player can't play mp3s, then it can't play DVDs. ;)
  Remember, mp3s are the audio layer of mpegs. And DVD videos consist of
  mpegs. 
 
 For a DVD-Video disc, the audio formats are PCM (plain old wav,
 effectively), AC-3 (dolby digital) and MPEG-1 Audio Layer II (only).
 
 A lot of DVD players will also play MP3s, either on data CDs or data
 DVDs (or both), but it isn't a requirement as far as I can tell. The
 choices seem pretty arbitrary too. My Pioneer player will play a DVD-R
 full of MP3s, but the replacement model will only play MP3 CD-Rs (and
 you have to read the fine print in the manual to figure it out, too). It
 seems that a lot of DivX-playing DVD players only play CDs of DivX, not
 DVDs too (Toshiba, Pioneer again).
 
 That's why I was fiddling around with MP2 and minimal video - it's an
 actual standard DVD then. Although in fact I made an NTSC disc with MP2,
 which is apparently a no-no.
 
 My source was for the audio info was:
 http://stream.uen.org/medsol/dvd/pages/dvd_format_audio4DVDvideo.html
 

Great URL.  If you or anybody else has any other audio type
pages, please do post them. (Time I caught up to the 20th
century. :-|)

A related area is the brand new 'mp4' or 'aacplus' format.  I
don't care much how good the audio quality is most of the tme.
But I've listed to sites that play 24k mp3 and 24k aacplus, and
the difference is significant.  For voice, it's a dontcare.
But for music, bigdifference.

gary


 Howie

-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-30 Thread andrew clarke
On Sun, Aug 27, 2006 at 06:13:40PM -0400, [EMAIL PROTECTED] wrote:

  I suppose I can buy a DVD-R[W] and fnd out, but is there any reason
  why I can't have many hours of audio on a DVD?  In other words, id a DVD
  *only* for video?   --Might be nice to gather (parts of) my favorite CD's 
  onto one Very long-playing disk.
 
 If your DVD player can't play mp3s, then it can't play DVDs. ;)
 Remember, mp3s are the audio layer of mpegs. And DVD videos consist of
 mpegs. 

The main issue I've had is that some (particularly older) DVD players
won't recognise the file system on data DVDs (neither ISO or UDF), and
so won't see that there are MP3s on the disc.  The same players happily
accepted MP3s on data CDs though.

Blank CDs are also dirt cheap.  Based on my rough calculations, you
should be able to store about 3000 minutes (50 hours) of 32 kbit MP3
audio on a single 700 Mb data CD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-30 Thread Howard Jones
[EMAIL PROTECTED] wrote:
 If your DVD player can't play mp3s, then it can't play DVDs. ;)
 Remember, mp3s are the audio layer of mpegs. And DVD videos consist of
 mpegs. 

For a DVD-Video disc, the audio formats are PCM (plain old wav,
effectively), AC-3 (dolby digital) and MPEG-1 Audio Layer II (only).

A lot of DVD players will also play MP3s, either on data CDs or data
DVDs (or both), but it isn't a requirement as far as I can tell. The
choices seem pretty arbitrary too. My Pioneer player will play a DVD-R
full of MP3s, but the replacement model will only play MP3 CD-Rs (and
you have to read the fine print in the manual to figure it out, too). It
seems that a lot of DivX-playing DVD players only play CDs of DivX, not
DVDs too (Toshiba, Pioneer again).

That's why I was fiddling around with MP2 and minimal video - it's an
actual standard DVD then. Although in fact I made an NTSC disc with MP2,
which is apparently a no-no.

My source was for the audio info was:
http://stream.uen.org/medsol/dvd/pages/dvd_format_audio4DVDvideo.html

Howie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-28 Thread Howard Jones
Gary Kline wrote:
   Well, if/when you *do* try, please clue me in.  --I'm too new to
   DVD's and tooo che--er, thrifty to buy a ten pack of blanks.  I'm
   not sure that I have three hours of favorites; probably, but no
   more.  Most of my favorite tunes are on tape--pre-recorded and
   hi-fidelity, but the problem is turnning analogue to digital. 

Thrift isn't really an issue nowadays - you can get 50 DVD-Rs for about
$10-15 online. Cheap enough to use a few to experiement, in my opinion.

I did some experimenting last night, and got what seems to be a working
solution. I don't have a DVD burner where I am, so I haven't *actually*
burned one, but 2 software players (Apple's and Media Player Classic)
are both happy with the VIDEO_TS files. From my brief research, the
minimum bitrate for DVD audio is 32Khz, and there isn't a minimum for
the video, only a maximum. There is also a video-CD-like frame size of
352x480 for NTSC so you can reduced the video size further.

For my test audio file (2:12 song), I got:
2.2MB Original MP3 file - 192Kbit/sec 44.1Khz sample-rate joint stereo
3.3MB MP2 file - no changes apart from 44.1-48 resampling
0.5MB MP2 file - resampled to 48Khz, forced to mono and 32Kbit/sec
output stream

the 0.5MB file doesn't actually sound *that* bad for music - it's AM
radio quality. It would be fine for speech.

A 64Kbps video file to go with it is about 2.6MB, so the final 'DVD
file' is either 6.7M ('music' quality) or 4M ('voice' quality). DVD
authoring adds around 800K, but I don't believe this is per-chapter.

Assuming that it isn't, that's around 2400 minutes on a DVD-R (voice) or
1500 minutes (music), and it should be playable on any DVD player, since
it should be a full-spec DVD still.

Here's my notes on producing a disc. This is for an NTSC disc. For PAL,
you need to change 480 to 576 wherever it appears, add 'pal' instead of
'ntsc' to the dvdauthor line, and -f 25 instead of -f 30 in the
transcode line.

I'm no video expert, so I'm sure there are better ways to do this, but
this one worked for me!

Howie

##
# Take the MP3 file, play it into toolame as 48Khz PCM data
# toolame reencodes as MP2 (for DVD) at 32khz (the minimum?) in mono
madplay -R48000 -b16 -o wave:- mytestfile.mp3 | toolame -s 48 -b 32 -a
-m m - mytestfile.mp2
# (take out the -b 32 and -a -m m if you want music quality)

# next, we'll produce a VERY low bitrate MPEG2 movie of the same length as
# the audio  since we have to do *some* encoding here, we might as well make
# the static image be the title of the audio track.

# this is ALL ONE pipeline
ppmmake blue 352 480 | \
ppmlabel -x 50 -y 100 -text This is the track name | \
ppmtoy4m -S 420mpeg2 -r -v2 | \
transcode -x yuv4mpeg,mp3 -y mpeg2enc,null -o mytestfile -p
mytestfile.mp3 \
-Z 352x480 -F 8,-b 64 -i /dev/stdin -g 352x480 --import_asr 2 -f
30 -m /dev/null

# So that's: make a blank blue image of the correct size for NTSC video
at the smallest size
# add a caption over it
# take that PPM file use it to stream frames into the video transcoder.
#  (We only have one frame, so just repeat it)
# transcode takes that frame and encodes it as DVD-compatible 64kbps MPEG-2
# (normally for a DVD movie it would be more like 5000kpbs)
# we import an audio stream even though we aren't using it, so as to get
the
# right length. Otherwise we get a never-ending video stream :-)

# So now, there's a .m2v video stream, and a .mp2 audio stream, and we
need to
# multiplex them.
mplex -f 8  -o mytestfile.mpg  mytestfile.m2v mytestfile.mp2

# *** repeat the above for each of your audio files. ***

# finally, we can make a simple DVD
dvdauthor -v ntsc+4:3+352x480 -a mp2+en+1ch+16bps -t -o testdvd
mytestfile.mpg
dvdauthor -T -o testdvd

# if you used 'music' quality encoding in toolame, then use 2ch instead
of 1ch here

# You should find a DVD structure (VIDEO_TS, AUDIO_TS) waiting in the
'testdvd' directory.
# you can specify multiple .mpg files on the command line, and each one
will
#become a chapter on the DVD

# FINALLY, to get a burnable ISO image:
mkisofs -dvd-video -o testdvd.iso testdvd
# and burn it to /dev/acd0:
growisofs -dvd-compat -Z /dev/acd0=testdvd.iso

# Ports used:
#  sysutils/dvd+rw-tools  (growisofs)
#  sysutils/cdrtools (mkisofs - installed as a dependency of dvd+rw-tools)
#  mjpegtools  (mplex, y4m stuff)
#  netpbm(ppmfile, ppmlabel)
#  toolame   (MPEG Layer II encoding)
#  madplay   (MP3 decoding)
#  dvdauthor (final authoring)
#  transcode (install this last, so it gets the mpeg2encode from mjpegtools)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-28 Thread Gary Kline
On Mon, Aug 28, 2006 at 01:56:31PM +0100, Howard Jones wrote:
 Gary Kline wrote:
  Well, if/when you *do* try, please clue me in.  --I'm too new to
  DVD's and tooo che--er, thrifty to buy a ten pack of blanks.  I'm
  not sure that I have three hours of favorites; probably, but no
  more.  Most of my favorite tunes are on tape--pre-recorded and
  hi-fidelity, but the problem is turnning analogue to digital. 
 
 Thrift isn't really an issue nowadays - you can get 50 DVD-Rs for about
 $10-15 online. Cheap enough to use a few to experiement, in my opinion.

Wow! that really *is* a deal.  About where the floppies were
years back.   I was guessing $2.50+ per blank.

 
 I did some experimenting last night, and got what seems to be a working
 solution. I don't have a DVD burner where I am, so I haven't *actually*
 burned one, but 2 software players (Apple's and Media Player Classic)
 are both happy with the VIDEO_TS files. From my brief research, the
 minimum bitrate for DVD audio is 32Khz, and there isn't a minimum for
 the video, only a maximum. There is also a video-CD-like frame size of
 352x480 for NTSC so you can reduced the video size further.
 
 For my test audio file (2:12 song), I got:
 2.2MB Original MP3 file - 192Kbit/sec 44.1Khz sample-rate joint stereo
 3.3MB MP2 file - no changes apart from 44.1-48 resampling
 0.5MB MP2 file - resampled to 48Khz, forced to mono and 32Kbit/sec
 output stream
 
 the 0.5MB file doesn't actually sound *that* bad for music - it's AM
 radio quality. It would be fine for speech.
 
 A 64Kbps video file to go with it is about 2.6MB, so the final 'DVD
 file' is either 6.7M ('music' quality) or 4M ('voice' quality). DVD
 authoring adds around 800K, but I don't believe this is per-chapter.
 
 Assuming that it isn't, that's around 2400 minutes on a DVD-R (voice) or
 1500 minutes (music), and it should be playable on any DVD player, since
 it should be a full-spec DVD still.


Video is a just-say-no in my case; I've got around 26 hours of
very high quality (192K) mp3 files (voice) that ought to be just
fine at 32K/48KHz monaural.   This for the stuff that's taking up
hundreds of megs on-disk.

As for collecting my favorite, I don't have anywhere near 25
hours (1500 minutes) of them, so maybe I'll  wait until mp4
or AACplus  [[[ these are the same, right? ]]] is more widely
available, then stuff my few hours onto a regular CD-R.  

 
 Here's my notes on producing a disc. This is for an NTSC disc. For PAL,
 you need to change 480 to 576 wherever it appears, add 'pal' instead of
 'ntsc' to the dvdauthor line, and -f 25 instead of -f 30 in the
 transcode line.
 
 I'm no video expert, so I'm sure there are better ways to do this, but
 this one worked for me!


Well sir, you are lightyears beyond me!!  During my hackery years
I worked mostly in the supercomputer realm.   Sound? video? on
a *computer*???   Faugh!  

I'm finally learning what I was missing :-)

thanks much for your help.  same for everybody else who
offered help, clues, and code!

gary

 
 Howie
 
 ##
 # Take the MP3 file, play it into toolame as 48Khz PCM data
 # toolame reencodes as MP2 (for DVD) at 32khz (the minimum?) in mono
 madplay -R48000 -b16 -o wave:- mytestfile.mp3 | toolame -s 48 -b 32 -a
 -m m - mytestfile.mp2
 # (take out the -b 32 and -a -m m if you want music quality)
 
 # next, we'll produce a VERY low bitrate MPEG2 movie of the same length as
 # the audio  since we have to do *some* encoding here, we might as well make
 # the static image be the title of the audio track.
 
 # this is ALL ONE pipeline
 ppmmake blue 352 480 | \
 ppmlabel -x 50 -y 100 -text This is the track name | \
 ppmtoy4m -S 420mpeg2 -r -v2 | \
 transcode -x yuv4mpeg,mp3 -y mpeg2enc,null -o mytestfile -p
 mytestfile.mp3 \
 -Z 352x480 -F 8,-b 64 -i /dev/stdin -g 352x480 --import_asr 2 -f
 30 -m /dev/null
 
 # So that's: make a blank blue image of the correct size for NTSC video
 at the smallest size
 # add a caption over it
 # take that PPM file use it to stream frames into the video transcoder.
 #  (We only have one frame, so just repeat it)
 # transcode takes that frame and encodes it as DVD-compatible 64kbps MPEG-2
 # (normally for a DVD movie it would be more like 5000kpbs)
 # we import an audio stream even though we aren't using it, so as to get
 the
 # right length. Otherwise we get a never-ending video stream :-)
 
 # So now, there's a .m2v video stream, and a .mp2 audio stream, and we
 need to
 # multiplex them.
 mplex -f 8  -o mytestfile.mpg  mytestfile.m2v mytestfile.mp2
 
 # *** repeat the above for each of your audio files. ***
 
 # finally, we can make a simple DVD
 dvdauthor -v ntsc+4:3+352x480 -a mp2+en+1ch+16bps -t -o testdvd
 mytestfile.mpg
 dvdauthor -T -o testdvd
 
 # 

Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread andrew clarke
On Sat, Aug 26, 2006 at 10:36:54PM -0700, Gary Kline wrote:

 Is there a way of using sox (or another translator) to turn HUGE  
 audio mp3 files into much much smaller files?  Say taking man mp3 
 files that are stored at 198k high fidelity and outputting these to 
 16k or 32k mp3 (or *.ogg or other format) audio files?

LAME (audio/lame in Ports) will do conversions:

bash-2.05b$ lame -b 32 -h Python411_060823_Milestones.mp3 
ID3v2 found. Be aware that the ID3 tag is currently lost when transcoding.
LAME version 3.96.1 (http://lame.sourceforge.net/)
CPU features: MMX (ASM used), 3DNow! (ASM used)
Resampling:  input 32 kHz  output 22.05 kHz
Using polyphase lowpass filter, transition band:  8269 Hz -  8535 Hz
Encoding Python411_060823_Milestones.mp3
  to Python411_060823_Milestones.mp3.mp3
Encoding as 22.05 kHz  32 kbps single-ch MPEG-2 Layer III (11x) qval=2
Frame  |  CPU time/estim | REAL time/estim | play/CPU |ETA 
   600/40388  ( 1%)|0:07/8:35|0:07/8:51|   2.0471x|8:43 

etc.

If you want to do multiple files you'll need to write a script to call
LAME multiple times.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread Gary Kline
On Sun, Aug 27, 2006 at 04:01:23PM +1000, andrew clarke wrote:
 On Sat, Aug 26, 2006 at 10:36:54PM -0700, Gary Kline wrote:
 
  Is there a way of using sox (or another translator) to turn HUGE  
  audio mp3 files into much much smaller files?  Say taking man mp3 
  files that are stored at 198k high fidelity and outputting these to 
  16k or 32k mp3 (or *.ogg or other format) audio files?
 
 LAME (audio/lame in Ports) will do conversions:
 
 bash-2.05b$ lame -b 32 -h Python411_060823_Milestones.mp3 
 ID3v2 found. Be aware that the ID3 tag is currently lost when transcoding.
 LAME version 3.96.1 (http://lame.sourceforge.net/)
 CPU features: MMX (ASM used), 3DNow! (ASM used)
 Resampling:  input 32 kHz  output 22.05 kHz
 Using polyphase lowpass filter, transition band:  8269 Hz -  8535 Hz
 Encoding Python411_060823_Milestones.mp3
   to Python411_060823_Milestones.mp3.mp3
 Encoding as 22.05 kHz  32 kbps single-ch MPEG-2 Layer III (11x) qval=2
 Frame  |  CPU time/estim | REAL time/estim | play/CPU |ETA 
600/40388  ( 1%)|0:07/8:35|0:07/8:51|   2.0471x|8:43 
 
 etc.
 
 If you want to do multiple files you'll need to write a script to call
 LAME multiple times.


Ah, thank you, thank you.  I just can't see wasting so much of my disk 
[and bakup disks] for what are mostly voice/lectures.  

I suppose I can buy a DVD-R[W] and fnd out, but is there any reason
why I can't have many hours of audio on a DVD?  In other words, id a DVD
*only* for video?   --Might be nice to gather (parts of) my favorite 
CD's 
onto one Very long-playing disk.

gary



-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread hackmiester (Hunter Fuller)


On 27 August 2006, at 02:49, Gary Kline wrote:




	Ah, thank you, thank you.  I just can't see wasting so much of my  
disk

[and bakup disks] for what are mostly voice/lectures.

I suppose I can buy a DVD-R[W] and fnd out, but is there any reason
	why I can't have many hours of audio on a DVD?  In other words, id  
a DVD

*only* for video?


You can always burn a data DVD, like a data CD.


--Might be nice to gather (parts of) my favorite CD's
onto one Very long-playing disk.


That would require you to burn an audio DVD, which you couldn't read  
in a  normal CD drive... and I really don't know how exactly you  
would do it either...


gary



--
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public  
service Unix


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread dgmm
On Sunday 27 August 2006 06:36, Gary Kline wrote:
 files.
 Reply-To:
 X-Organization: Thought Unlimited. Public service Unix since 1986.
 X-Of_Interest:  Observing twenty years of service to the Unix community


   Is there a way of using sox (or another translator) to turn HUGE
   audio mp3 files into much much smaller files?  Say taking man mp3
   files that are stored at 198k high fidelity and outputting these to
   16k or 32k mp3 (or *.ogg or other format) audio files?

   thanks for any insights, sugggestions, or pointers,

   gary

I wrote this a while back.  You might find it useful or be able to update it 
to do what you need.

#!/bin/sh
basedir=/home1/convert
touch ${basedir}/mp3lock
# Convert all mp3 files in $basedir to $bitrate, $samplerate, $channels
# where $bitrate, $samplerate and $channels are derived from the pathname.
#
# $basedir - top of the tree to convert. Below $basedir should be two
#directories named todo and done.
#Below todo you must create directories named using this
#convention:
#@[EMAIL PROTECTED]@cc@ - where bb is the desired bitrate, ss is 
the desired
# samplerate and cc is the channels or mode.  The mode
# may be one of s, stereo, j, joint-stereo, m, mono,
# f, forced joint-stereo or d, duel channel.
#The mp3 files will be stored  below todo/@[EMAIL PROTECTED]@cc@ 
and will be
#converted using the parameters extracted from the directory name 
and
#then saved into an identical dir structure below done.
#
#Note:  Spaces in the filenames will be replaced with underscores.
#   Spaces in directory names will remain as is
#
#The original file will be deleted after it has been converted.
#Comment out the rm $filename near the end to keep the original.
#
# $ffile  - just the filename (in case we need this at a future date)
#
# $destfile - full, modified, path to the done dir tree

find $basedir/todo -name *.mp3 -type f |
while read filename
  do
destfile=`echo -n $filename | sed 's/\/todo\//\/done\//' | 
sed 's/ /_/g'`
ffile=${destfile##*/}
fpath=${destfile%/*}
# Check if dest. path exists, create if req.
if [ ! -d $fpath ]
  then
mkdir -p $fpath
fi
# Get conversion parameters from pathname
bitrate=`echo $destfile | cut -f 2 -d @`
samplerate=`echo $destfile | cut -f 3 -d @`
channels=`echo $destfile | cut -f 4 -d @`
echonice -n 20 lame -h -b $bitrate --resample $samplerate -m 
$channels $filename $destfile
#rm $filename
  done
rm `echo ${basedir}/mp3lock`


-- 
Dave
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread Gary Kline
On Sun, Aug 27, 2006 at 03:04:10PM -0500, hackmiester (Hunter Fuller) wrote:
 
 On 27 August 2006, at 02:49, Gary Kline wrote:
 
 
 
  Ah, thank you, thank you.  I just can't see wasting so much of my  
 disk
  [and bakup disks] for what are mostly voice/lectures.
 
  I suppose I can buy a DVD-R[W] and fnd out, but is there any reason
  why I can't have many hours of audio on a DVD?  In other words, id  
 a DVD
  *only* for video?
 
 You can always burn a data DVD, like a data CD.
 
 --Might be nice to gather (parts of) my favorite CD's
  onto one Very long-playing disk.
 
 That would require you to burn an audio DVD, which you couldn't read  
 in a  normal CD drive... and I really don't know how exactly you  
 would do it either...
 
 

I have a DVD burner in my newest server; my thinking is that 
I would burn some N *.mp3 files onto a DVD, then play it back.
The questions are whether I would have to create a filesystem,
or if the DVD format would  allow/see the *.mp3's audio or
data.  Or what!



-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread Howard Jones

hackmiester (Hunter Fuller) wrote:

On 27 August 2006, at 02:49, Gary Kline wrote:

--Might be nice to gather (parts of) my favorite CD's
onto one Very long-playing disk.


That would require you to burn an audio DVD, which you couldn't read 
in a  normal CD drive... and I really don't know how exactly you would 
do it either...


Not necessarily. Both of my current DVD players can play a DVD full of 
MP3 files. One is a Pioneer, and the other is a more 'random' brand 
DVD/DiVX player. The Pioneer does a better job, but both will play 
data discs of MP3, WMA, JPEG and MPEG1 amongst other things.


Another possibility would be to convert to MP2 audio and make a minimal 
video stream to go alongside the audio - say, a black screen, and make a 
DVD Video disk using something like transcode. I don't know what the 
bare minimum video bitrate is for DVD, but I know you can get a good few 
hours that way, in a format that would play on any DVD player. I've been 
meaning to try this for ages.


Howie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread hackmiester (Hunter Fuller)


On 27 August 2006, at 16:26, Gary Kline wrote:



I have a DVD burner in my newest server; my thinking is that
I would burn some N *.mp3 files onto a DVD, then play it back.


On what?


The questions are whether I would have to create a filesystem,
or if the DVD format would  allow/see the *.mp3's audio or
data.  Or what!


What DVD format? There is no DVD format. You can put files on one  
however you want. However, if you want a DVD player to read it, it  
has to be an ISO file system and files have to be in a certain place.  
This setup doesn't support mp3s directly, but you might want to look  
in to the dvd audio standard, and I'm not sure if there is a port  
for buring that, or not...


What I'm trying to say, is if you are just gonna play them back on  
your computer, it doesn't matter where you put them, you can use  
standard tools like mkisofs, etc..






--
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public  
service Unix





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread hackmiester (Hunter Fuller)


On 27 August 2006, at 16:38, Howard Jones wrote:


hackmiester (Hunter Fuller) wrote:
That would require you to burn an audio DVD, which you couldn't  
read in a  normal CD drive... and I really don't know how exactly  
you would do it either...


Not necessarily. Both of my current DVD players can play a DVD full  
of MP3 files.


You bring up a good point, but that's not part of the DVD standard.
One is a Pioneer, and the other is a more 'random' brand DVD/DiVX  
player. The Pioneer does a better job, but both will play data  
discs of MP3, WMA, JPEG and MPEG1 amongst other things.


Another possibility would be to convert to MP2 audio and make a  
minimal video stream to go alongside the audio - say, a black  
screen, and make a DVD Video disk using something like transcode.


The blank video would waste lots of space on the DVD, I think.

I don't know what the bare minimum video bitrate is for DVD, but I  
know you can get a good few hours that way, in a format that would  
play on any DVD player. I've been meaning to try this for ages.


That is true.



Howie



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread steveb

   Ah, thank you, thank you.  I just can't see wasting so much of my disk 
   [and bakup disks] for what are mostly voice/lectures.  
 
   I suppose I can buy a DVD-R[W] and fnd out, but is there any reason
   why I can't have many hours of audio on a DVD?  In other words, id a DVD
   *only* for video?   --Might be nice to gather (parts of) my favorite 
 CD's 
   onto one Very long-playing disk.
 

If your DVD player can't play mp3s, then it can't play DVDs. ;)
Remember, mp3s are the audio layer of mpegs. And DVD videos consist of
mpegs. 
You can downsample mp3s via lame:

#!/bin/sh
for i in $(ls *.mp3);
do lame -b 16 $i -o $i.mp3;
done

This will leave you with with files named *.mp3.mp3. Check out
'basename' to solve this. Not that your DVD player is going to care.
Then use growisofs to burn your mp3s to a data DVD:

growisofs -Z /dev/insert_device_name_here -J -R .

This assumes you issue the growisofs command from the dir where your
mp3s are.
Happy listening,
 

Steve
-- 
Sed omnia praeclara tam difficilia, quam rara sunt.
06 12 09 0E 0B 12 15 0C 05 13

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-27 Thread Gary Kline
On Sun, Aug 27, 2006 at 10:38:05PM +0100, Howard Jones wrote:
 hackmiester (Hunter Fuller) wrote:
 On 27 August 2006, at 02:49, Gary Kline wrote:
 --Might be nice to gather (parts of) my favorite CD's
 onto one Very long-playing disk.
 
 That would require you to burn an audio DVD, which you couldn't read 
 in a  normal CD drive... and I really don't know how exactly you would 
 do it either...
 
 Not necessarily. Both of my current DVD players can play a DVD full of 
 MP3 files. One is a Pioneer, and the other is a more 'random' brand 
 DVD/DiVX player. The Pioneer does a better job, but both will play 
 data discs of MP3, WMA, JPEG and MPEG1 amongst other things.
 
 Another possibility would be to convert to MP2 audio and make a minimal 
 video stream to go alongside the audio - say, a black screen, and make a 
 DVD Video disk using something like transcode. I don't know what the 
 bare minimum video bitrate is for DVD, but I know you can get a good few 
 hours that way, in a format that would play on any DVD player. I've been 
 meaning to try this for ages.

Well, if/when you *do* try, please clue me in.  --I'm too new to
DVD's and tooo che--er, thrifty to buy a ten pack of blanks.  I'm
not sure that I have three hours of favorites; probably, but no
more.  Most of my favorite tunes are on tape--pre-recorded and
hi-fidelity, but the problem is turnning analogue to digital. 

Anyway, good to know that DVD's can play  datafiles!

gary




 
 Howie

-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


taking many 198k mp3 files and converting them to 16k mp3

2006-08-26 Thread Gary Kline
files.
Reply-To: 
X-Organization: Thought Unlimited. Public service Unix since 1986.
X-Of_Interest:  Observing twenty years of service to the Unix community


Is there a way of using sox (or another translator) to turn HUGE  
audio mp3 files into much much smaller files?  Say taking man mp3 
files that are stored at 198k high fidelity and outputting these to 
16k or 32k mp3 (or *.ogg or other format) audio files?

thanks for any insights, sugggestions, or pointers,

gary




-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: taking many 198k mp3 files and converting them to 16k mp3

2006-08-26 Thread Girish Venkatachalam

On 8/27/06, Gary Kline [EMAIL PROTECTED] wrote:


Is there a way of using sox (or another translator) to turn HUGE
audio mp3 files into much much smaller files?  Say taking man mp3
files that are stored at 198k high fidelity and outputting these to
16k or 32k mp3 (or *.ogg or other format) audio files?

thanks for any insights, sugggestions, or pointers,

gary


Normally voice files dont' need the sort of fidelity ur talking about.
you can make do with a much lower bit rate though i can't give u a
number. u have to test it with ur ears.

there are plenty of tools out there that give u what u want.

sox is one and ffmpeg is another. i am sure there are many other that
do as good a job.

if i were u i woudnt go for ogg since it causes transcoding losses. If
you had a wav file, ogg is ok but since u already have an mp3, ogg
doesnt have enuf info to do a good job.

HTH,
Girish
--
Education is an admirable thing but it is good to
remember from time to time that anything that is
worth knowing cannot be taught.

- Oscar Wilde
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]