LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-24-2010, 12:34 PM   #1
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
Slackware 13.1 – invalid work of mpeg123 and moc


Slackware 13.0 and older used mpg321 – Slackware 13.1 uses mpg123. That program fails in some circumstances. I use such command to convert MP3 files to WAV ones:

Code:
mpg123 -b 10000 -s -r 44100 -w - "$file" | \
    sox -t wav -r 44100 -s -c2 - "${file%mp3}wav"
It works well with Slackware 13.0 and mpg321 but fails with Slackware 13.1 and mpg123:

Code:
[wav.c:371] warning: Cannot rewind WAV file. File-format isn't fully conform now.
[xfermem.c:248] error: failed to wait for free space
[mpg123.c:629] error: Deep trouble! Cannot flush to my output anymore!
Could not resync/reset buffers: No such process
To made it useful I had to remove mpg123 package and compile and install mpg321 one. The current version of that program is mpg321-0.2.11-3 (see: here). To compile it it’s enough to grab and modify the original Slackware 13.0 SlackBuild and slack-desc (see: here). Before compiling mpg321 I had to compile and install the newer version of libao. Slackware 13.1 uses libao-0.8.8 – mpg321-0.2.11-3 demands libao-1.0.0 (see: here for the source and here for SlackBuild and slack-desc).

Then I had to compile sox (see: here and here) because it depends on the installed version of libao.

Some other programs, such as Timidity++, depend on libao as well and have to be compiled and installed anew after changing the version of libao library.

***

Instead of replace libao and all related programs with the newer versions it’s easier to downgrade to older version of mpg321 (see: here)

***

Unstable Music on Console from SlackBuild.org (moc-2.5.0-alpha4) aborts on some MP3 files. I didn’t find any cause of that failures. The only rule I was able to observe is if moc fails on some track from the selected album it’ll probably fail on all tracks.

So I replaced unstable moc-2.5.0-alpha4 with stable moc-2.4.4 and now it works well.
 
Old 06-24-2010, 12:47 PM   #2
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Quote:
Originally Posted by w1k0 View Post
Unstable Music on Console from SlackBuild.org (moc-2.5.0-alpha4) aborts on some MP3 files. I didn’t find any cause of that failures. The only rule I was able to observe is if moc fails on some track from the selected album it’ll probably fail on all tracks.

So I replaced unstable moc-2.5.0-alpha4 with stable moc-2.4.4 and now it works well.
Hm i never had any problems with the alpha version, thats why i updated to it.
If someone else has problems with it too, let me know and i might consider a downgrade, if possible.
 
Old 06-24-2010, 03:28 PM   #3
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
I just installed moc-2.5.0-alpha4 in Slackware 13.0 and it works flawlessly on the same tracks on which it aborts in Slackware 13.1.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install mpeg123 xmms plugin in RedHat Enterprise Linux 4.0 AS DrLeary Red Hat 1 03-24-2006 09:24 AM
qt moc jlp1976 Programming 1 03-26-2005 11:25 AM
Moc!! aposig Linux - Newbie 4 01-28-2005 07:21 AM
Moc!? What Is Moc mrmojo Linux - Newbie 1 11-07-2003 12:38 PM
.moc? micke.prag Programming 2 01-02-2002 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration