# Plex Media Server Integration

**URL:** https://discussion.mcebuddy2x.com/t/plex-media-server-integration/3521
**Category:** Plex
**Tags:** tweaking
**Created:** [March 30, 2020, 11:27pm UTC](https://discussion.mcebuddy2x.com/t/plex-media-server-integration/3521 "2020-03-30T23:27:00Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![Will\_Tschumy](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/w/ecc23a/32.png) [@Will\_Tschumy](https://discussion.mcebuddy2x.com/u/Will_Tschumy)
#### Post date: [April 23, 2020, 5:33pm UTC](https://discussion.mcebuddy2x.com/t/plex-media-server-integration/3521/9 "2020-04-23T17:33:45Z")

</div>

I haven’t played with it much beyond calling curl - I didn’t get it to work with a batch file, but I also didn’t try very hard.

This works:

```
[HEVC MKV]
Description=HEVC in MKV (H.265/AC3) conversion. Creates a smaller file (50% smaller than H.264) with comparable quality but very slow.
order=handbrake,ffmpeg
ffmpeg-general=-threads 0
ffmpeg-video=-ss 3 -vf yadif=0:-1:1,hqdn3d -vcodec libx265 -preset medium -x265-params crf=18 -map 0:v -sn
ffmpeg-audio=-acodec ac3 -ab 160k -map 0:a
ffmpeg-audioac3=-acodec ac3 -ab 256k -map 0:a
ffmpeg-ext=.mkv
ffmpeg-audiodelay=skip
handbrake-general=--decomb --loose-anamorphic --verbose=2
handbrake-video=--start-at duration:3 -e x265 --encoder-preset medium -q 18
handbrake-audio=-E ffac3 -R auto -B 160 -D 0 -a 1,2,3,4,5
handbrake-audioac3=-E ffac3 -R auto -B 256 -D 0 -a 1,2,3,4,5
handbrake-ext=.mkv
handbrake-audiodelay=skip
PreConversionCommercialRemover=true
PostCustomCommandPath=C:\Windows\System32\curl.exe
PostCustomCommandParameters=http://192.168.8.9:32400/library/sections/1/refresh?X-Plex-Token=<my plex token>
PostCustomCommandHangPeriod=30
PostCustomCommandCritical=false
PostCustomCommandUISession=false
PostCustomCommandShowWindow=false
PostCustomCommandExitCodeCheck=false
```

---

_[View the full topic](https://discussion.mcebuddy2x.com/t/plex-media-server-integration/3521)._
