Optimizing for Mobile results in high-bitrate 1080p file instead of lower-bitrate 720p file

For some reason when I try and optimise a 1080p movie for mobile it ends up producing a large 1080p version that is only slightly smaller than the original. You can see from the screenshot. Anyone else having this problem? No idea what’s causing it and no errors seem to be produced. Thanks in advance!

Server Version#: 1.28.2.6151
Player Version#: N/A

I can’t reproduce this on an x64 QNAP with PMS-1.28.2.6151
Would you be able to post the xml info and your setup?

I’ve got a generic Intel Core i5 NUC running Ubuntu 22.04.1. Nothing out of the ordinary. Here’s the media section of the XML. For some reason the optimise results in 1080p → 1080p. Weird.

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Movies" librarySectionUUID="3ca4664b-3f84-406a-884b-f2a81ce2d4c5" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1661864098">
<Video ratingKey="39795" key="/library/metadata/39795" guid="plex://movie/5d9f3e05b0262f001f6f50ff" studio="HBO Films" type="movie" title="Tour de Pharmacy" librarySectionTitle="Movies" librarySectionID="1" librarySectionKey="/library/sections/1" contentRating="Not Rated" summary="A mockumentary that chronicles the prevalence of doping in the world of professional cycling." rating="9.0" audienceRating="7.3" year="2017" tagline="Winning is in their blood. Among other things." thumb="/library/metadata/39795/thumb/1663229494" art="/library/metadata/39795/art/1663229494" duration="2359791" originallyAvailableAt="2017-07-08" addedAt="1662291006" updatedAt="1663229494" audienceRatingImage="rottentomatoes://image.rating.upright" ratingImage="rottentomatoes://image.rating.ripe">
<Media id="44024" duration="2359791" bitrate="10619" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="eac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="NTSC" videoProfile="high" title="Original">
<Part accessible="1" exists="1" id="44245" key="/library/parts/44245/1662290906/file.mkv" duration="2359791" file="/media/video/Movies/Tour de Pharmacy (2017)/Tour de Pharmacy - 2017.mkv" size="3132426231" container="mkv" videoProfile="high">
<Stream id="99268" streamType="1" default="1" codec="h264" index="0" bitrate="10619" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="29.970" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" scanType="progressive" width="1920" displayTitle="1080p (H.264)" extendedDisplayTitle="1080p (H.264)"> </Stream>
<Stream id="99269" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="6" bitrate="640" language="English" languageTag="en" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" displayTitle="English (EAC3 5.1)" extendedDisplayTitle="English (EAC3 5.1)"> </Stream>
<Stream id="99270" streamType="3" codec="srt" index="2" bitrate="0" language="English" languageTag="en" languageCode="eng" displayTitle="English (SRT)" extendedDisplayTitle="English (SRT)"> </Stream>
</Part>
</Media>
<Media id="44178" duration="2359791" bitrate="10198" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="aac" videoCodec="h264" videoResolution="1080" container="mp4" videoFrameRate="NTSC" optimizedForStreaming="1" proxyType="42" audioProfile="lc" has64bitOffsets="0" target="Optimized for Mobile" targetTagID="10490" videoProfile="high" title="Optimized for Mobile">
<Part accessible="1" exists="1" id="44399" key="/library/parts/44399/1663230172/file.mp4" duration="2359791" file="/media/video/Movies/Tour de Pharmacy (2017)/Plex Versions/Optimized for Mobile/Tour de Pharmacy (2017).mp4" size="3008079020" audioProfile="lc" container="mp4" has64bitOffsets="0" optimizedForStreaming="1" videoProfile="high">
<Stream id="99589" streamType="1" default="1" codec="h264" index="0" bitrate="9977" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="29.970" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" streamIdentifier="1" width="1920" displayTitle="1080p (H.264)" extendedDisplayTitle="1080p (H.264)"> </Stream>
<Stream id="99590" streamType="2" selected="1" default="1" codec="aac" index="1" channels="2" bitrate="211" language="English" languageTag="en" languageCode="eng" audioChannelLayout="stereo" profile="lc" samplingRate="48000" streamIdentifier="2" displayTitle="English (AAC Stereo)" extendedDisplayTitle="English (AAC Stereo)"> </Stream>
<Stream id="99591" key="/library/streams/99591" streamType="3" codec="srt" language="English" languageTag="en" languageCode="eng" format="srt" displayTitle="English (SRT External)" extendedDisplayTitle="English (SRT External)"> </Stream>
</Part>
</Media>

1920 x 1088 is the only thing that caught my eye.
Feel like attaching a server log while I try to simulate this?

“Optimize for Mobile” doesn’t mean “create a 720p version”.

If you want a 720p version, select “Custom” then you can pick the exact optimized version you want.

According to the documentation on this page (https://support.plex.tv/articles/213095317-creating-optimized-versions/) “Optimise for Mobile” does indeed imply 720p. Regardless, I also tried this with the Custom setting and explicitly defined 720p output and got the same result. It’s like it’s ignoring the resize and just passing thru the video. Would using the hardware transcoding option result in something like this perhaps? What should I look for in the log to tell if it’s purposely skipping resizing the video? All help greatly appreciated. :slight_smile:

If you reboot the server computer then use some Player to kick off an optimize that demonstrates the problem, then after 3-5min of that cancel the optimize, then download logs, you will find only a few log files have changed since the reboot. So that’s less to consider.

The primary log file used by the server is called Plex Media Server.log
In general I search for key words like ERROR, CRITICAL, or SQLITE.

You could start by searching for 1088 to get the general position of when it starts examining your original video.

OK, so I figured it out and the reason is because I am an idiot. I had disabled video stream transcoding because I thought that only affected transcoding on demand for streaming. I re-enabled it and everything works fine now. Good job me with my dumb brain.

I laughed too hard and woke someone up :slight_smile:

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