Is plex supposed to transcode everything now?

When I watch from my pc, the stream is being transcoded every time. Any ideas? It shouldnt transcode if it isnt needed. My machine can play the ts video fine without it. I could understand this if I was remote. Am I missing a setting somewhere? I have pretty much scoured them all.

-Casey

Running ubuntu 16.04 and latest plex version. Also noticed it with the prior version as well.

-Casey

Pretty sure it’s the ‘Auto Bitrate’ option. Try turning it off and see if it helps.

Also, get Plexpy. You’ll thank me.

Very cool tool. Thanks for that. I hadnt seen that yet.

I dont have an auto setting. I am also accessing my machine on the same local network.

This is a .ts (raw) mpeg 2 file. I could understand this one being transcoded locally.

This is a much lower quality mp4 file and there is no reason at all for a transcode to take place.

So here is the stats from the mp4 convesion. It was converted from HVEC to H264
I do all my conversions in HVEC because I use hardware encoding and it cuts down the time and file size a bunch.

Ok, I just tried IE and it through an error saying that streaming this media type is unsupported. So did something get changed in chrome?

@casedog21 said:
So here is the stats from the mp4 convesion. It was converted from HVEC to H264
I do all my conversions in HVEC because I use hardware encoding and it cuts down the time and file size a bunch.

Are you converting from HEVC to H264 or the other way around? Your file shows it is HEVC. It also looks like you are using Plex Web. Browsers can’t handle HEVC video.

Its funny I just came here for the same thing. Before I thought my wife’s Roku 4 was always transcoding DTS and AC3 instead of using the AAC track I have in my files also. But tonight on my Roku 4 I noticed it says what is getting transcoded. Mine says copying DTS audio and transcoding h.264. Which is nuts the Roku 4 can play that format. I also have bitrate on local network set to original. But Yes it seems it wants to transcode everything. If it h.265 is the only thing that direct plays for me now, I think.

Not all h264 is the same. There may be something within the h264 that is not supported. Please provide the XML for that video. Also check if you’ve set a limit on the server. That overrides the local client setting.

@MovieFan.Plex said:

@casedog21 said:
So here is the stats from the mp4 convesion. It was converted from HVEC to H264
I do all my conversions in HVEC because I use hardware encoding and it cuts down the time and file size a bunch.

Are you converting from HEVC to H264 or the other way around? Your file shows it is HEVC. It also looks like you are using Plex Web. Browsers can’t handle HEVC video.

My files are in HEVC. My browsers can play them just fine. They always have.
Same with the Roku. It plays them fine as well. No transcoding.
I rolled back to 1.8 something and now they play correctly again.

-Casey

@MovieFan.Plex said:
Not all h264 is the same. There may be something within the h264 that is not supported. Please provide the XML for that video. Also check if you’ve set a limit on the server. That overrides the local client setting.

All of my videos are h.265 and the server is transcoding them to h.264. It worked fine before the new web/player interface in the past release or two. I rolled back to 1.8 something and it works as it did before.

My process essentially is this.

Record the show.
At night MCEBuddy picks up the show
Copies it to another machine that is watching the plex server.
Converts it with hardware encoding using FFMPEG and NVIDIA 970
Puts it back and deletes the original TS file.
All of my files are converted the same format.

Where is the xml file that I would need to grab?

-Casey

@MovieFan.Plex said:
Not all h264 is the same. There may be something within the h264 that is not supported. Please provide the XML for that video. Also check if you’ve set a limit on the server. That overrides the local client setting.

I have also thoroughly checked for any limitations either in the player, transcoder, and any other server settings.
Not sure what the deal is. I appreciate you guys looking into this.

Here are the FFMPEG settings I am using as well for the conversion. I have been using these for the past year with no issues until just recently.

order=ffmpeg,handbrake
ffmpeg-general=-threads 0
ffmpeg-video=-ss 3 -vf yadif=0:-1:1,hqdn3d -vcodec nvenc_hevc -preset medium -x265-params crf=18 -map 0:v -sn
ffmpeg-audio=-acodec libfdk_aac -ab 128k -cutoff 18000 -map 0:a
ffmpeg-audioac3=-acodec libfdk_aac -ab 160k -cutoff 18000 -map 0:a
ffmpeg-ext=.mp4
ffmpeg-audiodelay=skip

: 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 11 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 h 50 min
Bit rate : 6 000 kb/s
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.359
Stream size : 6.97 GiB (72%)
Title : HQMi encode
Writing library : x264 core 133 r2334 a3ac64b
Encoding settings : cabac=1 / ref=11 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=64 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=9 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=6000 / ratetol=1.0 / qcomp=0.65 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Here is one of my files that it has to encode. They are older files last time I just re-encoded to h265 to clear it up. But if all my old Wd Tv Live can play these the Roku 4 should laugh at them. Plus this used to not happen. It has only started within the last few updates, oh and when the Roku 4 was first released because Plex did not support is very well yet.

I suggest downloading the plex media player app instead using web player. Really… new web player is buggy as hell…
AND YES… web browsers DOESNT support all kind of codecs as media players do, specially if you are using hevc… wth.

I have a similar issue only with the app on iOS 11. A few select HEVC mp4 files will transcodes only when on cellular data even when all the quality settings are set to max and the play smaller videos at original quality is on. Now when on WiFi it never transcodes. Why would it transcode when it doesn’t need to. Any suggestions ? Also they are encoded with the fourcc being hvc1 as apple doesn’t support any other fourcc like hev1
And for some odd reason I can re encode some of them using a different source and then it will direct play over cellular data. Any reason why this would happen ?

@casedog21 said:

@anon18523487 said:
Not all h264 is the same. There may be something within the h264 that is not supported. Please provide the XML for that video. Also check if you’ve set a limit on the server. That overrides the local client setting.

All of my videos are h.265 and the server is transcoding them to h.264. It worked fine before the new web/player interface in the past release or two. I rolled back to 1.8 something and it works as it did before.

The Plex Web App has never supported HEVC. I don’t know how you are getting it to direct play on PMS 1.8. Can you provide a screenshot of the Now Playing page while playing an HEVC file and it’s XML?

You can get the XML by following this guide. https://support.plex.tv/hc/en-us/articles/201998867-Investigate-Media-Information-and-Formats

@Darkzoid said:
Here is one of my files that it has to encode. They are older files last time I just re-encoded to h265 to clear it up. But if all my old Wd Tv Live can play these the Roku 4 should laugh at them. Plus this used to not happen. It has only started within the last few updates, oh and when the Roku 4 was first released because Plex did not support is very well yet.

Those WD boxes were awesome. They would play almost anything you throw at it. Too bad they never opened the box to allow 3rd party apps. That thing would have been an amazing Plex client.

The Roku’s, although very good, still don’t support everything. My guess why it is transcoding would be:

Format settings, ReFrames : 11 frames

The Roku allows a maximum of 8 for 720p videos.

@MovieFan.Plex said:

@Darkzoid said:
Here is one of my files that it has to encode. They are older files last time I just re-encoded to h265 to clear it up. But if all my old Wd Tv Live can play these the Roku 4 should laugh at them. Plus this used to not happen. It has only started within the last few updates, oh and when the Roku 4 was first released because Plex did not support is very well yet.

Those WD boxes were awesome. They would play almost anything you throw at it. Too bad they never opened the box to allow 3rd party apps. That thing would have been an amazing Plex client.

The Roku’s, although very good, still don’t support everything. My guess why it is transcoding would be:

Format settings, ReFrames : 11 frames

The Roku allows a maximum of 8 for 720p videos.

Thanks that answers it for me than. Just taking me forever to move everything to h.265.
I had every WD TV up to the release of the Roku 4 for h.265 support. But will never look back now. I still have one tied into my plex network but copying over to the storage drives on it is painfully slow.

@MovieFan.Plex said:

@casedog21 said:

@MovieFan.Plex said:
Not all h264 is the same. There may be something within the h264 that is not supported. Please provide the XML for that video. Also check if you’ve set a limit on the server. That overrides the local client setting.

All of my videos are h.265 and the server is transcoding them to h.264. It worked fine before the new web/player interface in the past release or two. I rolled back to 1.8 something and it works as it did before.

The Plex Web App has never supported HEVC. I don’t know how you are getting it to direct play on PMS 1.8. Can you provide a screenshot of the Now Playing page while playing an HEVC file and it’s XML?

You can get the XML by following this guide. https://support.plex.tv/hc/en-us/articles/201998867-Investigate-Media-Information-and-Formats

I apologize. You are indeed correct that it was transcoding the HEVC files. I perceived it as no transcoding because the playback said (original format) on the settings for the videos I was watching.

That being said though on my machine the seek/load times were almost instantaneous until the new web player came out. I have windows 7 on my home machine so I do not have access to the webplayer as I do on my windows 10 laptop.
The load times on the Web player , plex app, and the Roku have slowed down significantly since the update. My Galaxy S8 however stayed the same in load times.

Cpu usage is much higher than it was when using the 1.8 versions for a slower result. If you look at my original post I have plenty of cores to get the job done. 24 cores / 16 gig of ram in a Ubuntu 16.04.3 running SSD for the OS drives and an 8 drive ZFS array for the Plex storage.

What can I gather up for you log-wise? XML for a few files and what else?

-Casey

The best logs would be from PMS and your client after starting playback so I can see why it’s taking so long to load.