# MCEBuddy & postprocessing

**URL:** <https://forums.plex.tv/t/mcebuddy-postprocessing/198249>\
**Category:** Live TV & DVR\
**Tags:** livetv-dvr\
**Created:** [July 6, 2017, 9:31pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249 "2017-07-06T21:31:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 6, 2017, 9:31pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/1 "2017-07-06T21:31:38Z")

</div>

Has anyone gotten MCEBuddy & Plex DVR postprocessing working with the latest PMS version? (1.7.5+)

I’ve got a Hauppauge WinTV-quadHD card that seems to work well enough for recording, but the MCEBuddy postprocessing bombs when the job’s added via MCEBuddy command line from a batch script, even though running the conversion manually after the fact works just fine.

Thanks!

---

<div class="post-metadata">

**Author:** ![johnm\_ColaSC](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johnm_colasc/32/22053_2.png) [@johnm\_ColaSC](https://forums.plex.tv/u/johnm_ColaSC)\
**Post date:** [July 6, 2017, 9:58pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/2 "2017-07-06T21:58:39Z")

</div>

mcebuddy and post processing on 1.7.5 was working fine for me before I downgraded back to 1.6.1. Was your script expecting a ts file which was changed to mkv with 1.7.0?

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 6, 2017, 10:39pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/3 "2017-07-06T22:39:44Z")

</div>

> @johnm_ColaSC said:  
> mcebuddy and post processing on 1.7.5 was working fine for me before I downgraded back to 1.6.1. Was your script expecting a ts file which was changed to mkv with 1.7.0?

The script really just adds the recording to the MCEBuddy processing queue & starts the engine, and then the conversion job runs.

The conversion job (where I’m using “MKV unprocessed”) works when it runs manually, but not when it’s called via the script.

EDIT: I tweaked the script to match my specific paths, but the Reddit thread that I started with is here: [Reddit - Dive into anything](https://www.reddit.com/r/PleX/comments/52v7vd/guide_commercialfree_experience_with_plex_dvr/)

---

<div class="post-metadata">

**Author:** ![johnm\_ColaSC](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johnm_colasc/32/22053_2.png) [@johnm\_ColaSC](https://forums.plex.tv/u/johnm_ColaSC)\
**Post date:** [July 6, 2017, 11:37pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/4 "2017-07-06T23:37:28Z")

</div>

Since Plex now creates mkv files I’m surprised the manual process even works. Input file=mkv, output file=mkv would overwrite each other wouldn’t it? I use MP4 unprocessed and haven’t skipped a beat since update to mkv file. i downgraded to 1.6.1 because of issues with tuners and not being able to record more than 2 shows concurrently even though I have 9 tuners configured in DVR.

---

<div class="post-metadata">

**Author:** ![Wiidesire](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@Wiidesire](https://forums.plex.tv/u/Wiidesire)\
**Post date:** [July 6, 2017, 11:57pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/5 "2017-07-06T23:57:26Z")

</div>

> @johnm_ColaSC said:  
> Since Plex now creates mkv files I’m surprised the manual process even works. Input file=mkv, output file=mkv would overwrite each other wouldn’t it?

Correct. MCEBuddy then overwrites the original .mkv with the converted .mkv file because they have the same name. The archive function also doesn’t work anymore because it comes last in the process (after the file has been replaced).

Solution/workaround:  
[http://forums.plex.tv/discussion/comment/1445431/#Comment\_1445431](http://forums.plex.tv/discussion/comment/1445431/#Comment_1445431)

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 12:01am UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/6 "2017-07-07T00:01:51Z")

</div>

> @johnm_ColaSC said:  
> Since Plex now creates mkv files I’m surprised the manual process even works. Input file=mkv, output file=mkv would overwrite each other wouldn’t it? I use MP4 unprocessed and haven’t skipped a beat since update to mkv file. i downgraded to 1.6.1 because of issues with tuners and not being able to record more than 2 shows concurrently even though I have 9 tuners configured in DVR.

I assumed that it would overwrite, actually, since MCEBuddy copies the source file into a working directory, does its thing, and then copies the new file back into the original location (which is where I’d expect the overwrite to occur).

EDIT: Which sounds correct based on the comment from @Wiidesire … and thanks for the Reddit post & script BTW. 😄

---

<div class="post-metadata">

**Author:** ![Wiidesire](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@Wiidesire](https://forums.plex.tv/u/Wiidesire)\
**Post date:** [July 7, 2017, 12:09am UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/7 "2017-07-07T00:09:45Z")

</div>

> @MAScooby said:  
> EDIT: Which sounds correct based on the comment from @Wiidesire  
> The MCEBuddy developer also made a topic about this issue on their new forum, see here:  
> [Archiving when destination filename is exactly the same as the source filename - General Support / Questions - MCEBuddy](https://discussion.mcebuddy2x.com/t/archiving-when-destination-filename-is-exactly-the-same-as-the-source-filename/94)

> @MAScooby said:  
> and thanks for the Reddit post & script BTW. 😄  
> No problem 🙂 Please check your inbox.

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 12:59am UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/8 "2017-07-07T00:59:06Z")

</div>

@Wiidesire Got the Inbox message. All set. 😄

I’m not worried about archiving the original. My current setup uses NextPVR to record the file, then MCEBuddy grabs the recording, converts it, moves it into a Plex library, and deletes the original. That works flawlessly.

I’m setting up Plex for recording again now. I’ll post some MCEBuddy logs with the errors once I try another recording & conversion.

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 3:12am UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/9 "2017-07-07T03:12:01Z")

</div>

Ok, MCEBuddy log file of a failed conversion’s attached… I haven’t had a chance to look through it, but it seems to be the same behavior I’ve seen previously.

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 12:18pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/10 "2017-07-07T12:18:30Z")

</div>

I may have figured it out… It looks like the manually added file was being deleted before or in the middle of being processed. I expected that move would happen after conversion, but that may be the same issue you were referring to with archiving.

I turned the delete off in the General settings and removed the Destination in the conversion, at which point Comskip was able to remove the commercials, but the MKV file was left in the .grab folder tree & never showed up in my library (I figured Plex would move it after postprocessing, but maybe not).

I’ve added the Plex TV library as the Destination and I’m trying another recording now.

EDIT:

No luck. This time it appears to have processed the file, moved it into the working directory, and then the file just disappeared. What’s odd is that the destination was supposed to be E:\TV … The last file move entries in the log file are:

INFORMATION\> 2017-07-07T09:06:06 MCEBuddy.Engine.ConversionJob --\> Moving converted file to destination  
INFORMATION\> 2017-07-07T09:06:06 MCEBuddy.Engine.ConversionJob --\> Moving converted file E:\MCEBuddyTMP\working0\CBS This Morning (2012) - 2017-07-07 00 00 00 - Episode 07-07.mkv to E:\TV\CBS This Morning (2012) - 2017-07-07 00 00 00 - Episode 07-07.mkv

It looks like the original MKV was still sitting in the .grab folder tree.

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 1:58pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/11 "2017-07-07T13:58:33Z")

</div>

Went back through to reset my settings & I’m trying another recording.

I have a feeling I may have mixed up some of my NextPVR config with my Plex config, but here are the current settings:

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/a/9/a9d7cf3ab96a081ded7f8ee63d97cd6166839165.png)

---

<div class="post-metadata">

**Author:** ![johnm\_ColaSC](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johnm_colasc/32/22053_2.png) [@johnm\_ColaSC](https://forums.plex.tv/u/johnm_ColaSC)\
**Post date:** [July 7, 2017, 2:26pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/12 "2017-07-07T14:26:06Z")

</div>

Almost identical settings. About the only difference I see is that I use some custom file renaming to actually move the file into the appropriate library when mcebuddy completes. This causes Plex to add a line in the log that says something like “Post Processing Deleted The File - Silly Script” and Plex removes the entry from the recording schedule so I don’t see the item with the play button beside it.

![](https://global.discourse-cdn.com/plex/original/3X/c/c/cc3dbd376b579a08681d390bda7da5827dd613b8.jpg)

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 2:29pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/13 "2017-07-07T14:29:58Z")

</div>

> @johnm_ColaSC said:  
> Almost identical settings.

Ok, good deal… I’ll report back after the next recording. 😄

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 2:39pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/14 "2017-07-07T14:39:11Z")

</div>

@johnm_ColaSC did you set a destination directory, or is that not needed?

---

<div class="post-metadata">

**Author:** ![johnm\_ColaSC](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johnm_colasc/32/22053_2.png) [@johnm\_ColaSC](https://forums.plex.tv/u/johnm_ColaSC)\
**Post date:** [July 7, 2017, 3:05pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/15 "2017-07-07T15:05:42Z")

</div>

I do have Destination set to F:\

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 3:08pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/16 "2017-07-07T15:08:09Z")

</div>

> @johnm_ColaSC said:  
> I do have Destination set to F:\

Ok, thanks. I’ll give that a shot (E:\ in my case).

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 3:13pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/17 "2017-07-07T15:13:49Z")

</div>

Actually, that’s what I just tested. I think it may have worked except that it dropped the file into the Movies folder instead of the TV shows folder. Getting closer…

---

<div class="post-metadata">

**Author:** ![johnm\_ColaSC](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johnm_colasc/32/22053_2.png) [@johnm\_ColaSC](https://forums.plex.tv/u/johnm_ColaSC)\
**Post date:** [July 7, 2017, 3:23pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/18 "2017-07-07T15:23:34Z")

</div>

The full rename string I am using is:  
%ismovie%\<Movies%showname%,Recorded TV%showname%\Season %season%%showname%-S%season%##E%episode%##-%episodename%\>

The key is the metadata being identified as a movie or not. If movie it drops into my F:\Movies\ directory otherwise it drops into F:\Recorded TV. I have had a couple of shows that did not have season/episode information moved to my movie directory. Since they had no season/episode data coming from the guide I had to try to figure out what episode the show was, name it appropriately, and move to correct location. For example:

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/1/2/12a4a7f97a93ae72ea6fa63810d89fa0de5a4d2f.jpg)

This show is currently in my movies folder. Here is one in the Program Guide that will probably do the same thing.

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/b/0/b059bdd30bc993cc21f0005a0d827a590059dbd5.jpg)

---

<div class="post-metadata">

**Author:** ![MAScooby](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mascooby/32/15788_2.png) [@MAScooby](https://forums.plex.tv/u/MAScooby)\
**Post date:** [July 7, 2017, 3:32pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/19 "2017-07-07T15:32:17Z")

</div>

Yeah, here’s the string that I’m using:

%ismovie%\<Movies%showname% (%airyear%),TV%showname% (%premiereyear%)\Season %season%##%showname% - S%season%##E%episode%##\>

I randomly picked “Today” to record, and it identified it as a movie rather than a TV Show. I’m trying two more now to see if it works any better.

---

<div class="post-metadata">

**Author:** ![johnm\_ColaSC](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johnm_colasc/32/22053_2.png) [@johnm\_ColaSC](https://forums.plex.tv/u/johnm_ColaSC)\
**Post date:** [July 7, 2017, 3:43pm UTC](https://forums.plex.tv/t/mcebuddy-postprocessing/198249/20 "2017-07-07T15:43:43Z")

</div>

You might get duplicated years with %showname% (%airyear%) or %showname% (%premiereyear%). The year is included in the %showname% from what I have seen at least. All of my folders/filenames include the year.

![](https://global.discourse-cdn.com/plex/original/3X/a/e/ae356a89cd512d5371ccb04f414e87d58de45a8c.jpg)

![](https://global.discourse-cdn.com/plex/original/3X/7/3/731b1f8b659a0892da1985c09f14f76cf6f6f0a9.jpg)

[Next page](https://forums.plex.tv/t/mcebuddy-postprocessing/198249.md?page=2)
