Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe Premiere Pro Auto Shutdown PC after Encoding Done – Premiere Pro / Media Encoder

  • Auto Shutdown PC after Encoding Done – Premiere Pro / Media Encoder

    Posted by Marco Meswara on September 24, 2012 at 10:17 am

    Guys,

    I have developed a simple script ( batch file *.bat)) that will check if encoding is still being done ( every 60+ secs ) and if the process is over, it will shutdown the PC. I tried to keep the code very very simple so that others can improve it.

    For now , i have tested this on Windows 7 SP1 – 64 bits and it works well.

    Here is the code, copy and paste it into notepad – i named it AutoPowerOff-AdobeMediaEnCoder.bat

    …..code below ………

    @echo off

    echo.

    date /t

    time /t

    echo.

    :StartMonitoring

    echo.

    echo.

    echo.

    color 0f

    echo Start monitoring Adobe Media Encoding Process

    echo Check every 60 secs via KeepMonitoring

    ping 127.0.0.1 -n 60 > nul

    Goto Check

    :KeepMonitoring

    echo.

    echo.

    echo.

    color 0f

    echo Continue Monitoring Adobe Media Encoding Process – every 60s

    ping 127.0.0.1 -n 60 > nul

    Goto Check

    :Check

    echo.

    echo.

    echo.

    color 0e

    echo Checking If Encoding Process Over ?

    echo.

    echo.

    color 0a

    tasklist | find /i “PProHeadless.exe”

    IF ERRORLEVEL 1 GOTO AutoPowerOFF

    IF ERRORLEVEL 0 echo. && echo Encoding Still In Progress && GOTO KeepMonitoring

    :AutoPowerOFF

    echo.

    echo.

    echo.

    color 0c

    echo Process PProHeadless.exe does not exist anymore

    echo Assume Encoding DONE

    echo PC Poweroff Initiated

    echo.

    echo.

    echo ShutDown PC After 60 sec

    shutdown /s /t 60

    :END

    …. end of code …..

    If some of you can check it out on other platforms and report back, i can maintain this script/thread.

    Regards,

    Marco.

    Luca Terzi replied 10 years ago 8 Members · 15 Replies
  • 15 Replies
  • Steve Brame

    September 24, 2012 at 2:07 pm

    A worthy project. I already have an auto-shutdown app that I use, but I have to make a guess as to when a long encoding session might end before I have it shut down. This would eliminate that guesswork.

    However, I just tried, and your batch shut me down right in the middle of an encode.

    I’m also using Windows 7 64bit.

    ——————————————-
    “98% of all computer issues can be solved by simply pressing ‘F1’.”
    Steve Brame
    creative illusions Productions

  • Steve Brame

    September 24, 2012 at 2:12 pm

    Oops…ignore that. I’m an idiot. I was simply transcoding a group of MOV’s, not encoding from Premiere, in which case PProHeadless.exe wasn’t even running, so the batch wouldn’t be expected to function. I’ll give it a try the RIGHT way.

    ——————————————-
    “98% of all computer issues can be solved by simply pressing ‘F1’.”
    Steve Brame
    creative illusions Productions

  • Steve Brame

    September 24, 2012 at 2:29 pm

    OK…did it the right way, encoding a group of PPro sequences, and it worked!

    ——————————————-
    “98% of all computer issues can be solved by simply pressing ‘F1’.”
    Steve Brame
    creative illusions Productions

  • Marco Meswara

    September 25, 2012 at 7:53 am

    Awesome bro…Glad it worked…. 🙂

  • Marco Meswara

    September 25, 2012 at 9:51 am

    and just to make it easier for a newbie to understand ;

    1. Pls save the bat file on any drive.
    2. When you have started the encoding queue on Adobe Media Encoder, just go to where you kept the file, right click and run. I did it as Administrator.
    3. Note – Only works for encoding with Adobe Media Encoder. But as you can see, you can quickly modify for any other job.

    Regards,
    Marco.

  • Steve Brame

    September 25, 2012 at 2:41 pm

    And also, in case anyone didn’t pick up on my mistake above, it only works when encoding from Premiere with Adobe Media Encoder, or when encoding a Premiere Pro project from within Adobe Media Encoder.

    If you simply try to transcode a separate file outside of Ppro with AME, it wont work.

    ——————————————-
    “98% of all computer issues can be solved by simply pressing ‘F1’.”
    Steve Brame
    creative illusions Productions

  • Alex Tolo

    February 12, 2013 at 8:20 am

    Works perfect for me…Thank you!

  • Dwayne Parish

    December 2, 2013 at 12:31 am

    Just FYI it seems the latest Adobe Media Encoder released in CC doesnt seem to use pproheadless.exe anymore even when encoding from Premiere. It seems to use the main exe from the Adobe Media Encoder, which obviously doesnt close at the end of the queue. Any ideas on how to somehow still shutdown with this?

  • Arone Arone

    February 11, 2014 at 5:47 am

    Will it also work if I encode from After Effect with Adobe Media Encoder?

  • David Payne

    March 12, 2015 at 11:54 am

    I can’t believe they don’t add this as a checkbox in modern versions of AME…

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy