# Checking episode length?

**URL:** https://forums.plex.tv/t/checking-episode-length/623613
**Category:** Live TV & DVR
**Tags:** livetv-dvr, server-windows
**Created:** [August 14, 2020, 2:45pm UTC](https://forums.plex.tv/t/checking-episode-length/623613 "2020-08-14T14:45:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![solstyce9](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@solstyce9](https://forums.plex.tv/u/solstyce9)
#### Post date: [August 14, 2020, 2:45pm UTC](https://forums.plex.tv/t/checking-episode-length/623613/1 "2020-08-14T14:45:10Z")

</div>

Has anyone doing post processing implemented a duration check in their script?

I have spotty reception – great at night, but during the heat of the day it sometimes breaks up. Since most of my DVR activity is in the evening it’s usually not a problem. However, I do occasionally get recordings truncated early due to poor signal.

Since I transcode my recordings to save space, I don’t want to use CPU time to process truncated episodes since they typically are so noisy they’re not worth saving. I’m wondering if anyone has built a check in their postprocessing script to compare the recording length with the length in the EPG?

I’m guessing I could find a tool to tell me the length of the file (ffprobe or mediainfo) but I’ve no idea how to find the length from the EPG.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [November 12, 2020, 2:45pm UTC](https://forums.plex.tv/t/checking-episode-length/623613/2 "2020-11-12T14:45:15Z")

</div>

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