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 08-15-2015, 05:16 PM   #1
allenlinux
Member
 
Registered: Aug 2012
Posts: 76

Rep: Reputation: Disabled
ffmpeg m4a to mp3 failed


Encoder (codec mp3) not found for output stream #0:0

-i have 14.1 64 slackware with ffmpeg (the last stable one from slpkg -s sbo ffmpeg)
-slackware multi arch

other output info:

-Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> ? (?))
Encoder (codec mp3) not found for output stream #0:0


-Complete out put info

ffmpeg -i The\ Chemical\ Brothers\ -\ Elektrobank\ \(HQ\)-mZrAlA31RUs.m4a chem00.mp3
ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8.2 (GCC)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-2.6.3/html --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-libvorbis --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-x11grab --enable-avfilter --enable-gnutls --enable-libcdio --enable-libssh --enable-libcaca --enable-libsmbclient --enable-opengl --arch=x86_64
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'The Chemical Brothers - Elektrobank (HQ)-mZrAlA31RUs.m4a':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf56.25.101
Duration: 00:05:50.09, start: 0.000000, bitrate: 254 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 253 kb/s (default)
Metadata:
handler_name : SoundHandler
Output #0, mp3, to 'chem00.mp3':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf56.25.101
Stream #0:0(und): Audio: mp3, 0 channels, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> ? (?))
Encoder (codec mp3) not found for output stream #0:0

Last edited by allenlinux; 08-15-2015 at 05:24 PM.
 
Old 08-15-2015, 06:27 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
So how did you compile it? Looking at http://slackbuilds.org/repository/14...imedia/ffmpeg/ I see lots of compile-time options for codecs that you can enable or disable. And this is one of the lines:
Code:
LAME=yes|no (default: no), requires lame
Looks like by default, MP3 encoding support is disabled.
 
1 members found this post helpful.
Old 08-15-2015, 11:40 PM   #3
dslackw
Member
 
Registered: Aug 2014
Location: Orestiada, GR
Distribution: Slackware 15.0 x86_64 -stable
Posts: 158

Rep: Reputation: 44
You can export variables like:

Code:
# export FFMPEG_LAME=yes FFMPEG_SPEEX=yes FFMPEG_X264=yes
and then:

Code:
# slpkg -s sbo ffmpeg
 
1 members found this post helpful.
Old 08-16-2015, 01:14 PM   #4
allenlinux
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
ffmpeg

its posible any way to include all variables ?, or i have to set line by line. ?

http://slackbuilds.org/repository/14...imedia/ffmpeg/
 
Old 08-16-2015, 01:23 PM   #5
allenlinux
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
ffmpeg

dslackw thanks to all

i solve with the export lines.
 
Old 08-16-2015, 01:24 PM   #6
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
You can go into the SlackBuild script and set the variable to yes. Then execute the script as usual.
 
Old 08-16-2015, 05:49 PM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by allenlinux View Post
its posible any way to include all variables ?, or i have to set line by line. ?

http://slackbuilds.org/repository/14...imedia/ffmpeg/
Personally, I'll use sbopkg to edit the slackbuilds and remove any checks on options I want. For me, it is much easier than copying and pasting a ton of different variables to the commandline. This also allows me to still use the ncurses version easily.

I switched mine from:

Code:
# Configure ffmpeg features not autodetected by default
# Unfortunately ffmpeg's configure doesn't support --enable-feature=yes
# syntax, so we have to do it the complicated way :/

mp3lame=""    ; [ "${LAME:-no}" != "no" ]         && mp3lame="--enable-libmp3lame"
libx264=""    ; [ "${X264:-no}" != "no" ]         && libx264="--enable-libx264"
libcelt=""    ; [ "${CELT:-no}" != "no" ]         && libcelt="--enable-libcelt"
libdc1394=""  ; [ "${DC1394:-no}" != "no" ]       && libdc1394="--enable-libdc1394"
libfrei0r=""  ; [ "${FREI0R:-no}" != "no" ]       && libfrei0r="--enable-frei0r"
libgsm=""     ; [ "${GSM:-no}" != "no" ]          && libgsm="--enable-libgsm"
librtmp=""    ; [ "${RTMP:-no}" != "no" ]         && librtmp="--enable-librtmp"
dirac_fast="" ; [ "${SCHROEDINGER:-no}" != "no" ] && dirac_fast="--enable-libschroedinger"
libspeex=""   ; [ "${SPEEX:-no}" != "no" ]        && libspeex="--enable-libspeex"
libvpx=""     ; [ "${VPX:-no}" != "no" ]          && libvpx="--enable-libvpx"
libxvid=""    ; [ "${XVID:-no}" != "no" ]         && libxvid="--enable-libxvid"
libbluray=""  ; [ "${BLURAY:-no}" != "no" ]       && libbluray="--enable-libbluray"
libass=""     ; [ "${ASS:-no}" != "no" ]          && libass="--enable-libass"
libopenal=""  ; [ "${OPENAL:-no}" != "no" ]       && libopenal="--enable-openal"
libiec61883=""; [ "${IEC61883:-no}" != "no" ]     && libiec61883="--enable-libiec61883"
libilbc=""    ; [ "${ILBC:-no}" != "no" ]         && libilbc="--enable-libilbc"
libmodplug="" ; [ "${MODPLUG:-no}" != "no" ]      && libmodplug="--enable-libmodplug"
libopus=""    ; [ "${OPUS:-no}" != "no" ]         && libopus="--enable-libopus"
libtwolame="" ; [ "${TWOLAME:-no}" != "no" ]      && libtwolame="--enable-libtwolame"
ladspa=""     ; [ "${LADSPA:-no}" != "no" ]       && ladspa="--enable-ladspa"
pulse=""      ; [ "${PULSEAUDIO:-no}" != "no" ]   && pulse="--enable-libpulse"
libflite=""   ; [ "${FLITE:-no}" != "no" ]        && libflite="--enable-libflite"
libquvi=""    ; [ "${QUVI:-no}" != "no" ]         && libquvi="--enable-libquvi"
libvidstab="" ; [ "${VIDSTAB:-no}" != "no" ]      && libvidstab="--enable-libvidstab"
libx265=""    ; [ "${X265:-no}" != "no" ]         && libx265="--enable-libx265"
libzvbi=""    ; [ "${ZVBI:-no}" != "no" ]         && libzvbi="--enable-libzvbi"
libopencv=""  ; [ "${OPENCV:-no}" != "no" ]       && libopencv="--enable-libopencv"
#opencl="";      [ "${OPENCL:-no}" != "no" ]       && opencl="--enable-opencl"

opencore_amr="" ; [ "${OPENCORE:-no}" != "no" ] && \
  opencore_amr="--enable-libopencore-amrnb --enable-libopencore-amrwb"
libfaac=""      ; [ "${FAAC:-no}" != "no" ]     && \
  { libfaac="--enable-libfaac" ; non_free="--enable-nonfree" ; }
fdk=""          ; [ "${FDK_AAC:-no}" != "no" ]  && \
  { fdk="--enable-libfdk-aac"; non_free="--enable-nonfree" ; }
ssl=""          ; [ "${OPENSSL:-no}" != "no" ]  && \
  { ssl="--enable-openssl" ; non_free="--enable-nonfree" ; }
openjpeg=""     ; [ "${JP2:-no}" != "no" ]      && \
  { openjpeg="--enable-libopenjpeg" ; \
    SLKCFLAGS="$SLKCFLAGS -I/usr/include/openjpeg-1.5" ; }
decklink=""   ; [ "${DECKLINK:-no}" != "no" ]   && \
  { decklink="--enable-decklink" ; \
    SLKCFLAGS="$SLKCFLAGS -I/usr/include/decklink" ; }

# zeromq support requires zeromq > 3.x
#libzmq=""     ; [ "${ZMQ:-no}" != "no" ]          && libzmq="--enable-libzmq"

set -e
to this

Code:
# Configure ffmpeg features not autodetected by default
# Unfortunately ffmpeg's configure doesn't support --enable-feature=yes
# syntax, so we have to do it the complicated way :/

libfrei0r="--enable-frei0r"
librtmp="--enable-librtmp"
libvpx="--enable-libvpx"
libxvid="--enable-libxvid"
libass="--enable-libass"
libopenal="--enable-openal"
libilbc="--enable-libilbc"
libtwolame="--enable-libtwolame"
libfaac="--enable-libfaac"
non_free="--enable-nonfree"
mp3lame="--enable-libmp3lame"
libx264="--enable-libx264"

set -e
 
1 members found this post helpful.
Old 08-16-2015, 10:49 PM   #8
allenlinux
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
ffmpeg

i feel it about it. i mean, i set the yes var to "yes" on ffmpeg slackbuild, but on the right side still the "no"option, its like confusing yes and no at the same time. Mr bassmadrigal, your setting include all variables?. it seems it does. Thanks.
 
Old 08-17-2015, 02:40 AM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by allenlinux View Post
Mr bassmadrigal, your setting include all variables?. it seems it does. Thanks.
Not all, but all that I had installed. Basically, you want to remove everything before and including the && symbol.

So

Code:
mp3lame=""    ; [ "${LAME:-no}" != "no" ]         && mp3lame="--enable-libmp3lame"
would become

Code:
mp3lame="--enable-libmp3lame"
For any variables you don't want to use, you can either keep them as is, or just remove them from the Slackbuild.

Other slackbuilds might include an if/then statement. I'll remove the if statement on any that I want to use. This example is the kodi slackbuild, and I want to enable the webserver, but not the other options.

Code:
# The version of ffmpeg on SBo is too old to compile kodi.
# Optional ffmpeg is still available but not turned on by
# default.
if [ "${FFMPEG:-no}" == "yes" ]; then
  OPT_DEPS="--with-ffmpeg=shared"
else
  OPT_DEPS=""
fi

# Build webserver. Requires libmicrohttpd.
if [ "${WEBSERVER:-no}" == "yes" ]; then
  OPT_DEPS="$OPT_DEPS --enable-webserver"
else
  OPT_DEPS="$OPT_DEPS --disable-webserver"
fi

# Use pulseaudio.
if [ "${PULSE:-no}" == "yes" ]; then
  OPT_DEPS="$OPT_DEPS --enable-pulse"
fi
Edited, it would be:

Code:
# The version of ffmpeg on SBo is too old to compile kodi.
# Optional ffmpeg is still available but not turned on by
# default.
if [ "${FFMPEG:-no}" == "yes" ]; then
  OPT_DEPS="--with-ffmpeg=shared"
else
  OPT_DEPS=""
fi

# Build webserver. Requires libmicrohttpd.
  OPT_DEPS="$OPT_DEPS --enable-webserver"

# Use pulseaudio.
if [ "${PULSE:-no}" == "yes" ]; then
  OPT_DEPS="$OPT_DEPS --enable-pulse"
fi
You'd just have to look through and see how they manage their optional variables and edit accordingly.
 
1 members found this post helpful.
  


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
converting m4a to mp3 jonfa Linux - General 77 06-24-2013 09:39 AM
How to play m4a and mp3 files in audacity? bplis* Linux - Software 4 11-15-2011 11:35 PM
help converting .mp3 to .m4a on Fedora 11 chickenlinux Linux - Software 4 07-13-2009 07:33 AM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Music... Mp3 & M4a neogeek23 Linux - Software 1 12-16-2006 02:37 PM

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

All times are GMT -5. The time now is 06:15 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