SOLUTION: Conversion failed. The transcoder exited due to an error

There are some similarities with the errors by @skylinekillr

Dec 03, 2018 13:20:38.591 [11040] ERROR - [Transcoder] Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
Dec 03, 2018 13:20:38.592 [20316] ERROR - [Transcoder] Error initializing output stream 0:0 --
Dec 03, 2018 13:20:38.665 [0976] DEBUG - Jobs: 'C:\Program Files (x86)\Plex\Plex Media Server\PlexTranscoder.exe' exit code for process 19116 is 1 (failure)
Dec 03, 2018 13:23:36.807 [4552] ERROR - [Transcoder] Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
Dec 03, 2018 13:23:36.808 [8560] ERROR - [Transcoder] Error initializing output stream 0:0 --
Dec 03, 2018 13:23:36.871 [15628] DEBUG - Jobs: 'C:\Program Files (x86)\Plex\Plex Media Server\PlexTranscoder.exe' exit code for process 19040 is 1 (failure)
Dec 03, 2018 13:26:49.723 [8560] ERROR - [Transcoder] [dash @ 046ac740] Unable to open http://127.0.0.1:32400/video/:/transcode/session/l4b8a589e2o58b2js8psgty2/40fc4023-812a-4cb4-bb10-890b2ae7d776/manifest for writing
Dec 03, 2018 13:26:49.724 [18228] ERROR - [Transcoder] av_interleaved_write_frame(): Unknown error
Dec 03, 2018 13:26:49.884 [0976] DEBUG - Jobs: 'C:\Program Files (x86)\Plex\Plex Media Server\PlexTranscoder.exe' exit code for process 10296 is 1 (failure)
Dec 03, 2018 13:26:49.885 [10004] DEBUG - Streaming Resource: Terminated session 0x5a5a710:hhyi1872uyf84gmbq0fcgxrr with reason Conversion failed. The transcoder exited due to an error.
Dec 03, 2018 13:34:52.076 [14268] ERROR - [Transcoder] [dash @ 10b95180] Unable to open http://127.0.0.1:32400/video/:/transcode/session/2ycjs6j74yco4cirnjl0jqdf/97ee9e50-223b-4d49-96b9-f453da56b967/manifest for writing
Dec 03, 2018 13:34:52.077 [11040] ERROR - [Transcoder] av_interleaved_write_frame(): Unknown error
Dec 03, 2018 13:34:52.283 [18568] DEBUG - Jobs: 'C:\Program Files (x86)\Plex\Plex Media Server\PlexTranscoder.exe' exit code for process 14720 is 1 (failure)
Dec 03, 2018 13:34:52.283 [21036] DEBUG - Streaming Resource: Terminated session 0x851d2b0:zkujma2gr1an0ar40jg3jdl8 with reason Conversion failed. The transcoder exited due to an error.

If the problems are easily reproducible, see if you can do the packet capture on loopback by RawCap.exe and upload somewhere and send me link by private message and also provide the logs

sa2000,

How can I do what you requested? is htere a guide on how to get or do this? I have no clue how to do this.
"loopback packet capture on the machine and rawcap.exe "

oh sorry - it was in post following the link i provided - but needed following from one link to another - and this is the post that summarizes how

sa2000, please check your pm, I sent those items you requested

Hello. I’m also having the same issue. Logs can be seen here:

Server version: 1.14.1.5488
Mac OS 10.11.6
Thanks

Just wanting to report the same issue with TrueHD files on macOS running version 1.14.1.5488.

1 Like

The error this time was different - transcoder failing because the temp session transcode directory was not available. Could be a timing issue when dealing with seek during playback or resuming

I have referred the evidence to the development team.

Don’t mind seeing other examples

Adding to my earlier reply, the failure this time was following this error

Dec 22, 2018 04:41:14.661 [1976] ERROR - [Transcoder] Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
Dec 22, 2018 04:41:14.661 [18952] ERROR - [Transcoder] Error initializing output stream 0:0 --

which appears to be relating to a temp transcoder session directory being tidied up following a seek - this is different from the failure we were trying to get the diagnostics for. Nonetheless, it is an issue and i have referred it to the development team as it appears to be a timing bug

Thanks for the logs

They show the EasyAudioEncoder process failing with a permissions issue

Dec 01, 2018 19:46:54.167 [0x15509bbff700] DEBUG - Job running: 
'/config/Library/Application Support/Plex Media Server/Codecs/EasyAudioEncoder-141-linux-ubuntu-x86_64/EasyAudioEncoder/EasyAudioEncoder'
Dec 01, 2018 19:46:54.169 [0x15509bbff700] DEBUG - Jobs: Starting child process with pid 1010


Dec 01, 2018 19:46:54.179 [0x1550a4fff700] DEBUG - Jobs: '/config/Library/Application Support/Plex Media Server/Codecs/EasyAudioEncoder-141-linux-ubuntu-x86_64/EasyAudioEncoder/EasyAudioEncoder' exit code for process 1010 is 13 (failure)

where Error 13 is EACCES Permission denied`

This failure then led to the transcoder failing as it could not find the encoded files

Dec 01, 2018 15:49:54.000 [0x14a291dfe700] ERROR - [Transcoder] [eac3_eae @ 0x15ea780] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-57cd796c-ce20-44dd-b02f-7cc2dfed8bf4/EasyAudioEncoder/Convert to WAV (to 8ch or less)/FC2725E8-6019-4CA3-AA24-4294419282A8_26447-0-0.wav'

Is this directory structure on a mounted volume ?
/config/Library/Application Support/Plex Media Server/
If it is, you need to make sure the /etc/fstab has exec option and no noexec setting - this is because the EasyAudioEncoder binary gets executed from within that directory structure

If it is not this, check the /tmp permissions - but it is most likely the other

Thank you for the clip. I have reproduced the error with this clip. Please make sure it remains available on the linked web page. Apologies for taking a long time to respond.

It seems that once I get the transcoder error, anything I’m trying to play in HD will continue to give me the error. Not sure if this was stated earlier in this long thread, but the only ways to fix this for me is to:

  • restart the plex (latest) container

OR

  • change the transcoding quality to 480p for the movie that was giving me the error

Thanks for the logs - i can see failures similar to what was seen in logs from @skylinekillr SOLUTION: Conversion failed. The transcoder exited due to an error - #400 by skylinekillr and then later failures similar to those reported by @ShadowDarkblade here SOLUTION: Conversion failed. The transcoder exited due to an error - #295 by ShadowDarkblade - for this we needed pcap capture as well as logs and it was provided by @ben-page here Recording failed. Please check your tuner or antenna - #71 by ben-page

Both of these have already been referred to the development team

Further to my earlier reply, the problem has been looked into and it appears to be caused by a problem during the recording of the broadcast. There is a delay in the .ts file for when the video stream starts - starting sometime after the audio.

Need to establish if this was a one-off issue or happened with lots of recordings. Changes will be to avoid the problem with the recordings.

What you could do is chop off the first few blocks of the .ts file. I tried the clip with first 10Mb removed and it played ok in Plex.

So you could follow same steps for using dd.exe outlined here but adjust the parameters to make it skip first 10 megabytes - so if we stick to same folders as before, it would be something like this
dd if="Miracle on 34th Street (1947).ts" of="split\Miracle on 34th Street (1947).ts" bs=1M skip=10

The new file which will only be 10Mb smaller will be in the split folder. You can then remove the existing movie and scan and empty trash and clean bundles and then add the new ts file with the movie directory structure

Thank you for keeping up with this! I appreciate it. Good to know the issue has been passed on to the dev team. Looking forward to a solution.

Can someone look at my logs? I have been trying to look for a fix for a month now. I just don’t know where to begin to try to fix this issue. Someone point me in the right directions please.
Plex Media Server Logs_2018-12-27_22-41-08.zip (1.5 MB)

Thanks for the logs. I do see two transcoder failures on Dec 04, 2018 at 12:24:57 and 12:40:57when starting to transcode media file
/shows/Arrow/Season 7/Arrow - S07E01 - Inmate 4587.mkv in both cases
The first was attempting to start at offset 25 minutes & 9 seconds and the second at offset 38 mins & 48 seconds

Unfortunately there is no logged information as to why the transcoder exited abnormally immediately on start.

The episode was playing through Plex Media Player 2.23.0.920-5bc1a2e5

Does this happen with specific files only? Does it happen when starting from beginning or only on resume from specific point

Will probably need the file or would prefer a clip produced from it - you can use mkvtoolnix to extract the first 300Mb of the file and see if adding that to your library (as Other Video for the test) would fail in same way. If it does, please get me fresh logs plus the 300Mb clip file. You can upload to dropbox / google drive etc and send me link by private message.
See https://support.plex.tv/articles/201035968-generating-sample-files-from-media/

For the logs, i would like to have verbose transcoder logging as well as the verbose logging in Plex Media Server.

To set verbose for the transcoder, you need to add a preference named TranscoderLogLevel and set it to verbose
See https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/
Set it before restarting Plex Media Server for the test with the clip

After completing the tests, please delete the TranscoderLogLevel field in the Preferences.xml file

An observation:
I noticed 150,000+ log entries like this over a period of 25 minutes !

Dec 04, 2018 12:14:53.568 [0x14eb923fd700] VERBOSE - Library section 2 (TV Shows) will be updated because of a change in /shows/Community/Season 2

Are you downloading media directly into the library ? If you are, i suggest you do not do that and have the download area outside Plex media server library paths and when files are complete and ready - then move them into the library

@fly @skylinekillr @zsulwen

A change has been made which should avoid getting the following transcider error when seeking or resuming playback. The fix will be included in a future release - I have no information at this stage as to which release this will be in

The error that would show in the logs before the failure of the transcoder process
ERROR - [Transcoder] Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory

1 Like

I have been looking at the logs trying to find this 9 minute period and the time it hung after that. (In future it would help to give actual times)

I have found that you started playback of
H:\Videos\TV Shows\Rick and Morty\Season 1\Rick and Morty - S01E11 - Ricksy Business.mkv
at 18:46:04 through cellular connection from Plex for iOS on device Sage’s iPhone
Lots of seeks and then paused at 18:55:17 having reached just over 9 minutes in position within the video
Playback was stopped at 18:58:35

At 18:58:44 playback resumed from that position

I can see that the Plex for iOS app asking for a number of transcode segments - in total up to the time you captured the logs, the iOS app asked for 17 3-second segments - giving it a buffer of 51 seconds. It was still in the process of getting these segments when you captured the logs. The logs were captured at 19:00:25 and the iOS app was still getting segments at 19:00:22

The server was for some reason throttling the transcodes and each request for a 3 second segment was taking about 6 seconds to complete - hence the long time of buffering. I presume if you waited a long time, it would have started playback.

I will discuss this with the development team and let you know if i need any more diagnostics

IThis is the playback I was referencing. This is on a brand new DB/server config, so I don’t see a reason it should be getting throttled. There’s definitely no lack of performance on the host. I’m also not sure why it was reporting seeks, because I let the file play without touching it, as you can tell by the time stamps.

And yes, if I let the app sit and buffer for awhile, it might start playing. I may have to pause and the resume the media, but it does seem to resume after some time.

With the new server, I’ve had far less issues than my original, but I still have the random lockup’s, buffering, or failed playbacks.

I willing to provide whatever, or test whatever is necessary for the development team to resolve this. Don’t hesitate to ask!

Thanks for the followup. That’s awesome.