rigadicomando.org

Whatever you can cat

Random Quote

Richness is the quality of Being.

• Osho

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

tags in Arguments

administrivia bash Debian GNU/Linux OS emacs howto perl scripts web
more tags

Navigation

  • Feedback
  • News aggregator

ICT users' rights

  • Free Software Foundation Files Suit Against Cisco For GPL Violations
  • Support freedom by joining the FSF during our year-end fundraiser
  • Bilski ruling: a victory on the path to ending software patents
  • FSF Releases New Version of GNU Free Documentation License
  • FSF reboots its High Priority list with a grant and call for input
more

High Scalability Architecture

  • Messaging is not just for investment banks
  • Lessons Learned at 208K: Towards Debugging Millions of Cores
  • Alternative Memcache Usage: A Highly Scalable, Highly Available, In-Memory Shard Index
  • Paper: MapReduce: Simplified Data Processing on Large Clusters
  • Strategy: Understanding Your Data Leads to the Best Scalability Solutions
more

Debian Security

  • DSA-1695 ruby1.8, ruby1.9
  • DSA-1694 xterm
  • DSA-1693 phppgadmin
  • DSA-1692 php-xajax
  • DSA-1691 moodle
more

Drupal Security

  • SA-2008-075 - Views - SQL Injection
  • SA-2008-074 - Services - Insecure signing
  • SA-2008-073 - Drupal core - Multiple vulnerabilities
  • SA-2008-072 - Storm Project - SQL injection
  • SA-2008-071 - User Karma - Multiple vulnerabilities
more

EFF

  • FBI Withdraws Unconstitutional National Security Letter After ACLU and EFF Challenge
  • EFF and Sheppard Mullin Defend Wikipedia in Defamation Case
  • 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
more

Invent Geek

  • the ion cooler 2.0
  • the ultimate dance pad v1.0
  • thermaltake sponsors inventgeek
  • 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