d6jg wrote: 
> For this reason the best option remains USB thumb drive with 320kbps
> MP3. I have a 32Gb drive which holds more than suffiicient music for
> even the longest journey.

The biggest problem for me is that I'm not aware of any car-based MP3
player (disc or USB) that's fully gapless.

I finally wrote a little Linux script to concatenate album tracks into a
single big file, then convert it to MP3. It requires Sox, FLAC and LAME.
Here it is in case someone else finds any value in it. Note that there
are three different options for the encoding, I leave two commented out
and uncomment whichever one I want to use at the time. Even with the
medium quality -V4 setting in LAME I find it good enough for a noisy car
environment.

Just execute this in the same directory as the album you want to convert
to a single MP3. Change the parameters at the top to insert the correct
metadata.


Code:
--------------------
    
  #!/bin/bash
  
  FileType='flac'
  
  artist='Pink Floyd'
  album='Zabriskie Point'
  year=1970
  outfile='/mnt/WD8TBNAS03/TempAudio/Workspace/Convert/Pink Floyd 
MP3/Temp/15-Zabriskie Point.mp3'
  artwork='Folder.jpg'
  
  FileList=$(find *.$FileType -printf "\"%p\" " | sort)
  printf "$FileList\n"
  
  # Concatenate all album tracks to stdout and pass to lame for encoding to a 
single large MP3
  
  # 320 CBR
  #eval "sox --no-clobber $FileList -t wav - | lame -q0 -b320 -mj 
--noreplaygain --scale 1 --verbose --ta \"$artist\" --tl \"$album\" -ti 
\"$artwork\" --tt \"$album\" --ty $year - \"$outfile\""
  
  # VBR -V0 = highest quality, -V9 = lowest quality
  eval "sox --no-clobber $FileList -t wav - | lame -V4 -mj --noreplaygain 
--scale 1 --verbose --ta \"$artist\" --tl \"$album\" --tt \"$album\" --ti 
\"$artwork\" --ty $year - \"$outfile\""
  
  # VBR ***MONO*** -V0 = highest quality, -V9 = lowest quality
  #eval "sox --no-clobber $FileList -t wav - | lame -V4 -ml --noreplaygain 
--scale 1 --verbose --ta \"$artist\" --tl \"$album\" -ti \"$artwork\" --tt 
\"$album\" --ty $year - \"$outfile\""
  
  # -q0 = highest quality
  # -b320 = 320kbps
  # --scale 1 = do not alter volume
  # -mj = joint stereo
  
--------------------


------------------------------------------------------------------------
atrocity's Profile: http://forums.slimdevices.com/member.php?userid=16009
View this thread: http://forums.slimdevices.com/showthread.php?t=108853

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to