rigadicomando.org

Whatever you can cat

Secondary links

  • About
  • Contacts
  • Disclaimer

Home Blogs fabio's blog

cdrecord + bladeenc

Submitted by fabio on Tue, 2006-01-10 15:45.
  • bash

Con il seguente comando si estrae l'immagine di un cd audio e si
ottengono 2 files: data.bin contenente i dati grezzi e toc contenente le
informazioni sullo spiazzamento e sulla durata delle singole tracce:

gianz@guybrush:cd-images$ cdrecord read-cd toc
...
gianz@guybrush:cd-images$ ls -l
total 476695
-rw------- 1 gianz users 486224256 Sep 1 23:25 data.bin
-rw------- 1 gianz users 1263 Sep 1 23:25 toc
la rigona di comando é questa:

gianz@guybrush:cd-images$ for i in `seq 1 \`grep -c TRACK toc\`` ; do dd if=data.bin skip=`grep -A 5 "Track $i"$ toc | grep data.bin | awk '{ print( $3); }' | awk -F : '{ print(int((($1*6000+$2*100+$3)*1764)/1024)); }'` count=`grep -A 5 "Track $i"$ toc | grep data.bin | awk '{ print( $4); }' | awk -F : '{ print(int((($1*6000+$2*100+$3)*1764)/1024)); }'` bs=1024 | sox -t .cdr - -t wav - | bladeenc STDIN track$i.mp3 ; done

dopo un po' di tempo questo é ció che ottengo:

gianz@guybrush:cd-images$ ls -l
total 519929
-rw------- 1 gianz users 486224256 Sep 1 23:25 data.bin
-rw------- 1 gianz users 1263 Sep 1 23:25 toc
-rw------- 1 gianz users 3011814 Sep 7 10:17 track1.mp3
-rw------- 1 gianz users 3286414 Sep 7 10:49 track10.mp3
-rw------- 1 gianz users 8858645 Sep 7 10:58 track11.mp3
-rw------- 1 gianz users 3643351 Sep 7 10:21 track2.mp3
-rw------- 1 gianz users 4465894 Sep 7 10:25 track3.mp3
-rw------- 1 gianz users 3615765 Sep 7 10:29 track4.mp3
-rw------- 1 gianz users 3321104 Sep 7 10:32 track5.mp3
-rw------- 1 gianz users 2468049 Sep 7 10:35 track6.mp3
-rw------- 1 gianz users 5115821 Sep 7 10:40 track7.mp3
-rw------- 1 gianz users 3013904 Sep 7 10:43 track8.mp3
-rw------- 1 gianz users 3275965 Sep 7 10:46 track9.mp3

Commenti, critiche e suggerimenti sono ben accetti...
;-)
Giampaolo Fresi Roglia

  • fabio's blog
  • Login to post comments

Navigation

  • News aggregator

ICT users' rights

  • New Documentary Film "Patent Absurdity: how software patents broke the system"
  • Time for nonprofits to leave proprietary fundraising software systems behind
  • Breaking the dependency on proprietary software: A call to nonprofits to refuse Microsoft Windows 7
  • Why is free software important to you? Submit your response to our new video campaign!
  • FSF works with PayPal to the benefit of the free software community
more

High Scalability Architecture

  • The cost of High Availability (HA) with Oracle
  • Strategy: Order Two Mediums Instead of Two Smalls and the EC2 Buffet
  • Hot Scalability Links for April 16, 2010
  • Parallel Information Retrieval and Other Search Engine Goodness
  • Strategy: Saving Your Butt With Deferred Deletes
more

Debian Security

  • DSA-2038 pidgin
  • DSA-2037 kdm (kdebase)
  • DSA-2036 jasper
  • DSA-2035 apache2
  • DSA-2034 phpmyadmin
more

Drupal Security

  • SA-CORE-2010-001 - Drupal core - Multiple vulnerabilities
more

EFF

  • Congress Must Investigate Electronic Searches at U.S. Borders
  • Betrayed MSN Music Customers Deserve More from Microsoft
  • EFF Report: FBI Slowed Terror Investigation with Improper NSL Request
  • State Secrets Claim Should Not Bury Important Surveillance Lawsuit
  • Courtroom Showdown for eBay Seller Over Promo CD Sales
more

Invent Geek

  • The Meeting Light Project
  • the ion cooler 2.0
  • the ultimate dance pad v1.0
  • The Thermaltake MiniFridge Case Mod
  • Inventgeek gets a facelift and a butt tuck
more

 Privacy | Disclaimer | Drupal | Creative Commons

All content on this site is ditributed under Creative Commons License, each individual author is responsible for its own posts.

RoopleTheme