@ChuckPa, did you try to create video preview thumbnails (NOT chapter thumbnails or general thumbnails)? THAT IS WHERE THE PROBLEM LIES.
Let me try to explain the issue again. It seems like ffmpeg has a bug when attempting to pull keyframes from certain types of (legally) encoded files. Plex uses ffmpeg in some form. Therefore Plex has a problem with certain types of (legally) encoded files.
It is not about ripping. It is not about MKVs. It is not about chapter thumbnails. It is about the code that Plex uses to pull frames from x264 video during one specific process, that process being the generation of frames when creating a BIF file.
Yes, the number of IDR frames in a stream is determined at encoding time.
Doesnât change when remuxing, etc. Canât be changed without reencoding.
Reasons a stream could have fewer IDR frames:
Encoded with open GOP
I frames that are not IDR frames
Encoded using intra-refresh.
Not sure what you mean by âFFMPEG levelâ.
At least one of these streams was produced by the x264 encoder with validated-for-bluray settings.
It definitely is. These are valid streams, and Plex is failing.
The way Plex extracts video preview thumbnails cannot handle these streams. It is taking a shortcut - skipping non-IDR frames.
Plex could use a more reliable method (slower), or it could attempt the shortcut, and then use a more reliable method.
Plex has changed the method for video preview thumbnail extraction in the past.
We know that Plex uses FFmpeg internally, but that doesnât give permission to pass the buck.
That would be great but isnât the only solution.
I submitted the bug to FFmpeg because it may impact other users too.
I donât think Plex usually imports FFmpeg changes immediately.
Plex relies on this feature internally. Iâm hoping Plex will take ownership.
Plex could fix & patch this in their local FFmpeg src.
Plex could fix & patch this and submit it back to FFmpeg upstream.
I think thatâs mostly a non-sequitur.
We know that basic ripping methods matter.
These streams PLAY fine, theyâre valid H.264.
If the conversation ends at âItâs a stream problemâ or âItâs an FFmpeg problemâ, the world will keep turning. These thumbnails are a nice-to-have feature. Most streams are encoded with plenty of IDR frames and closed GOP. If you see the other thread there are a number of people with the issue.
If you can give me a nice , clean, âVideo Chapter thumbnail fail when GOP / IDR frames > Xâ statement of the problem (or the reverse logic) ,
along with the "works when â Condition Blah ---- " (show scope)
I can then take the two samples (failure & success) and escalate.
If FFMPEG core canât handle is then thereâs not much hope of a quick turnaround by our dev team (theyâre good but must push any & all changes to core back upstream â the delay)
Additionally, this terrible hack, modifying the Plex Media Server so that it does not use ânokeyâ, immediately resolves the issue and causes it to generate video preview thumbnail files correctly.
My point is that this is behavior Plex can address. (Iâm not suggesting thatâs the correct way to do so.)
I would understand if Plex chooses not to address this. Iâm sure itâs not the most important thing in the queue. You might talk to the users in the other thread about how much itâs affecting them.
In my experience, thereâs always Too Much Work for any development team, and the challenge is prioritizing which backlog items (features and defects) to work on. We didnât put things on the queue if we were NEVER going to address them, but otherwise we did.
Iâm frustrated to feel like Iâve been âdeflectedâ:
The ripping must have been wrong
Just re-encode it, that fixes everything
Itâs an ffmpeg problem
Thereâs nothing Plex can do
Iâm sympathetic with #1 and #2; the same questions come up over and over again and thatâs annoying. I would go mad asking people to share their file names and logs. Iâm impressed yâall do it. I think we mostly got past that, eventually.
And thereâs so much angry negative âPlex is dumbâ â â â â on the forums lately. âPlex doesnât do anything that mattersâ and âPlex doesnât listen to what we wantâ and âPlex suxxxâ. It makes me sad to see it - the amount of vitriol. It must be exhausting. Again, my compliments.
That said, #3 and #4 are frustrating. Your responses to us were a real let-down.
Plex is a commercial product that incorporates an open-source application (FFmpeg). If Ford sells a car with exploding airbags, Ford resolves the issue, not Takata. When the space shuttle blew up, we blamed NASA, not Morton-Thiokol. (Edit: ugh, I sound ⊠I dunno. Sorry.)
(Yes, Plex is as important as Ford and NASA.)
I felt like you were saying the issue wasnât that important, AND that it was somebody elseâs problem, AND that Plex couldnât do anything about it.
Just hearing âOh hey, that looks like an issue, Iâll open something internally about it. Unless it becomes more common I canât promise that it will receive time & attention.â I would have been 80% satisfied.