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?
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.
Analyze that media item again and give it a moment to complete
do a “Get Info” to verify PMS has the media info
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.
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
@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?
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]
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!