rlishtaba / rubyripper

Automatically exported from code.google.com/p/rubyripper
0 stars 0 forks source link

looking for the line of code to enter in the other box for shorten format .shn #434

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
looking for the line of code to enter in the other box for shorten format .shn

so not a defect but seeking a piece of info

i hope one of you knows

got these from ubuntuforums.org

wavpack -w "Artist=%a" -w "Title=%t" -w "Album=%b" -w "Year=%y" -w "Track=%n" 
-w "Genre=%g" -hhm %i -o "%o.wv"

mp3hdEncoder -if "%i" -of "%o".mp3 -mode 1 -Title "%t" -Artist "%a" -Album "%b" 
-Track "%n" -Year "%y" -Genre "%g"

ttaenc -e "%i" -o "%o".tta

and i am looking for the line for shorten

http://etree.org/shncom.html

so far been unable to work it out

Original issue reported on code.google.com by holin...@googlemail.com on 18 Jul 2010 at 8:12

GoogleCodeExporter commented 8 years ago
What would be the normal command when having a input.wav file? The link you 
provided doesn't give any information about a unix-like encoder. I guess you 
could use wine though.

Then something like:
wine /path/to/shortn32 %i.wav %o.shn

Does this help in any way?

Original comment by boukewou...@gmail.com on 18 Jul 2010 at 9:23

GoogleCodeExporter commented 8 years ago
well will try shorten %i.wav %o.shn since i have it as a linux codec too

and could use your line from my EAC shortn32.exe path

i get

Ripping progress (100 %)
Encoding progress (0 %)
Adding track 2 (other) to the queue..
command = shorten "/home/shantiq/other/temp_sr0/track2_1.wav".wav 
"/home/shantiq/other/Angélique Kidjo (2001) Keep On Moving (The Best Of)/02 - 
Voodoo Child (Slight Return).shn"
shorten: could not open file '/home/shantiq/other/temp_sr0/track2_1.wav.wav' 
for input
shorten: for more information use: shorten -h
WARNING: Encoding to other exited with an error with track 2!
Encoding progress (100 %)
Removing track 2 (other) from the queue..
Inside the finished function
Encoding progress (100 %)
shantiq@shantiq-desktop:~$ 

then i use

wine /home/shantiq/.wine/dosdevices/c:/Program Files/Exact Audio 
Copy/Flac/shortn32.exe% i.wav %o.shn

and got

Ripping progress (100 %)
Encoding progress (0 %)
Adding track 2 (other) to the queue..
command = wine /home/shantiq/.wine/dosdevices/c:/Program Files/Exact Audio 
Copy/Flac/shortn32.exe"% "i.wav "/home/shantiq/other/Angélique Kidjo (2001) 
Keep On Moving (The Best Of)#1/02 - Voodoo Child (Slight Return).shn"
wine: cannot find '/home/shantiq/.wine/dosdevices/c:/Program'
WARNING: Encoding to other exited with an error with track 2!
Encoding progress (100 %)
Removing track 2 (other) from the queue..
Inside the finished function
Encoding progress (100 %)
shantiq@shantiq-desktop:~$ 

but this cannot be far now    anyother ideas?

Original comment by holin...@googlemail.com on 19 Jul 2010 at 7:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
trying this   shorten -if %i.wav %o.shn

still the same

Original comment by holin...@googlemail.com on 19 Jul 2010 at 7:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
this is the codec here

http://www.free-codecs.com/download/Shorten.htm

Original comment by holin...@googlemail.com on 19 Jul 2010 at 10:24

GoogleCodeExporter commented 8 years ago
unix specs for shorten are

shorten version 3.6.1: (c) 1992-1999 Tony Robinson and SoftSound Ltd
Seek extensions by Wayne Stielau; UNIX maintenance by Jason Jordan
Usage: shorten {options} [input file] [output file]
  -a 0     bytes to copy verbatim to align file
  -b 256   block size
  -c 1     number of channels
  -d 0     number of bytes to discard before compression or decompression
  -e       erase seek table appended to input file
  -h       help (this message)
  -i       inquire as to whether a seek table is appended to input file
  -k       append seek table information to existing shorten file
  -l       print the license giving the distribution and usage conditions
  -m 4     number of past block for mean estimation
  -n 256   minimum signal to noise ratio in dB (256 == lossless coding)
  -p 0     maximum LPC predictor order (0 == fast polynomial predictor)
  -q 0     acceptable quantisation error in bits
  -r 32.0  maximum number of bits per sample (32.0 == lossless coding)
  -s       generate seek table information in separate file [input file].skt
  -S[name] generate seek table information in separate file given by [name]
  -t wav   specify the bit packing and byte ordering of the sample file from
           {aiff,wav,ulaw,alaw,s8,u8,s16,u16,s16x,u16x,s16hl,u16hl,s16lh,u16lh}
  -u       merge the two zero codes in ulaw files
  -v 3     format version number (2: no seek info; 3: default)
  -x       extract (all other options except -a, -d and -t are ignored)

Original comment by holin...@googlemail.com on 19 Jul 2010 at 10:25

GoogleCodeExporter commented 8 years ago
more info

http://adventuresinswitching.blogspot.com/2008/04/convert-shn-shorten-to-mp3-or-
flac-in.html

Original comment by holin...@googlemail.com on 19 Jul 2010 at 10:43

GoogleCodeExporter commented 8 years ago
The correct for shorten is simply
shorten  "%i"  "%o".shn

Original comment by mc3...@optonline.net on 19 Jul 2010 at 7:10

GoogleCodeExporter commented 8 years ago
thank you 

worked perfect

shantiq@shantiq-desktop:~$ rrip_cli 
Scanning disc with cdrdao
Audio-disc found, number of tracks : 7, total playlength : 73:30
Fetching freedb info...

FREEDB INFO

DISC INFO
Artist: Can
Album: Tago Mago
Genre: Unknown
Year: 2004

TRACK INFO
1) Paperhouse
2) Mushroom
3) Oh Yeah7-04-20603v®
4) Halleluwah
5) Aumgn
6) Peking O
7) Bring Me Coffee Or Tea

What would you like to do?

1) Select the tracks to rip
2) Edit the disc info
3) Edit the track info
4) Cancel the rip and eject the disc

1
Please enter the number of your choice:  [1] 
1
Should all tracks be ripped ? (y/n)  [y] Please answer yes or no

n
Should all tracks be ripped ? (y/n)  [y] Current selection of tracks : 1 2 3 4 
5 6 7
Enter 1 for entering the tracknumbers you want to remove.
Enter 2 for entering the tracks you want to keep.
2
Your choice:  [1] 2
Type the numbers of the tracks you want to keep and separate them with a space: 
Current selection of tracks : 2
1
Do you want to make any changes? (y/n) :  [n] Please answer yes or no
n
Do you want to make any changes? (y/n) :  [n] shorten  "%i"  "%o".shn
/home/shantiq/other/Can (2004) Tago Mago
01 - Paperhouse.shn
02 - Mushroom.shn
03 - Oh Yeah7-04-20603v®.shn
04 - Halleluwah.shn
05 - Aumgn.shn
06 - Peking O.shn
07 - Bring Me Coffee Or Tea.shn
Cdrom player used to rip:
_NEC DVD_RW ND-3550A 1.52
Cdrom offset used: 48

Ripper used: cdparanoia 
Matches required for all chunks: 2
Matches required for erroneous chunks: 2

Codec(s) used:
-other  -> shorten  "%i"  "%o"

CDDB INFO

Artist  = Can
Album   = Tago Mago
Year    = 2004
Genre   = Unknown
Tracks  = 7 (1 selected)

02 - Mushroom

ADVANCED TOC ANALYSIS (with cdrdao)
...please be patient, this may take a while

Loading file: /tmp/temp_cdrom.toc
Disc type = CD_DA
Found cd_text for disc
Found artist for disc: "TAGO MAGO"
Found album for disc: 
Found info of tracknumber 1
CD-text found: Title = Paperhouse
Found info of tracknumber 2
CD-text found: Title = Mushroom
Found info of tracknumber 3
CD-text found: Title = Oh Yeah
Found info of tracknumber 4
CD-text found: Title = Halleluwah
Found info of tracknumber 5
CD-text found: Title = Aumgn
Found info of tracknumber 6
CD-text found: Title = Peking O
Found info of tracknumber 7
CD-text found: Title = Bring Me Coffee Or Tea
Debug info: gaps are now prepended
Startsector Lengthsector
0   33667
33667   18268
51935   33165
85100   83370
168470  78870
247340  52747
300087  30690
Pregap detected for track 4 : 67 sectors
Pregap detected for track 5 : 152 sectors
Pregap detected for track 6 : 572 sectors
Pregap detected for track 7 : 165 sectors

STATUS

Ripping progress (0 %)
Ripping track 2
Expected filesize for track 2       is 42966380 bytes.
Free disk space is 403692044 MB
Minutes ripping is 0.000348333333333333.
Starting to rip track 2, trial #1cdparanoia [.33667]-[.18267] -d /dev/cdrom -O 
48 "/home/shantiq/other/temp_sr0/track2_1.wav" 2>&1
 (27 seconds)
Minutes ripping is 0.46202945.
Starting to rip track 2, trial #2cdparanoia [.33667]-[.18267] -d /dev/cdrom -O 
48 "/home/shantiq/other/temp_sr0/track2_2.wav" 2>&1
 (27 seconds)
Analyzing files for mismatching chunks
Every chunk matched 2 times :)
MD5 sum: 24c1c6370f2dfda2d6ce2ecffd88ea65

Ripping progress (100 %)
Encoding progress (0 %)
Adding track 2 (other) to the queue..
command = shorten  "/home/shantiq/other/temp_sr0/track2_1.wav"  
"/home/shantiq/other/Can (2004) Tago Mago/02 - Mushroom.shn"
appending seek table to '/home/shantiq/other/Can (2004) Tago Mago/02 - 
Mushroom.shn'
Encoding progress (100 %)
Removing track 2 (other) from the queue..
Inside the finished function
Encoding progress (100 %)
shantiq@shantiq-desktop:~$ 

Original comment by holin...@googlemail.com on 19 Jul 2010 at 8:29

GoogleCodeExporter commented 8 years ago
You could also have looked at the Manual wiki page. Anyway, this one seems 
solved.

Original comment by boukewou...@gmail.com on 24 Jul 2010 at 6:48

GoogleCodeExporter commented 8 years ago
looked at the wiki and tried to work out ape using the mac codec but so far no 
good

any better offers ?

 mac --artist %a --album %b --title %t --genre %g --track %n --year %y -o %o.ape %i

Original comment by holin...@googlemail.com on 24 Jul 2010 at 8:56

GoogleCodeExporter commented 8 years ago
And what does the command "mac %o.ape %i" do?

You should always look at the specific syntax of any encoder. The only thing 
rubyripper does is replace the tags %a, %b, etcetera with the relevant info. 
After the %o (output file) you should enter the extension for the encoder.

For example the syntax for oggenc (vorbis) "oggenc -h" shows (filtered):

Usage: oggenc [options] inputfile [...]
 -o, --output=fn      Write file to fn (only valid in single-file mode)
 -d, --date           Date for track (usually date of performance)
 -N, --tracknum       Track number for this track
 -t, --title          Title for this track
 -l, --album          Name of album
 -a, --artist         Name of artist
 -G, --genre          Genre of track

Original comment by boukewou...@gmail.com on 24 Jul 2010 at 9:31

GoogleCodeExporter commented 8 years ago
I've updated the wiki page to make this more explicit.

Original comment by boukewou...@gmail.com on 24 Jul 2010 at 9:40

GoogleCodeExporter commented 8 years ago
thanx boukewoudstra

Original comment by holin...@googlemail.com on 24 Jul 2010 at 10:34

GoogleCodeExporter commented 8 years ago
also boukewoudstra if you do not mind may i suggest you add these to the 
wikipage
for guys like myself who have not great technical understanding ( i have added 
them as a comment for the time being)

these settings work perfectly

for wavpack   wavpack -w "Artist=%a" -w "Title=%t" -w "Album=%b" -w "Year=%y" 
-w "Track=%n" -w "Genre=%g" -hhm %i -o "%o.wv"

for mp3HD   mp3hdEncoder -if "%i" -of "%o".mp3 -mode 1 -Title "%t" -Artist "%a" 
-Album "%b" -Track "%n" -Year "%y" -Genre "%g"

for tta     ttaenc -e "%i" -o "%o".tta

for shorten  shorten  "%i"  "%o"

for m4a/aac    faac --artist %a --album %b --title %t --genre %g --track %n 
--year %y -o %o.m4a  -q 500  %i

still trying with ape will post when sorted   regards    shan

Original comment by holin...@googlemail.com on 24 Jul 2010 at 11:24

GoogleCodeExporter commented 8 years ago
I would expect for the shorten command to have the extension set at .shn. But 
perhaps the encoder already sets the extension.

I think this might indeed be nice for the average user. I don't see the problem 
of a comment. They're accessible for all visitors.

Original comment by boukewou...@gmail.com on 24 Jul 2010 at 11:34

GoogleCodeExporter commented 8 years ago
sorry shorten is      shorten "%i" "%o" .shn

Original comment by holin...@googlemail.com on 24 Jul 2010 at 11:51

GoogleCodeExporter commented 8 years ago
ok cool  you are right comment is fine

Original comment by holin...@googlemail.com on 24 Jul 2010 at 11:55

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
ok done it and added to wiki

for ape    with mac codec

mac  "%i" "%o" .ape -c5000

Original comment by holin...@googlemail.com on 24 Jul 2010 at 1:00