Re: bash script to convert, compress

2012-12-28 Thread Chris Davies
tsit...@linuxmail.org wrote: > what about the compression and deletion of the converted files? # Compression : # Deletion rm -f Have you not listened to any of the discussion? Compression is pointless, and others have suggested you may want to consider storing the music in a non-lossy format so

Re: bash script to convert, compress

2012-12-28 Thread tsitras
this seems good for start. what about the compression and deletion of the converted files? - Original Message - From: Chris Davies Sent: 12/28/12 01:55 PM To: debian-user@lists.debian.org Subject: Re: bash script to convert, compress Rob Owens wrote: > $(basename $file wav)ogg

Re: bash script to convert, compress

2012-12-28 Thread Chris Davies
Rob Owens wrote: > $(basename $file wav)ogg If you've got bash or some other suitable shell you can do this same thing without resorting to a subprocess: W=/some/path/to/wavmusic.wav echo $(basename "$W" wav)ogg wavmusic.ogg echo "${W/%wav/ogg}" /some/path/to/wavmusic.ogg C

Re: bash script to convert, compress

2012-12-27 Thread Chris Bannister
On Thu, Dec 27, 2012 at 09:36:00AM -0500, Rob Owens wrote: > > Note that I use oggenc here, because I'm not familiar with the command > to convert to mp3, although I imagine ffmpeg would do it. If you find avconv in Debian, ffmpeg is deprecated. root@tal:~# apt-cache show ffmpeg [...] This pa

Re: bash script to convert, compress

2012-12-27 Thread Andrei POPESCU
On Jo, 27 dec 12, 19:40:30, berenger.mo...@neutralite.org wrote: > > Well... actually, you are true, but I know about no lossless > efficient (or at least correct) audio algorithms. Depends what you mean by "efficient". According to Wikipedia FLAC compresses to about 50% without loosing quality

Re: bash script to convert, compress

2012-12-27 Thread berenger . morel
because music, as photo (not drawings, some can be compressed) and films, can be only "compressed" with data losses. I don't agree. Music, photos and films can very well be compressed as long as they are not already compressed (lossy or not). Yes, most usual formats nowadays are already compre

Re: bash script to convert, compress

2012-12-27 Thread Andrei POPESCU
On Jo, 27 dec 12, 05:47:57, tsit...@linuxmail.org wrote: > Hi. i am running debian 6.0.6 and i am banging my head to create a simple > script that will run periodically (through cron). > i do have a whole lot of wav files in opt/wavfiles and i do need: > -convert them to mp3 > -delete the wav f

Re: bash script to convert, compress

2012-12-27 Thread Andrei POPESCU
On Jo, 27 dec 12, 14:52:14, berenger.mo...@neutralite.org wrote: > > Another point about your script: compressing a bunch of mp3 is a > waste of CPU resources and time, Agreed > because music, as photo (not > drawings, some can be compressed) and films, can be only > "compressed" with data losse

Re: bash script to convert, compress

2012-12-27 Thread Rob Owens
On Thu, Dec 27, 2012 at 05:47:57AM -0500, tsit...@linuxmail.org wrote: > Hi. i am running debian 6.0.6 and i am banging my head to create a simple > script that will run periodically (through cron). > i do have a whole lot of wav files in opt/wavfiles and i do need: > -convert them to mp3 > -de

Re: bash script to convert, compress

2012-12-27 Thread berenger . morel
Le 27.12.2012 11:47, tsit...@linuxmail.org a écrit : Hi. i am running debian 6.0.6 and i am banging my head to create a simple script that will run periodically (through cron). i do have a whole lot of wav files in opt/wavfiles and i do need: -convert them to mp3 -delete the wav files that h

Re: bash script to convert, compress

2012-12-27 Thread Raffaele Morelli
2012/12/27 > Hi. i am running debian 6.0.6 and i am banging my head to create a simple > script that will run periodically (through cron). > i do have a whole lot of wav files in opt/wavfiles and i do need: > -convert them to mp3 > -delete the wav files that have been converted to mp3 > -compress

bash script to convert, compress

2012-12-27 Thread tsitras
Hi. i am running debian 6.0.6 and i am banging my head to create a simple script that will run periodically (through cron). i do have a whole lot of wav files in opt/wavfiles and i do need: -convert them to mp3 -delete the wav files that have been converted to mp3 -compress the files and move