Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Using named pipes to convert SHN to MP3' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using named pipes to convert SHN to MP3
Authored by: hypert on Oct 31, '04 08:52:39PM
Nice hint - could be really useful, but I can't seem to get shorten to work. Here's the response in my Terminal:

Assuming raw pcm input file
LAME version 3.93  (
Using polyphase lowpass  filter, transition band: 15826 Hz - 16360 Hz
Encoding /tmp/stdin2mp3 to ./Guthries - Careful Love.mp3
Encoding as 44.1 kHz VBR(q=4) stereo MPEG-1 Layer III (ca. 9.1x) qval=2
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
   200/2     (100%)|    0:05/    0:00|    0:08/    0:00|   0.9263x|1193046 h 
 32 [  0] 
 40 [  0] 
 48 [  0] 
 56 [  0] 
 64 [  0] 
 80 [  0] 
 96 [  0] 
112 [  5] %%%%%%
128 [ 47] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
160 [102] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
192 [ 39] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
224 [  7] %%%%%%%%%
256 [  0] 
shorten: No magic number
shorten: for more information use: shorten -h

I installed shorten using "fink install shorten". Where did you get your from? Any idea what magic number might be about? Despite the error response, "shorten -h" doesn't give any info about magic numbers.

Oh, not surprisingly, the resulting MP3 file is a wash of static. :-(

[ Reply to This | # ]

Using named pipes to convert SHN to MP3
Authored by: hypert on Oct 31, '04 10:43:59PM

My mistake! I used the commands above for SHD->MP3 conversion, when I meant to use the RM->MP3 conversion. Shorten was complaining because I wasn't feeding it an SHD file! Now, if I can just compile mplayer with the realaudio codecs, I'll have this working....

[ Reply to This | # ]
Using named pipes to convert SHN to MP3
Authored by: hypert on Nov 02, '04 08:58:56PM

I've spent way too much time in the last 2 days trying to get mplayer to compile for Mac OS X, encouraged by the original example in this thread of being able to convert RealAudio to MP3. (Actually, the version available in Fink compiles fine, but does not support Real codecs. The latest source files fail out of the box with a compilation error since they tries to use a "-rdynamic" option with GCC. Removing that option by hacking the config files gets past compiling, but just causes mplayer to crash later when trying to load Real files.)

I sent a private email to the original hint author (fracai), and he admitted that he based his hint on something he does in Linux.

So, the named pipes is a legitimate concept, but the mplayer conversion of RealAudio files is a bit of a "tease". If anyone else can get mplayer to properly read Real files, I'd love to know!

[ Reply to This | # ]