Page 1 of 1

Flac and M4a transcoding stop working.

PostPosted: Fri Aug 03, 2012 7:02 am
by traveled
Hello everybody,
I m running Subsonic 4.7 beta 2 (standalone) on a FreeBSD 9.0 server.
Until yesterday Flac and M4a transcoding works fine, but now i get an error message on the log " Encoder (codec id 86017) not found for output stream #0.0"
My folder transcode contain ffmpeg lame flac and mac binary. (rights are set)
The transcoding stop work since i have update the system.
Thanks if you could help.

Code: Select all
[02/08/12 11:31:59 GMT]    INFO   PlaylistInputStream   adminSSH listening to "Ghinzu - Blow/04 Cockpit Inferno.flac"
[02/08/12 11:31:59 GMT]    DEBUG   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-i] [/mnt/Medias/Musiques/Ghinzu - Blow/04 Cockpit Inferno.flac] [-ab] [128k] [-v] [0] [-f] [mp3] [-]
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) ffmpeg version 0.7.8, Copyright (c) 2000-2011 the FFmpeg developers
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) built on Dec 5 2011 16:31:43 with gcc 4.2.1 20070831 patched [FreeBSD]
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --disable-libdirac --disable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --disable-libmp3lame --enable-libopencv --disable-libopenjpeg --disable-librtmp --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavutil 50. 43. 0 / 50. 43. 0
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavcodec 52.123. 0 / 52.123. 0
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavformat 52.111. 0 / 52.111. 0
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavdevice 52. 5. 0 / 52. 5. 0
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavfilter 1. 80. 0 / 1. 80. 0
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libswscale 0. 14. 1 / 0. 14. 1
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) [flac @ 0x80702d820] max_analyze_duration 5000000 reached at 5015510
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Input #0, flac, from '/mnt/Medias/Musiques/Ghinzu - Blow/04 Cockpit Inferno.flac':
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Metadata:
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) ARTIST : Ghinzu
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) TITLE : Cockpit Inferno
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) ALBUM : Blow
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) DATE : 2004
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) track : 04
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) GENRE : Rock
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Duration: 00:03:48.00, bitrate: 889 kb/s
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.0: Audio: flac, 44100 Hz, stereo, s16
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Output #0, mp3, to 'pipe:':
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.0: Audio: [0][0][0][0] / 0x0000, 44100 Hz, stereo, s16, 128 kb/s
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream mapping:
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.0 -> #0.0
[02/08/12 11:31:59 GMT]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Encoder (codec id 86017) not found for output stream #0.0

Re: Flac and M4a transcoding stop working.

PostPosted: Sat Nov 17, 2012 6:41 am
by Sparks14
I've done a new install 4.7 to FreeBSD 8.3-RELEASE-p3 server and am getting the same error when trying to play flac.
Any ideas on this?

Re: Flac and M4a transcoding stop working.

PostPosted: Mon Nov 26, 2012 11:16 am
by madgabz
Same here... has been broking for a while with default settings.... been trying everything on forums, to no avail! dealbreaker for me!!! :(

Re: Flac and M4a transcoding stop working.

PostPosted: Tue Nov 27, 2012 3:39 am
by Sparks14
I gave up on FreeBSD and configured an Ubuntu server. It was easy and had no problems.

Re: Flac and M4a transcoding stop working.

PostPosted: Tue Nov 27, 2012 10:42 am
by madgabz
Sparks14 wrote:I gave up on FreeBSD and configured an Ubuntu server. It was easy and had no problems.

Well, i didn't give up.... the devil is in the details from the above switches: --disable-libmp3lame
Seems, the distributed ffmpeg does NOT enable libmp3lame usage per default, because its a restricted codec (gahh!), at least not on my NAS4Free box, from where I have subsonic installed and running.
So, i spent 2 days setting up a jail for ports, and compiled and packaged ffmpeg, and also lame_3.99.5 and FLAC, also resolving other conflicts with restricted codecs (schroedinger/dirac/etc...)
What HELL is this? I spent at least 4 hours staring at the matrix-compile console, because I had to provide input to compile flags! I am a noob at this, and there are probably 200 easier ways to do this for you SuperUber1337-icodepronforlunch-geeks out there, but this painful trip shouldn't have been necessary!!!
If You came here for help with those pesky
Code: Select all
Encoder (codec id 86017) not found for output stream #0.0
errors, drop me a line, and ill se what i can do for you.... if there are too many hits on me, i'll send you to Sindre! :)

Re: Flac and M4a transcoding stop working.

PostPosted: Wed Nov 28, 2012 5:16 am
by Sparks14
That also fixed it on my 8.3 FreeBSD install. :D :D :D

Re: Flac and M4a transcoding stop working.

PostPosted: Thu May 23, 2013 10:26 pm
by cleric04
You need to make sure ffmpeg is built with LAME support which it isn't by default. I'm going to work with the port maintainer to try and get this fixed but for now here is what you need to do.

# cd /usr/ports/multimedia/ffmpeg
# make config
make sure lame encoder is checked
Code: Select all
[x] LAME  - LAME MP3 audio encoder support

# make deinstall
# make install clean

Re: Flac and M4a transcoding stop working.

PostPosted: Tue May 27, 2014 2:17 pm
by Perforator
This worked on my Ubuntu server.

sudo apt-get install ffmpeg libavcodec-extra-53

picked up at...
http://superuser.com/questions/196857/h ... for-ffmpeg