My plex server don't want to read my mkv files

HI I have a problem, I have install plexserver in a raspberry pi 4 MKV and AVI files .
When plex was on my windows computer all was working but in the Pi mkv files and avi files are not reading.

Could this be a permission issue?

I don’t know when I’m trying to read these files the movie just loading without start him (in VLC everything is ok)

VLC reads using the permissions for your username.

Plex uses the permissions for its username

it’s plex, in group plex, by default on all Linux platforms (except Synology DSM 7 and QNAP QTS)

Yes but all the users and the groupes can read, write and execute all files in this disk and Plex (on the raspberry pi) can also reading MP4 files

rather than discussing, can you show me a directory listing (ls -la) of what works and what doesn’t work? Also, please detail where the parent direcyories are ? (are they the same or separate mounts?)

Also, are the MP4s and MKVs on the same physical volume?

I can’t show it you now but all files are in the same mount

I’m sorry, I don’t understand your reply

"but all the files " … ?

all files are in the same mount

Using Plex, attempt to play one of each file (only 20 seconds of each).
Then , after Playback is stopped.

settings - Server - Troubleshooting - Download Logs.

Attach the ZIP file it gives you here with your next reply.

No more guessing what’s wrong, we will find out directly.

Is what I see when I do “ls -la”

May I see the Plex log files when you play a MKV which fails and when you start to play a MP4 which succeeds?

I don’t know how to do

  1. Play , or attempt to play, one of each file type for 20 seconds
  2. If playback starts, stop playback after 20 seconds
  3. Settings - Server - Troubleshooting - Download Logs
  4. It will present you a ZIP file
  5. Attach that ZIP file here with your reply.

Plex Media Server Logs_2021-06-09_17-06-02.zip (1.9 MB)

Thank you. I can see what’s happening now.

The CPU is having a very hard time with the file(s).

is 741 (of total: 741).
Jun 08, 2021 12:21:42.759 [0xb19a9d48] ERROR - Caught exception trying to stream file: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-bm5ckpe4rduxdbvs2lf0cbug-b268d751-4383-4698-a907-6886ad06fbdb/init-stream1.m4s: write: Broken pipe
Jun 08, 2021 12:21:42.760 [0xb19a9d48] DEBUG - Request: [192.168.0.254:53393 (Subnet)] GET /video/:/transcode/universal/session/m1cv3s1udq8a6k2kh2ykoml3/1/0.m4s (24 live) TLS GZIP Signed-in
Jun 08, 2021 12:21:42.760 [0xb19a9d48] DEBUG - [Transcode/m1cv3s1udq8a6k2kh2ykoml3] Asked for segment 0 from session.
Jun 08, 2021 12:21:42.760 [0xb285ed48] DEBUG - Completed after connection close: [192.168.0.254:61909] 500 GET /video/:/transcode/universal/session/bm5ckpe4rduxdbvs2lf0cbug/1/header (24 live) TLS GZIP 120363ms 0 bytes (pipelined: 25)
Jun 08, 2021 12:21:51.726 [0xb1eded48] DEBUG - BPQ: onConsiderProcessing: Idle (true)
Jun 08, 2021 12:21:51.726 [0xb1eded48] DEBUG - BPQ: [Idle] -> [Processing]
Jun 08, 2021 12:21:51.732 [0xb1eded48] DEBUG - BPQ: generating queue items from 0 generator(s)
Jun 08, 2021 12:21:51.732 [0xb1eded48] DEBUG - BPQ: generated 0 item(s) for queue
Jun 08, 2021 12:21:51.733 [0xb1eded48] DEBUG - PlayQueue: 0 generated IDs compressed down to a 20 byte blob.
Jun 08, 2021 12:21:51.734 [0xb1eded48] DEBUG - PlayQueue: 0 generated IDs compressed down to a 20 byte blob.
Jun 08, 2021 12:21:51.735 [0xb1eded48] DEBUG - BPQ: [Processing] -> [Idle]
Jun 08, 2021 12:21:53.124 [0xb1d51d48] WARN - [Transcode/bm5ckpe4rduxdbvs2lf0cbug] Timed out waiting for segment.
Jun 08, 2021 12:21:53.129 [0xb285ed48] DEBUG - Completed after connection close: [192.168.0.254:61917] 404 GET /video/:/transcode/universal/session/bm5ckpe4rduxdbvs2lf0cbug/1/0.m4s (23 live) TLS GZIP 120202ms 0 bytes (pipelined: 2)
Jun 08, 2021 12:21:53.499 [0xb25cad48] DEBUG - [Transcode/bm5ckpe4rduxdbvs2lf0cbug] Exists("/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-bm5ckpe4rduxdbvs2lf0cbug-b268d751-4383-4698-a907-6886ad06fbdb/init-stream1.m4s") => 1
Jun 08, 2021 12:21:53.499 [0xb25cad48] DEBUG - Content-Length of /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-bm5ckpe4rduxdbvs2lf0cbug-b268d751-4383-4698-a907-6886ad06fbdb/init-stream1.m4s is 741 (of total: 741).
Jun 08, 2021 12:21:53.499 [0xb25cad48] ERROR - Caught exception trying to stream file: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-bm5ckpe4rduxdbvs2lf0cbug-b268d751-4383-4698-a907-6886ad06fbdb/init-stream1.m4s: write: Broken pipe

It eventually times out and fails.

Would you please get the Media Info → XML for this file and share it?

/home/shares/public/disk1/film/La.Vie.scolaire.French.BDRIP.mkv
  1. Hover over the poster
  2. Expose the ellipsis
  3. Click it
  4. Get Info
  5. View XML

I am interested in the top portion only; down to the </media> marker.

Please use the code formatting button ( </>) to share it here in the forum

<Media id="963" duration="6302177" bitrate="919" width="720" height="304" aspectRatio="2.35" audioChannels="2" audioCodec="mp3" videoCodec="mpeg4" videoResolution="sd" container="mp4" videoFrameRate="24p" optimizedForStreaming="0" has64bitOffsets="0" videoProfile="advanced simple">
<Part id="963" key="/library/parts/963/1623174173/file.mp4" duration="6302177" file="/home/shares/public/disk1/film/Coco.2017.TRUEFRENCH.BDRip.XviD.avi.mp4" size="726527454" container="mp4" deepAnalysisVersion="4" has64bitOffsets="0" optimizedForStreaming="0" requiredBandwidths="1339,1061,1061,1061,1061,1061,1061,1061" videoProfile="advanced simple">
<Stream id="2014" streamType="1" default="1" codec="mpeg4" index="0" bitrate="791" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codecID="mp4v" codedHeight="304" codedWidth="720" frameRate="23.976" height="304" level="5" profile="advanced simple" refFrames="1" requiredBandwidths="1210,935,935,935,935,935,935,935" streamIdentifier="1" width="720" displayTitle="SD (MPEG4)" extendedDisplayTitle="SD (MPEG4)"> </Stream>
<Stream id="2015" streamType="2" selected="1" default="1" codec="mp3" index="1" channels="2" bitrate="128" audioChannelLayout="stereo" requiredBandwidths="129,129,129,129,129,129,129,129" samplingRate="48000" streamIdentifier="2" displayTitle="Inconnu (MP3 Stereo)" extendedDisplayTitle="Inconnu (MP3 Stereo)"> </Stream>
</Part>
</Media>
<Genre id="4" filter="genre=4" tag="Familial"/>
<Genre id="5" filter="genre=5" tag="Adventure"/>
<Genre id="6" filter="genre=6" tag="Animation"/>
<Genre id="7" filter="genre=7" tag="Comédie"/>
<Genre id="8" filter="genre=8" tag="Drame"/>
<Genre id="9" filter="genre=9" tag="Mystère"/>
<Genre id="10" filter="genre=10" tag="Fantastique"/>
<Genre id="11" filter="genre=11" tag="Musical"/>
<Genre id="12" filter="genre=12" tag="Musique"/>
<Director id="98" filter="director=98" tag="Lee Unkrich"/>
<Writer id="99" filter="writer=99" tag="Lee Unkrich"/>
<Writer id="100" filter="writer=100" tag="Matthew Aldrich"/>
<Writer id="101" filter="writer=101" tag="Jason Katz"/>
<Writer id="102" filter="writer=102" tag="Tony Maki"/>
<Writer id="103" filter="writer=103" tag="Vladimir Kooperman"/>
<Producer id="104" filter="producer=104" tag="Darla K. Anderson"/>
<Country id="13" filter="country=13" tag="United States of America"/>
<Guid id="imdb://tt2380307"/>
<Guid id="tmdb://354912"/>
<Guid id="tvdb://321"/>

You might wanna check the file. This isn’t even a MKV container.

<Media id="947" duration="5299264" bitrate="2655" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="ac3" videoCodec="hevc" videoResolution="1080" container="mkv" videoFrameRate="PAL" videoProfile="main 10">
<Part accessible="1" exists="1" id="947" key="/library/parts/947/1622698138/file.mkv" duration="5299264" file="/home/shares/public/disk1/série/Sherlock/S01/Sherlock.S01E01.MULTi.1080p.HDLight.x265-H4S5S.mkv" size="1759918803" container="mkv" deepAnalysisVersion="4" requiredBandwidths="5187,4419,4287,4287,4287,4287,4287,4287" videoProfile="main 10">
<Stream id="1967" streamType="1" default="1" codec="hevc" index="0" bitrate="1759" bitDepth="10" chromaSubsampling="4:2:0" codedHeight="1080" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="25.000" height="1080" level="120" profile="main 10" refFrames="1" requiredBandwidths="4291,3621,3621,3621,3621,3621,3621,3621" title="Sherlock.S01E01.MULTi.1080p.HDLight.x265-H4S5S" width="1920" displayTitle="1080p (HEVC Main 10)" extendedDisplayTitle="Sherlock.S01E01.MULTi.1080p.HDLight.x265-H4S5S (1080p HEVC Main 10)"> </Stream>
<Stream id="1968" streamType="2" default="1" codec="ac3" index="1" channels="6" bitrate="447" language="Français" languageCode="fre" audioChannelLayout="5.1(side)" requiredBandwidths="448,448,448,448,448,448,448,448" samplingRate="48000" title="VFF" displayTitle="Français (AC3 5.1)" extendedDisplayTitle="VFF (Français AC3 5.1)"> </Stream>
<Stream id="1969" streamType="2" selected="1" codec="ac3" index="2" channels="6" bitrate="448" language="English" languageCode="eng" audioChannelLayout="5.1(side)" requiredBandwidths="448,448,448,448,448,448,448,448" samplingRate="48000" title="VO" displayTitle="English (AC3 5.1)" extendedDisplayTitle="VO (English AC3 5.1)"> </Stream>
<Stream id="1970" streamType="3" selected="1" codec="srt" index="3" bitrate="0" language="Français" languageCode="fre" requiredBandwidths="1,1,1,1,1,1,1,1" title="Full" displayTitle="Français (SRT)" extendedDisplayTitle="Full (Français SRT)"> </Stream>
</Part>
</Media>
<Director id="2828" filter="director=2828" tag="Paul McGuigan"/>
<Writer id="1790" filter="writer=1790" tag="Steven Moffat"/>
<Producer id="2829" filter="producer=2829" tag="Kathy Nettleship"/>
<Guid id="imdb://tt1665071"/>
<Guid id="tmdb://578715"/>
<Guid id="tvdb://2502511"/>
<Role id="2810" filter="actor=2810" tag="Siobhan Hewlett" role="Helen" thumb="https://metadata-static.plex.tv/f/people/f639643a1981557ecfe0d98b73952762.jpg"/>
<Role id="2811" filter="actor=2811" tag="William Scott-Masson" role="Sir Jeffrey Patterson" thumb="https://metadata-static.plex.tv/0/people/057d3cc62ca3621df7aba0f6e03ff9de.jpg"/>
<Role id="2812" filter="actor=2812" tag="Victoria Wicks" role="Margaret Patterson" thumb="https://metadata-static.plex.tv/people/5d776836f59e580021898c20.jpg"/>
<Role id="2813" filter="actor=2813" tag="Tanya Moodie" role="Ella" thumb="https://metadata-static.plex.tv/people/5d77682c7228e5001f1dd81c.jpg"/>
<Role id="2814" filter="actor=2814" tag="Sean Joseph Young" role="Gary"/>
<Role id="2815" filter="actor=2815" tag="James Duncan" role="Jimmy"/>
<Role id="2816" filter="actor=2816" tag="Ruth Everett" role="Political Aides"/>
<Role id="2817" filter="actor=2817" tag="Syrus Lowe" role="Political Aides" thumb="https://metadata-static.plex.tv/f/people/fd76e15a759bacfbaed6fcd3f9c0ce40.jpg"/>
<Role id="2818" filter="actor=2818" tag="Katy Maw" role="Beth Davenport" thumb="https://metadata-static.plex.tv/f/people/f819dfd3868a03849ff8be5fd2fe65e4.jpg"/>
<Role id="2819" filter="actor=2819" tag="Ben Rufus Green" role="Reporter" thumb="https://metadata-static.plex.tv/8/people/82330dfff27dfd60ae568884985c11a7.jpg"/>
<Role id="2820" filter="actor=2820" tag="Pradeep Jey" role="Reporter" thumb="https://metadata-static.plex.tv/3/people/39c4b2700a886e82f30af7277b748a3e.jpg"/>
<Role id="2821" filter="actor=2821" tag="Imogen Slaughter" role="Reporter" thumb="https://metadata-static.plex.tv/people/5d776d439ab544002151d127.jpg"/>
<Role id="2822" filter="actor=2822" tag="David Nellist" role="Mike Stamford" thumb="https://metadata-static.plex.tv/0/people/08903e5069fa5f132feccf8b81d2307e.jpg"/>
<Role id="2823" filter="actor=2823" tag="Louise Breckon-Richards" role="Jennifer Wilson" thumb="https://metadata-static.plex.tv/6/people/6c0e09af702c7d7d8cc4aec335038fe8.jpg"/>
<Role id="2824" filter="actor=2824" tag="Stanley Townsend" role="Angelo" thumb="https://metadata-static.plex.tv/people/5d77682b5af944001f1f7ba1.jpg"/>
<Role id="2825" filter="actor=2825" tag="Lisa McAllister" role="Anthea"/>
<Role id="2826" filter="actor=2826" tag="Peter Brooke" role="Taxi Passenger" thumb="https://metadata-static.plex.tv/c/people/cdef6b28f5806466a9f4ff231650dec7.jpg"/>
<Role id="2827" filter="actor=2827" tag="Phil Davis" role="Jeff" thumb="https://metadata-static.plex.tv/people/5d776829151a60001f24b132.jpg"/>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>

This is with a Mkv file sorry

but the other fille donesn’t want to work on plex

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