Transcoder exit code -4

server-freebsd

#1

Hi,

I'm hoping someone can help me with a strange transcoding issue. I'm trying to run live streams from a channel and any time the transcoder needs to be involved in the live stream process the stream fails and I get an error code of -4 which I think is a hardware error code, illegal instruction.
The strange thing is that the server will transcode movies/tvshows that are in my library without any issues and without throwing this error code. Also on some devices the livestream will direct play and it has no issues then

Im running on Freenas 11, Plex Version 1.11.0.4666
CPU is an AMD A10

I've attached the logs but these seem to be the main lines

Jan 05, 2018 19:09:18.065 [0x80afdad00] DEBUG - Found session GUID of c7g0ogkoytgjgykkd68m0pcn in session start.

Jan 05, 2018 19:09:18.065 [0x80afdad00] DEBUG - Cleaning directory for session c7g0ogkoytgjgykkd68m0pcn ()

Jan 05, 2018 19:09:18.065 [0x80afdad00] DEBUG - Starting a transcode session c7g0ogkoytgjgykkd68m0pcn at offset -1.0 (state=3)

Jan 05, 2018 19:09:18.067 [0x80afdad00] DEBUG - TPU: hardware transcoding: zero-copy support not present

Jan 05, 2018 19:09:18.068 [0x80afdad00] DEBUG - Job running: EAE_ROOT='/tmp/pms-de8f038d-c97c-49b1-8acc-1dcf09f5799f/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/var/db/plexdata/Plex\ Media\ Server/Codecs/b077134-1269-freebsd-x86_64/' XDG_CACHE_HOME='/var/db/plexdata/Plex Media Server/Cache/' XDG_DATA_HOME='/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Resources/' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Transcoder' '-codec:V:0' 'h264' '-codec:a:0' 'aac' '-i' '' '-filter_complex' '[0:V:0]scale=w=min(1920\,iw):h=min(1080\,ih):force_original_aspect_ratio=decrease[0];[0]format=pix_fmts=yuv420p|nv12[1]' '-filter_complex' '[0:a:0] aresample=async=1:ocl='\''stereo'\'':osr=96000[2]' '-map' '[1]' '-codec:0' 'libx264' '-crf:0''17' '-maxrate:0' '18683k' '-bufsize:0' '37366k' '-preset:0' 'veryfast' '-x264opts:0' 'subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none''-force_key_frames:0' 'expr:gte(t,0+n_forced*3)' '-map' '[2]' '-codec:1' 'aac' '-b:1' '233k' '-f' 'dash' '-min_seg_duration' '3000000' '-skip_to_segment' '1' '-time_delta' '0.0625' '-manifest_name' 'http://127.0.0.1:32400/video/:/transcode/session/c7g0ogkoytgjgykkd68m0pcn/6c5aa29a-1f1e-49d8-96c8-3e6ecef2339e/manifest' '-avoid_negative_ts' 'disabled' '-map_metadata' '-1' '-map_chapters' '-1' 'dash' '-start_at_zero' '-copyts' '-vsync' 'cfr' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error''-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/c7g0ogkoytgjgykkd68m0pcn/6c5aa29a-1f1e-49d8-96c8-3e6ecef2339e/progress'

Jan 05, 2018 19:09:18.610 [0x80afdbc00] DEBUG - JobManager: child process killed by signal: 4 (Illegal instruction)

Jan 05, 2018 19:09:18.610 [0x80afdbc00] DEBUG - Jobs: '/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Transcoder' exit code for process 26128 is -4

Jan 05, 2018 19:09:37.707 [0x80aa53b00] DEBUG - Auth: authenticated user 1 as Rory898

Jan 05, 2018 19:09:37.707 [0x80b166c00] DEBUG - Request: [192.168.0.12:18888 (Subnet)] GET /status/sessions (7 live) TLS Signed-in Token (Rory898)

Jan 05, 2018 19:09:37.707 [0x80b166c00] DEBUG - [Now] Adding 0 sessions.

Jan 05, 2018 19:09:37.708 [0x80aa53b00] DEBUG - Completed: [192.168.0.12:18888] 200 GET /status/sessions (7 live) TLS 0ms 292 bytes (pipelined: 1)

Jan 05, 2018 19:09:48.078 [0x80afdad00] DEBUG - Using default transcode duration of 120 minutes

Jan 05, 2018 19:09:48.078 [0x80afdad00] DEBUG - Started session successfully: c7g0ogkoytgjgykkd68m0pcn

Jan 05, 2018 19:09:48.078 [0x80afdbc00] DEBUG - Jobs: '/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Transcoder' exit code for process 26128 is -4

Jan 05, 2018 19:09:48.079 [0x80afdbc00] DEBUG - Jobs: '/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Transcoder' exit code for process 26128 is -4

Jan 05, 2018 19:09:48.079 [0x80afdbc00] DEBUG - Streaming Resource: Terminating session 0x80bdfaa20:p9a0op8xpdimzjdxiovd7go3 which is using 19862kbps of WAN bandwidth.
Used is now 0kbps

Jan 05, 2018 19:09:48.079 [0x80afdbc00] DEBUG - Streaming Resource: Terminating session 0x80bdfaa20:p9a0op8xpdimzjdxiovd7go3 which is using transcoder slot. Used slots
is now 0

Jan 05, 2018 19:09:48.079 [0x80afdbc00] DEBUG - Streaming Resource: Terminated session 0x80bdfaa20:p9a0op8xpdimzjdxiovd7go3 with reason Conversion failed. The transcode
r crashed or failed to start up.

Jan 05, 2018 19:09:48.079 [0x80afd9e00] DEBUG - Killing job.

Jan 05, 2018 19:09:48.079 [0x80afd9e00] DEBUG - Signalling job ID 26128 with 9

Jan 05, 2018 19:09:48.079 [0x80afd9e00] DEBUG - Job was already killed, not killing again.

Jan 05, 2018 19:09:48.079 [0x80afd9e00] DEBUG - Stopping transcode session c7g0ogkoytgjgykkd68m0pcn

And here is info on the processor via dmidecode

Processor Information
Socket Designation: CPUSocket
Type: Central Processor
Family: A-Series
Manufacturer: AMD
ID: 31 0F 61 00 FF FB 8B 17
Signature: Family 21, Model 19, Stepping 1
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
HTT (Multi-threading)
Version: AMD A10-6790K APU with Radeon(tm) HD Graphics
Voltage: 1.3 V
External Clock: 100 MHz
Max Speed: 4000 MHz
Current Speed: 4000 MHz
Status: Populated, Enabled
Upgrade: Socket FM2
L1 Cache Handle: 0x000D
L2 Cache Handle: 0x000E
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Core Count: 4
Core Enabled: 4
Thread Count: 4
Characteristics:
64-bit capable

Edit: Formatting


#2

I am having the exact same issue. Transcoding of hosted content works fine. Transcoded content from plugins (CBS, NBC, etc.) fails to work. In my case, CBS streams won’t play in the latest version of Chrome - the player just spins - no errors or video is ever presented.

Log snippet:
May 10, 2018 15:22:10.023 [0x80be18400] DEBUG - Starting a transcode session i8bby0zj6ghtmh1ygpzk9jy0 at offset -1.0 (state=3)
May 10, 2018 15:22:10.027 [0x80be18400] DEBUG - TPU: hardware transcoding: zero-copy support not present
May 10, 2018 15:22:10.029 [0x80be18400] DEBUG - Job running: EAE_ROOT=’/tmp/pms-1f912708-08fc-4bf3-bbf9-e220878fe8f2/EasyAudioEncoder’ FFMPEG_EXTERNAL_LIBS=’/var/db/plexdata/Plex\ Media\ Server/Codecs/7814ac9-1285-freebsd-x86_64/’ XDG_CACHE_HOME=’/var/db/plexdata/Plex Media Server/Cache/’ XDG_DATA_HOME=’/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Resources/’ X_PLEX_TOKEN=‘xxxxxxxxxxxxxxxxxxxx’ ‘/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Transcoder’ ‘-codec:V:0’ ‘h264’ ‘-codec:a:0’ ‘aac’ ‘-i’ ‘https://cbsios-vh.akamaihd.net/i/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2018/05/03/1224498755547/CBS_COLBERT_0538_CONTENT_CIAN_vantage_1418489_,2228,4628,3128,1628,848,503,000.mp4.csmil/master.m3u8?hdnea=acl=/i/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2018/05/03/1224498755547/CBS_COLBERT_0538_CONTENT_CIAN_vantage_1418489_~exp=1525983849~hmac=51af61f634277825daa4163b51c0dc4ce6d6d46a88f892d0dbcd51578ef24dca&b=5000’ ‘-filter_complex’ ‘[0:V:0]scale=w=720:h=406[0];[0]format=pix_fmts=yuv420p|nv12[1]’ ‘-filter_complex’ ‘[0:a:0] aresample=async=1:ocl=’’‘stereo’’’:osr=96000[2]’ ‘-map’ ‘[1]’ ‘-codec:0’ ‘libx264’ ‘-crf:0’ ‘17’ ‘-maxrate:0’ ‘2613k’ ‘-bufsize:0’ ‘5226k’ ‘-preset:0’ ‘veryfast’ ‘-x264opts:0’ ‘subme=6:me_range=4:rc_lookahead=10:me=hex:8x8dct=1’ ‘-force_key_frames:0’ 'expr:gte(t,0+n_forced8)’ ‘-map’ ‘[2]’ ‘-codec:1’ ‘aac’ ‘-b:1’ ‘232k’ ‘-f’ ‘dash’ ‘-min_seg_duration’ ‘8000000’ ‘-skip_to_segment’ ‘1’ ‘-time_delta’ ‘0.0625’ ‘-manifest_name’ ‘http://127.0.0.1:32400/video/:/transcode/session/i8bby0zj6ghtmh1ygpzk9jy0/fd01e7df-d6a7-4886-8963-01176fdb2327/manifest’ ‘-avoid_negative_ts’ ‘disabled’ ‘-map_metadata’ ‘-1’ ‘-map_chapters’ ‘-1’ ‘dash’ ‘-start_at_zero’ ‘-copyts’ ‘-vsync’ ‘cfr’ ‘-y’ ‘-nostats’ ‘-loglevel’ ‘quiet’ ‘-loglevel_plex’ ‘error’ ‘-progressurl’ ‘http://127.0.0.1:32400/video/:/transcode/session/i8bby0zj6ghtmh1ygpzk9jy0/fd01e7df-d6a7-4886-8963-01176fdb2327/progress
May 10, 2018 15:22:10.046 [0x80be18400] DEBUG - Jobs: Starting child process with pid 15902
May 10, 2018 15:22:10.346 [0x80ac5fc00] DEBUG - Jobs: ‘/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Transcoder’ exit code for process 15902 is -4 (signal: Illegal instruction: 4)

Processor Information
Socket Designation: CPU1
Type: Central Processor
Family: Xeon
Manufacturer: Intel
ID: C2 06 02 00 FF FB EB BF
Signature: Type 0, Family 6, Model 44, Stepping 2
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Multi-threading)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Intel® Xeon® CPU L5609 @ 1.87GHz
Voltage: 1.2 V
External Clock: 4800 MHz
Max Speed: 3600 MHz
Current Speed: 1866 MHz
Status: Populated, Enabled
Upgrade: Socket LGA1366
L1 Cache Handle: 0x0700
L2 Cache Handle: 0x0701
L3 Cache Handle: 0x0702
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Core Count: 4
Core Enabled: 4
Thread Count: 4
Characteristics:
64-bit capable

Handle 0x0401, DMI type 4, 40 bytes
Processor Information
Socket Designation: CPU2
Type: Central Processor
Family: Xeon
Manufacturer: Intel
ID: C2 06 02 00 FF FB EB BF
Signature: Type 0, Family 6, Model 44, Stepping 2
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Multi-threading)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Intel® Xeon® CPU L5609 @ 1.87GHz
Voltage: 1.2 V
External Clock: 4800 MHz
Max Speed: 3600 MHz
Current Speed: 1866 MHz
Status: Populated, Idle
Upgrade: Socket LGA1366
L1 Cache Handle: 0x0703
L2 Cache Handle: 0x0704
L3 Cache Handle: 0x0705
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Core Count: 4
Core Enabled: 4
Thread Count: 4
Characteristics:
64-bit capable