Transcoder issue - wrong flag?

Server Version#: Version 1.41.0.8992
Player Version#: doesn’t matter - happens on all players

I’m encountering a peculiar issue with my Plex transcoder. When I start a stream that requires transcoding, the stream plays for a few seconds and then abruptly stops, leaving the following log entries:


Sep 12, 2024 20:52:37.333 [123869388090168] Error — [Req#252/Transcode/6nl7wax07ye14193uytayfbg/ae5627d2-6698-4c9b-bbdf-b241dc600fa9] [tcp @ 0x7f3a9710ba00] Connection to tcp://127.0.0.1:32400 failed: Operation timed out
Sep 12, 2024 20:52:37.334 [123869392284472] Error — [Req#27f/Transcode/6nl7wax07ye14193uytayfbg/ae5627d2-6698-4c9b-bbdf-b241dc600fa9] [segment @ 0x7f3a9cbdf380] Failed to open segment list 'http://127.0.0.1:32400/video/:/transcode/session/6nl7wax07ye14193uytayfbg/ae5627d2-6698-4c9b-bbdf-b241dc600fa9/manifest?X-Plex-Http-Pipeline=infinite'
Sep 12, 2024 20:52:37.334 [123869438421816] Error — [Req#281/Transcode/6nl7wax07ye14193uytayfbg/ae5627d2-6698-4c9b-bbdf-b241dc600fa9] av_interleaved_write_frame(): Operation timed out
Sep 12, 2024 20:52:37.337 [123869526502200] Error — [Req#286/Transcode/6nl7wax07ye14193uytayfbg/ae5627d2-6698-4c9b-bbdf-b241dc600fa9] Error writing trailer of chunk-%05d: Invalid argument

Upon further investigation, I noticed that Plex is sending the crf flag to FFmpeg, which appears to be unsupported by the current configuration.

I’ve already tried several troubleshooting steps, including checking network configurations and adjusting transcoding settings, but the problem persists. It seems like Plex is struggling to maintain a connection to 127.0.0.1:32400, which causes the transcoding session to fail shortly after it starts.

If anyone has encountered this issue or has insights into how to resolve it, any help would be greatly appreciated.

The reason I believe the crf flag is causing an issue is that when I start a transcode session and manually inspect the process using ps aux | grep Trans, I see that the crf flag is included in the FFmpeg command. However, after changing the log mode from quiet to debug and running the transcoder manually, it reveals that the process dies specifically after encountering this flag.

  1. I monitored the transcode process using ps aux | grep Trans right after starting a stream.
  2. I then manually re-ran the command, but had to adjust it slightly by adding some quotes or modifying the input arguments.
  3. After changing the logging level to debug, I could see that the transcoder terminates when it hits the crf option, reporting it as an “Unrecognized option.”

As seen in the logs, the transcoder appears to process other options fine, but it consistently dies after reaching this specific point.


May I please have the server and player debug logs which capture the error right after it happens?

https://support.plex.tv/articles/201869908-log-files/

I’ll pass it to the Engineer. He’ll want to see this.

@ihateplexmor

Is this still an issue?

If so, may I please see the server logs which capture it?

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