[Transcoder] Unknown encoder 'aac'

After I updated my Ubuntu box from 14.04 to 16.04.1 and PMS to 1.3.3 and now when I start watching some of my movies on my LG Smart TV I get the following in my log file:

Note, this seems to happen to AVI files that are transcoded.

Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - MDE: analyzing media item 16949 Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - MDE: Cars (2006): Direct Play is disabled Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - MDE: Cars (2006): media must be transcoded in order to use the hls protocol Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - MDE: Cars (2006): no direct play video profile exists for http/avi/mpeg4 Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - MDE: Cars (2006): no direct play video profile exists for http/avi/mpeg4/mp3 Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - MDE: Cars (2006): no remuxable profile found, so video stream will be transcoded Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - MDE: computed resolution bounding box of 544x304. Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - Scaled up video bitrate to 1075Kbps based on 1.500000x fudge factor. Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - MDE: Cars (2006): selected media 0 / 16949 Jan 21, 2017 22:38:20.085 [0x7f73ea3fc700] DEBUG - Starting a transcode session cppn3kw8t6e at offset -1.0 (state=3) Jan 21, 2017 22:38:20.088 [0x7f73ea3fc700] DEBUG - [Universal] Using local file path instead of URL: /mnt/share/movies/Cars/Bilar.avi Jan 21, 2017 22:38:20.090 [0x7f73ea3fc700] DEBUG - Job running: FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/c9ea179-1157-linux-ubuntu-x86_64/' XDG_CACHE_HOME='/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/' XDG_DATA_HOME='/usr/lib/plexmediaserver/Resources/' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Transcoder' '-codec:0' 'mpeg4' '-codec:#0x01' 'mp3' '-ss' '1288' '-i' '/mnt/share/movies/Cars/Bilar.avi' '-filter_complex' '[0:0]scale=w=min(544\,iw):h=min(304\,ih):force_original_aspect_ratio=decrease,format=pix_fmts=yuv420p|nv12[0]' '-map' '[0]' '-codec:0' 'libx264' '-crf:0' '16' '-maxrate:0' '1075k' '-bufsize:0' '2150k' '-r:0' '25' '-preset:0' 'veryfast' '-level:0' '4.2' '-x264opts:0' 'subme=6:me_range=4:rc_lookahead=10:me=hex:8x8dct=1' '-force_key_frames:0' 'expr:gte(t,0+n_forced*8)' '-map' '0:#0x01' '-codec:1' 'aac' '-ar:1' '48000' '-channel_layout:1' 'stereo' '-b:1' '256k' '-segment_format' 'mpegts' '-f' 'ssegment' '-individual_header_trailer' '0' '-segment_time' '8' '-segment_start_number' '0' '-segment_time_delta' '0.0625' '-max_delay' '5000000' '-map_metadata' '-1' '-map_chapters' '-1' 'media-%05d.ts' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/cppn3kw8t6e/progress'

Then Shortly after I get this:

Jan 21, 2017 22:38:20.301 [0x7f73eb3fe700] ? - [Transcoder] Unknown encoder 'aac' Jan 21, 2017 22:38:20.303 [0x7f74033ff700] ERROR - JobManager: child process returned: 1 (Operation not permitted)

And this

Jan 21, 2017 22:38:30.249 [0x7f73ea3fc700] WARN - Transcode runner appears to have died. Jan 21, 2017 22:38:30.350 [0x7f73ea3fc700] WARN - Timed out waiting for segment.

How can I set the profile for the TV to not use AAC?

Or, is this a bug in PMS?

1st I’ll need the full log files to see what’s happening. I can’t tell enough from excepts.
2nd, if the aac codec isn’t found, that means it was never successfully downloaded from plex.tv after the upgrades. With such a substantial upgrade, it is a good idea to have PMS ‘Analyze’ your library again to ensure it has all the proper codecs. Normally, analysis is done when first scanned but between the two, it’s entirely possible something got missed which should not have been (which I’ll write up if a bug if found to be true).
3rd, AAC is what was determined to be what was compatible between the media and the TV. It was either a) by commanded limitations at the TV b) limitation of the TV/player and/or c) what was found in the file being played.

Given you show AAC, this directly implies the media contains something other than AAC but AAC is all the TV can support.

As the next step, I suggest.

  1. Analyze that media item again and give it a moment to complete
  2. do a “Get Info” to verify PMS has the media info
  3. Attempt to play again.

If it still will not play, Please go to Settings - Server - Help - Download Logs and then attach the ZIP file here with your next post. I’ll see what PMS and the TV decided.

Also, while you are at the ‘Get info’ popup, please “View XML” and copy paste that with your post as well. Use ‘Code’ paragraph formatting from above so the forum doesn’t ‘eat’ your XML.

Thank you @ChuckPa for a quick and detailed response.

1st Did an “Analyse” action on the media
2nd Got the information and it’s an AVI container with codecs MPEG4 and MP3. (The XML is shown bellow)

3rd Attempted to play again and still get the same error. I have attached the logs with this comment.

XML form info dialog:

<?xml version="1.0" encoding="UTF-8"?> <MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Movies" librarySectionUUID="999dae17-fbb7-4985-833a-bc69c20491b7" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1482363449"> <Video ratingKey="17609" key="/library/metadata/17609" guid="com.plexapp.agents.themoviedb://920?lang=en" librarySectionID="1" studio="Pixar Animation Studios" type="movie" title="Cars" contentRating="G" summary="Lightning McQueen, a hotshot rookie race car driven to succeed, discovers that life is about the journey, not the finish line, when he finds himself unexpectedly detoured in the sleepy Route 66 town of Radiator Springs. On route across the country to the big Piston Cup Championship in California to compete against two seasoned pros, McQueen gets to know the town's offbeat characters." rating="6.2" viewOffset="1291215" viewCount="10" lastViewedAt="1485089831" year="2006" tagline="Ahhh... it's got that new movie smell." thumb="/library/metadata/17609/thumb/1410735065" art="/library/metadata/17609/art/1410735065" duration="6704160" originallyAvailableAt="2006-06-08" addedAt="1410735037" updatedAt="1410735065"> <Media videoResolution="sd" id="16949" duration="6704160" bitrate="854" width="544" height="304" aspectRatio="1.78" audioChannels="2" audioCodec="mp3" videoCodec="mpeg4" container="avi" videoFrameRate="PAL" videoProfile="advanced simple"> <Part accessible="1" exists="1" id="19732" key="/library/parts/19732/1303114522/file.avi" duration="6704160" file="/mnt/share/movies/Cars/Bilar.avi" size="715880448" container="avi" deepAnalysisVersion="2" requiredBandwidths="1582,1515,1463,1463,1463,1463,1463,1463" videoProfile="advanced simple"> <Stream id="147628" streamType="1" codec="mpeg4" index="0" bitrate="717" bitDepth="8" chromaSubsampling="4:2:0" frameRate="25.000" height="304" level="5" profile="advanced simple" refFrames="1" requiredBandwidths="1454,1387,1336,1336,1336,1336,1336,1336" width="544" /> <Stream id="147629" streamType="2" selected="1" codec="mp3" index="1" channels="2" bitrate="128" audioChannelLayout="stereo" requiredBandwidths="129,129,129,129,129,129,129,129" samplingRate="48000" streamIdentifier="1" /> </Part> </Media> <Genre id="4335" tag="Adventure" /> <Genre id="1017" tag="Animation" /> <Genre id="15" tag="Comedy" /> <Genre id="4404" tag="Sport" /> <Genre id="6069" tag="Family" /> <Director id="961" tag="John Lasseter" /> <Director id="7422" tag="Joe Ranft" /> <Writer id="4080" tag="Dan Fogelman" /> <Writer id="7423" tag="Joe Ranft" /> <Writer id="7424" tag="John Lasseter" /> <Writer id="7425" tag="Kiel Murray" /> <Writer id="7426" tag="Phil Lorin" /> <Writer id="7427" tag="Jorgen Klubien" /> <Producer id="4060" tag="Darla K. Anderson" /> <Producer id="7430" tag="Thomas Porter" /> <Country id="18" tag="USA" /> <Role id="1002" tag="Owen Wilson" role="Lightning McQueen (voice)" thumb="http://image.tmdb.org/t/p/original/j7oYgvfDiO34VcFdSB7GhM2CSle.jpg" /> <Role id="7428" tag="Paul Newman" role="Doc Hudson (voice)" thumb="http://image.tmdb.org/t/p/original/n6y6VxJKf0tNC2xFvbsAgcOeLbg.jpg" /> <Role id="1005" tag="Bonnie Hunt" role="Sally Carrera (voice)" thumb="http://image.tmdb.org/t/p/original/lwEvPd4SXprCLBnPzXUaH5pm33w.jpg" /> <Role id="1014" tag="Larry the Cable Guy" role="Mater (voice)" thumb="http://image.tmdb.org/t/p/original/9yGwJBveIvLidqJEQI4PRuKQhMr.jpg" /> <Role id="998" tag="Cheech Marin" role="Ramone (voice)" /> <Role id="977" tag="Tony Shalhoub" role="Luigi (voice)" thumb="http://image.tmdb.org/t/p/original/jXzlVxS8u64XEZUoNPiuhGcQXDW.jpg" /> <Role id="1009" tag="Guido Quaroni" role="Guido (voice)" thumb="http://image.tmdb.org/t/p/original/qfnm3XzrMljLhU3HoNfYk0YGoBw.jpg" /> <Role id="985" tag="Jenifer Lewis" role="Flo (voice)" thumb="http://image.tmdb.org/t/p/original/eGrll66LYRNAzVBsYGT8rRhGBC3.jpg" /> <Role id="1006" tag="Paul Dooley" role="Sarge (voice)" thumb="http://image.tmdb.org/t/p/original/rnzvqo7oR2IwSfN2Ayh3ysc4WNt.jpg" /> <Role id="972" tag="Michael Wallis" role="Sheriff (voice)" thumb="http://image.tmdb.org/t/p/original/4LuttJxXdNZgSDPeY0IOaczfajj.jpg" /> <Role id="7429" tag="George Carlin" role="Fillmore (voice)" thumb="http://image.tmdb.org/t/p/original/4M7NN1VdXoRgOWeZQEsXAKSSlm8.jpg" /> <Role id="1012" tag="Katherine Helmond" role="Lizzie (voice)" thumb="http://image.tmdb.org/t/p/original/m7o1IEKIabcTWz5Qr4yUEoCNHDE.jpg" /> <Role id="996" tag="John Ratzenberger" role="Mack / Hamm Truck / Abominable Snow Plow (voice)" thumb="http://image.tmdb.org/t/p/original/yGechiKWL6TJDfVE2KPSJYqdMsY.jpg" /> <Role id="4045" tag="Michael Keaton" role="Chick Hicks (voice)" thumb="http://image.tmdb.org/t/p/original/niT4arrUKdtaxacmxL4IcUWYE6u.jpg" /> <Extras size="0" /> </Video> </MediaContainer>

In looking through your logs:

Small permission problem with: Jan 21, 2017 21:07:23.335 [0x7f73fabff700] ERROR - [Notify] Failed to add watch for /mnt/share/movies/Keanu (2016) (13: Permission denied)

I would like you to check for the existence of the AAC decoder and encoder in "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/c9ea179-1157-linux-ubuntu-x86_64/"

The log file indicates the file is too short. Either incomplete download (you have internet “404” errors in other areas of your logs) or damaged file.

In the codecs directory, you should find both aac encoder and decoder. Please do the following.

cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/c9ea179-1157-linux-ubuntu-x86_64/"
ls -la
sudo systemctl stop plexmediaserver
sudo rm -f libaac*
sudo systemctl start plexmediaserver

Leave this terminal window open. We will use it to monitor progress.

Now return to the movie you’re having difficulty with. Analyse it again. When it’s complete, do ls -la in the Codecs directory again. You should find both libaac files present (decoder and encoder).

It should look something like this (dependent on your media)

-rw-r--r-- 1 plex plex  433752 Jan 18 15:43 libaac_decoder.so
-rw-r--r-- 1 plex plex  354680 Jan 18 15:42 libaac_encoder.so
-rw-r--r-- 1 plex plex  301256 Jan 18 15:42 libac3_decoder.so
-rw-r--r-- 1 plex plex  292104 Jan 18 15:42 libac3_encoder.so
-rw-r--r-- 1 plex plex  435880 Jan 18 15:42 libdca_decoder.so
-rw-r--r-- 1 plex plex  586216 Jan 18 15:42 libflv_decoder.so
-rw-r--r-- 1 plex plex 1378376 Jan 18 15:43 libh264_decoder.so
-rw-r--r-- 1 plex plex 1086408 Jan 18 15:42 libhevc_decoder.so
-rw-r--r-- 1 plex plex 1270152 Jan 18 15:42 liblibx264_encoder.so
-rw-r--r-- 1 plex plex  487944 Jan 18 15:42 libmpeg1video_decoder.so
-rw-r--r-- 1 plex plex  484008 Jan 18 15:43 libmpeg2video_decoder.so
-rw-r--r-- 1 plex plex  683496 Jan 18 15:42 libmpeg4_decoder.so
-rw-r--r-- 1 plex plex  629432 Jan 18 15:42 libmsmpeg4v3_decoder.so
-rw-r--r-- 1 plex plex  909784 Jan 18 15:43 libvc1_decoder.so
-rw-r--r-- 1 plex plex  629432 Jan 18 15:42 libwmv1_decoder.so
-rw-r--r-- 1 plex plex  673112 Jan 18 15:42 libwmv2_decoder.so
-rw-r--r-- 1 plex plex  909784 Jan 18 15:42 libwmv3_decoder.so
[chuck@lizum c9ea179-1157-linux-ubuntu-x86_64.181]$ 

Please let me know if your findings differ substantially from mine and/or do not resolve the issue.

Leave this terminal window open. We will use it to monitor progress.

Now return to the movie you’re having difficulty with. Analyse it again. When it’s complete, do ls -la in the Codecs directory again. You should find both libaac files present (decoder and encoder).

It should look something like this (dependent on your media)

-rw-r--r-- 1 plex plex  433752 Jan 18 15:43 libaac_decoder.so
-rw-r--r-- 1 plex plex  354680 Jan 18 15:42 libaac_encoder.so
-rw-r--r-- 1 plex plex  301256 Jan 18 15:42 libac3_decoder.so
-rw-r--r-- 1 plex plex  292104 Jan 18 15:42 libac3_encoder.so
-rw-r--r-- 1 plex plex  435880 Jan 18 15:42 libdca_decoder.so
-rw-r--r-- 1 plex plex  586216 Jan 18 15:42 libflv_decoder.so
-rw-r--r-- 1 plex plex 1378376 Jan 18 15:43 libh264_decoder.so
-rw-r--r-- 1 plex plex 1086408 Jan 18 15:42 libhevc_decoder.so
-rw-r--r-- 1 plex plex 1270152 Jan 18 15:42 liblibx264_encoder.so
-rw-r--r-- 1 plex plex  487944 Jan 18 15:42 libmpeg1video_decoder.so
-rw-r--r-- 1 plex plex  484008 Jan 18 15:43 libmpeg2video_decoder.so
-rw-r--r-- 1 plex plex  683496 Jan 18 15:42 libmpeg4_decoder.so
-rw-r--r-- 1 plex plex  629432 Jan 18 15:42 libmsmpeg4v3_decoder.so
-rw-r--r-- 1 plex plex  909784 Jan 18 15:43 libvc1_decoder.so
-rw-r--r-- 1 plex plex  629432 Jan 18 15:42 libwmv1_decoder.so
-rw-r--r-- 1 plex plex  673112 Jan 18 15:42 libwmv2_decoder.so
-rw-r--r-- 1 plex plex  909784 Jan 18 15:42 libwmv3_decoder.so
[chuck@lizum c9ea179-1157-linux-ubuntu-x86_64.181]$ 

Please let me know if your findings differ substantially from mine and/or do not resolve the issue.

Hey, I ran into the same issue while trying to diagnose my mpeg-ts videos not playing.

basically PlexTranscoder crapped out with the same error. and libaac_decored is not present for some reason nor will it download.

Here is what mine produces:

-rw-r–r–. 1 plex plex 354712 Jan 23 22:57 libaac_encoder.so
-rw-r–r–. 1 plex plex 301256 Jan 23 22:57 libac3_decoder.so
-rw-r–r–. 1 plex plex 1270184 Jan 23 22:57 liblibx264_encoder.so
-rw-r–r–. 1 plex plex 484072 Jan 23 22:57 libmpeg2video_decoder.so

as you can see only libaac_encode.so but no libaac_decored.so

https://forums.plex.tv/discussion/254688/fedora-25-transcoder-errors-while-trying-to-stream-mpeg-ts-with-logs-and-other-data#latest

@krutoileshii said:

<snip>

Hey, I ran into the same issue while trying to diagnose my mpeg-ts videos not playing.

basically PlexTranscoder crapped out with the same error. and libaac_decored is not present for some reason nor will it download.

Here is what mine produces:

-rw-r–r–. 1 plex plex 354712 Jan 23 22:57 libaac_encoder.so
-rw-r–r–. 1 plex plex 301256 Jan 23 22:57 libac3_decoder.so
-rw-r–r–. 1 plex plex 1270184 Jan 23 22:57 liblibx264_encoder.so
-rw-r–r–. 1 plex plex 484072 Jan 23 22:57 libmpeg2video_decoder.so

as you can see only libaac_encode.so but no libaac_decored.so

https://forums.plex.tv/discussion/254688/fedora-25-transcoder-errors-while-trying-to-stream-mpeg-ts-with-logs-and-other-data#latest

Kindly keep one issue per thread please. It would be impossible to follow otherwise.

@ChuckPa said:
Please let me know if your findings differ substantially from mine and/or do not resolve the issue.

Thank you for pointing out the permission error. I didn’t see that.

Here you can see how my codec folder was before deleting any files related to AAC.

-rw-r--r-- 1 plex plex 0 Jan 7 22:32 libaac_decoder.so -rw-r--r-- 1 plex plex 0 Jan 7 22:32 libaac_encoder.so -rw-r--r-- 1 plex plex 0 Jan 7 22:32 libac3_decoder.so -rw-r--r-- 1 plex plex 286K Jan 7 22:38 libac3_encoder.so -rw-r--r-- 1 plex plex 315K Jan 7 22:38 libeac3_decoder.so -rw-r--r-- 1 plex plex 0 Jan 7 22:32 libh264_decoder.so -rw-r--r-- 1 plex plex 0 Jan 7 22:32 libhevc_decoder.so -rw-r--r-- 1 plex plex 1.3M Jan 7 22:38 liblibx264_encoder.so -rw-r--r-- 1 plex plex 0 Jan 7 22:32 libmp2_decoder.so -rw-r--r-- 1 plex plex 317K Jan 7 22:38 libmp3_decoder.so -rw-r--r-- 1 plex plex 0 Jan 7 22:32 libmpeg1video_decoder.so -rw-r--r-- 1 plex plex 473K Jan 7 22:38 libmpeg2video_decoder.so -rw-r--r-- 1 plex plex 668K Jan 7 22:38 libmpeg4_decoder.so -rw-r--r-- 1 plex plex 0 Jan 7 22:32 libmsmpeg4v3_decoder.so

I did an Analyze on the movie again but the libaac files didn’t show up again. But now the audio codec is still MP3 in the info dialog of the movie and it plays on the TV.

Am I safe to delete all the files with size 0? Could this be the case for other codecs as well?

Yes, delete the zero-length files. You clearly had a bad download.

If you are able, multi-select some of your media (movies are good), and Analyze them again.

Recheck the Codecs directory. If you are still seeing zero length files, Please gather the ZIP of your logs and post. I will speak with Engineering.

No zero files after I analyzed the whole movies library. And more, the movies (and TV shows) I was having trouble with are now streaming fine.

-rw-r--r-- 1 plex plex 354680 Jan 24 21:58 libaac_encoder.so -rw-r--r-- 1 plex plex 301256 Jan 24 21:58 libac3_decoder.so -rw-r--r-- 1 plex plex 292104 Jan 7 22:38 libac3_encoder.so -rw-r--r-- 1 plex plex 322408 Jan 7 22:38 libeac3_decoder.so -rw-r--r-- 1 plex plex 1378376 Jan 24 21:47 libh264_decoder.so -rw-r--r-- 1 plex plex 1086408 Jan 25 09:05 libhevc_decoder.so -rw-r--r-- 1 plex plex 1270152 Jan 7 22:38 liblibx264_encoder.so -rw-r--r-- 1 plex plex 323784 Jan 7 22:38 libmp3_decoder.so -rw-r--r-- 1 plex plex 484008 Jan 7 22:38 libmpeg2video_decoder.so -rw-r--r-- 1 plex plex 683496 Jan 7 22:38 libmpeg4_decoder.so -rw-r--r-- 1 plex plex 629432 Jan 25 09:05 libmsmpeg4v3_decoder.so

Thank you a lot for great help!

WTF: SegFault on libaac_encoder.so. This is downloaded from the plex site and no way use any alternative!!!
Plex Transcoder[2763]: segfault at 7f337f6e2060 ip 00007f337f426847 sp 00007ffc004391f0 error 4 in libaac_encoder.so[7f337f40c000+3f000]

@jacinplex

I have responded to you in the thread you created.

Many thanks Chuck. I thought the problem may have been with a troublesome Roku firmware release. I had lots of files to “fix”.
Problems with 0 length files in my install as well. Synaptic completely removed and reinstalled and Bugs Bunny has his voice back!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.