ncdt equivalent for ogg vorbis?

Arthur Pemberton pemboa at gmail.com
Sat Jul 25 20:43:17 CDT 2009


On Sat, Jul 25, 2009 at 4:26 PM, Pratik Patel<pkpatel88 at gmail.com> wrote:
> Sorry for all the typos. :(
>
> ncdt is a directory tree printer that can print the length of time to
> listen to all the mp3's in the working directory and it's
> subdirectories.
>
> Is there a ncdt equivalent for ogg vorbis?
>
> On Sat, Jul 25, 2009 at 4:23 PM, Pratik Patel<pkpatel88 at gmail.com> wrote:
>> ncdt is directory tree printer that can print the length of time to
>> listen to all the mp3's in the working directory and it's
>> subdirectories.
>>
>> Is there ncdt equivalent for ogg?
>>


Here's a Python script I wrote, upon seeing your email, to do this. It
required Python and a python package called PyOGG however. On fedora,
you would need to `yum install python-ogg python-vorbis`, not sure for
Ubuntu

http://pembo13.com/scipts/ncdt

=====================================
$ python ncdt.py /usr/share/sounds

/usr/share/sounds/purple
  > 0 files
  > 0:00:00 seconds
/usr/share/sounds/freedesktop/stereo
  > 40 files
  > 0:00:42 seconds
/usr/share/sounds/freedesktop
  > 0 files
  > 0:00:00 seconds
/usr/share/sounds/alsa
  > 0 files
  > 0:00:00 seconds
/usr/share/sounds/kapman
  > 7 files
  > 0:00:15 seconds
/usr/share/sounds
  > 56 files
  > 0:01:59 seconds

Total time in /usr/share/sounds is 0:02:55

Total time checked is 0:02:55
=====================================

-- 
Fedora 10
(www.pembo13.com)


More information about the Kclug mailing list