LinuxQuestions.org
Visit Jeremy's Blog.
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 09-11-2017, 01:18 PM   #1
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Slackware
Posts: 32

Rep: Reputation: Disabled
Error with libmp3lame and winff


Hi,

I used sbopkg to install FFMPEG + WINFF + LAME

I want convert file.opus to file.mp3, but winff report me: unknown encoder LIBMP3LAME.

Any solution?

Thanks.
 
Old 09-11-2017, 01:36 PM   #2
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 1,636

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Rebuild FFMPEG after the LAME is installed.
 
1 members found this post helpful.
Old 09-13-2017, 09:03 AM   #3
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Slackware
Posts: 32

Original Poster
Rep: Reputation: Disabled
Rebuild after LAME not work

Quote:
Originally Posted by Darth Vader View Post
Rebuild FFMPEG after the LAME is installed.
Not work.

Any other solution?
 
Old 09-13-2017, 09:29 AM   #4
orbea
Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 793

Rep: Reputation: Disabled
Did you build ffmpeg with 'LAME=yes'?
 
Old 09-13-2017, 09:41 AM   #5
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Slackware
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by orbea View Post
Did you build ffmpeg with 'LAME=yes'?
No, I do not know how do it
 
Old 09-13-2017, 10:47 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,860

Rep: Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775
This is written here.

Just type:
Quote:
LAME=yes ./ffmpeg.SlackBuild
 
Old 09-13-2017, 11:04 AM   #7
SW64
LQ Newbie
 
Registered: May 2014
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
Didier Spaier, pardon me, OP is using sbopkg.

Gugur, what Didier Spaier was suggesting is manually compiling it by hands using slackbuild scripts (a good thing to know how to do). Since you're using sbopkg, you need to do a variation of what Didier Spaier is suggesting in order to get LAME working in sbopkg. Go back to sbopkg, find ffmpeg in there, and enter its detail page. Go down to Options, enter in "LAME=yes" in there and then you can rebuild ffmpeg with that option activated in sbopkg. As Darth Vader pointed out, LAME need to be installed first before this can work.
 
Old 09-13-2017, 11:32 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,860

Rep: Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775
Quote:
Originally Posted by SW64 View Post
Didier Spaier, pardon me, OP is using sbopkg.
No apology needed, I should have read the first post more carefully.

On the other hand Gugur, my advice is to first build packages from stuff available @ SBo manually, waiting until you be acquainted with the building process to use tools that automate it. Then you will more easily handle issues like this one.
 
Old 09-13-2017, 08:08 PM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,702

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Quote:
Originally Posted by SW64 View Post
Didier Spaier, pardon me, OP is using sbopkg.

Gugur, what Didier Spaier was suggesting is manually compiling it by hands using slackbuild scripts (a good thing to know how to do). Since you're using sbopkg, you need to do a variation of what Didier Spaier is suggesting in order to get LAME working in sbopkg. Go back to sbopkg, find ffmpeg in there, and enter its detail page. Go down to Options, enter in "LAME=yes" in there and then you can rebuild ffmpeg with that option activated in sbopkg. As Darth Vader pointed out, LAME need to be installed first before this can work.
sbopkg support custom parameter
Code:
sbopkg -i "ffmpeg:LAME=yes"
 
1 members found this post helpful.
Old 09-13-2017, 08:29 PM   #10
SW64
LQ Newbie
 
Registered: May 2014
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
And I've missed something else in Gugur's first post, too. Gugur, you may also want to install opus and activate its option "OPUS=yes" as well;

"LAME=yes OPUS=yes" in ffmpeg's Options.

Agreed with Didier Spaier's last post. Pick something that doesn't have any dependency requirements.

Thank you for your understanding, Didier Spaier.

Last edited by SW64; 09-13-2017 at 08:35 PM.
 
Old 09-13-2017, 08:31 PM   #11
SW64
LQ Newbie
 
Registered: May 2014
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
Quote:
Originally Posted by willysr View Post
sbopkg support custom parameter
Code:
sbopkg -i "ffmpeg:LAME=yes"
That I did not know. Thanks!
 
Old 09-13-2017, 09:42 PM   #12
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,527

Rep: Reputation: 2465Reputation: 2465Reputation: 2465Reputation: 2465Reputation: 2465Reputation: 2465Reputation: 2465Reputation: 2465Reputation: 2465Reputation: 2465Reputation: 2465
Quote:
Originally Posted by SW64 View Post
That I did not know. Thanks!
Some may also not be aware that you can put these options into your queue files. When I last built ffmpeg for 14.1 using sbopkg, I had the following queue file. The @ symbol means it will follow any queue files I have for those packages. Then, on the program you want options passed against, you just use the pipe symbol "|" and then add all the options you need.

Code:
@lame
@x264
@libass
@libbluray
@celt
@libdc1394
@faac
@frei0r
@gsm
@libiec61883
@libavc1394
libilbc
@openjpeg
@ladspa_sdk
@lame
@libmodplug
@OpenAL
@opencore-amr
@opus
@rtmpdump
@schroedinger
@speex
@twolame
@libvpx
@xvidcore
ffmpeg | ASS=yes BLURAY=yes CELT=yes DC1394=yes FAAC=yes FREI0R=yes GSM=yes IEC61883=yes ILBC=yes JP2=yes LADSPA=yes LAME=yes MODPLUG=yes OPENAL=yes OPENCORE=yes OPENSSL=yes OPUS=yes RTMP=yes SCHROEDINGER=yes SPEEX=yes TWOLAME=yes VPX=yes X264=yes XVID=yes
So, for the programs listed here, you'd need a simple queue file like the following. Note, since winff requires ffmpeg, that would be the last item on the queue. As SW64 mentioned, since you're wanting to convert from opus to mp3, you will probably need the opus codec installed too.

Code:
opus
lame
ffmpeg | LAME=yes OPUS=yes
winff
Save the file as winff.sqf under /var/lib/sbopkg/queues/ and then run sbopkg -i winff and when it prompts you if you want to build just the package or the queue file, select q for the queue file and let it work its magic.

=====================================

To get a little more advanced with queue files (feel free to disregard this if your struggling with this already). You may want to add things down the road to ffmpeg, but it might be hard to remember that you had all your ffmpeg options stored in winff. Because of this, you may want to create a separate queue file for winff and ffmpeg. This is when that @ symbol becomes handy. The @ symbol means it will process a queue file that exists with that name before continuing down the list. You could create a ffmpeg.sqf file that contains:

Code:
opus
lame
ffmpeg | LAME=yes OPUS=yes
Then, if you need to add future capabilities (like maybe x264 encoding), you just modify it to add the x264 library and add the X264=yes option.

Then, for winff, you simply put the @ in front of the ffmpeg option and it will then process the whole ffmpeg queue file before it builds winff.

Code:
@ffmpeg
winff
 
4 members found this post helpful.
Old 09-13-2017, 10:20 PM   #13
SW64
LQ Newbie
 
Registered: May 2014
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
That's excellent, bassmadrigal. I've been on a look out for tips on taming the slackbuilds with large amount of manual options that 'sqg -p [package]' alone will not resolve, such as ffmpeg where I wish to compile it with all options activated. I'll definitely will make use of this. Thanks!
 
Old 09-13-2017, 10:40 PM   #14
SW64
LQ Newbie
 
Registered: May 2014
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
Either there's a typo or the syntax for ffmpeg have changed again but...

In editing the presets for audio/mp3:

Code:
-acodec libmp3lame -ab 160kb -ac 2 -ar 44100
This will not work in winff via slackbuilds. The '160kb' should be '160K'.


Alternatively, you can do this same command in your terminal:

Code:
ffmpeg -i input.opus -acodec libmp3lame -ab 160K -ac 2 -ar 44100 output.mp3

Last edited by SW64; 09-13-2017 at 10:41 PM.
 
1 members found this post helpful.
Old 09-14-2017, 01:40 AM   #15
bormant
Member
 
Registered: Jan 2008
Posts: 278

Rep: Reputation: 156Reputation: 156
Another way is to get prebuilt package:
http://bear.alienbase.nl/mirrors/peo...builds/ffmpeg/
http://bear.alienbase.nl/mirrors/peo...builds/ffmpeg/

Or using slackpkg+:
Code:
# slackpkg install ffmpeg
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
libmp3lame error message on youtube-dl NathanSharp Linux - Software 14 07-21-2016 07:15 AM
[SOLVED] WinFF error "Cannot find FFPlay" PasBern Linux - Software 1 02-18-2014 04:01 AM
Converting m4b to mp3, error with libmp3lame aphesia Linux - Software 1 01-14-2011 09:57 AM
MPlayer error libmp3lame.so.0 dina3e Linux - Software 4 07-17-2008 11:19 PM
MPlayer Installation->libmp3lame.so.0 error kerryblue19 Linux - Software 11 03-17-2005 08:46 PM

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

All times are GMT -5. The time now is 06:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration