in

andy vt's tools & blog

Flexibility isn't free

Unhandled Exception - Rename

Last post 03-10-2008 8:08 PM by nik. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-26-2008 5:48 PM

    • nik
    • Top 25 Contributor
    • Joined on 02-18-2007
    • Posts 47

    Unhandled Exception - Rename

    I had an instance where I was renaming dvrms files in the recorded TV directory to include episode name.  I encountered the following error... there must be situations where MCE sets episode to null (e.g. a movie). 

    Unhandled Exception: System.NullReferenceException: Object reference not set to
    an instance of an object.
       at Durrant.Plugins.RenameFile.Process()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
    ontextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

    Filed under:
  • 02-28-2008 5:37 PM In reply to

    Re: Unhandled Exception - Rename

    log and profile please.
    DVRMSToolbox, Recording Broker, LcdWriter, and more software
    babgvant.com
  • 03-10-2008 8:08 PM In reply to

    • nik
    • Top 25 Contributor
    • Joined on 02-18-2007
    • Posts 47

    Re: Unhandled Exception - Rename

    How do you paste a screen capture?   It's not obvious here.

     

    Anyway, I'll try my best since I couldn't figure out how to paste the screen image:

    I'm running a simple profile from a script.  The script cycles through the recorded TV directory and basically renames files to include episode name.  The providle is called "Renametoincludeepisode" and it has the following two lines:

    Throttle DVRMStoMPEG

    Rename File in Context["Input File"]

     

     

     

    For the rename configuration I've selected : Use Title, Use Subtitle, Overwrite when file exists and Continue on Fail

    Here's the script that calls the profile - it works 99% of the time except when I encounter this error: 

     

    @echo off

     

    set rectv=%~dpnx1

    set outdir=%~dpnx2

     

    rem del "%outdir%\*.mp4"

      

    :process_recfolder

      echo %DATE% %TIME% Starting

      for %%f in ("%rectv%*.dvr-ms") do (call :rename_files "%%f")

      echo Rename completed >> "%outdir%\export_to_ipod.log"

      for %%f in ("%rectv%*.dvr-ms") do (call :convert_file "%%f")

     goto :end

     

    :rename_files

       echo %DATE% %TIME% Renaming ---------------- >> "%outdir%\export_to_ipod.log"     

       "C:\Program Files\DVRMSToolbox\DVRMStoMPEG.exe" /if=%1 /of=%1 /act=Renametoincludeepisode /hideprogress >> "%outdir%\export_to_ipod.log" 

       goto :eof

     

    ************ And here's the log file  ****************************

    Mon 03/10/2008 21:14:41.26 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\Phineas and Ferb_DISN_08_03_2008_18_58_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 14516

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\Phineas and Ferb_DISN_08_03_2008_18_58_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0230000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0110000

    Total Duration = 00:00:01.0490000

    Mon 03/10/2008 21:14:42.72 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\Phineas and Ferb_DISN_09_03_2008_16_28_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 16184

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\Phineas and Ferb_DISN_09_03_2008_16_28_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0120000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0180000

    Total Duration = 00:00:01.0430000

    Mon 03/10/2008 21:14:44.05 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\Phineas and Ferb_DISN_09_03_2008_16_45_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 15376

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\Phineas and Ferb_DISN_09_03_2008_16_45_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0200000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0090000

    Total Duration = 00:00:01.0450000

    Mon 03/10/2008 21:14:45.42 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\Phineas and Ferb_DISN_10_03_2008_15_00_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 11700

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\Phineas and Ferb_DISN_10_03_2008_15_00_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0220000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0110000

    Total Duration = 00:00:01.0490000

    Mon 03/10/2008 21:14:46.78 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants - Jellyfishing -  Plankton.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 12532

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants - Jellyfishing -  Plankton.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0160000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Could not find file 'C:\Users\Public\Recorded TV\SpongeBob SquarePants - Jellyfishing -  Plankton.dvr-ms'.

    Duration = 00:00:00.0600000

    Total Duration = 00:00:01.0910000

    Mon 03/10/2008 21:14:48.18 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants - Krabby Road.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 14156

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants - Krabby Road.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0160000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Could not find file 'C:\Users\Public\Recorded TV\SpongeBob SquarePants - Krabby Road.dvr-ms'.

    Duration = 00:00:00.0550000

    Total Duration = 00:00:01.0850000

    Mon 03/10/2008 21:14:49.57 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants - Mermaid Man and Barnacle Boy III -  Squirrel Jokes.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 12832

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants - Mermaid Man and Barnacle Boy III -  Squirrel Jokes.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0190000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Could not find file 'C:\Users\Public\Recorded TV\SpongeBob SquarePants - Mermaid Man and Barnacle Boy III -  Squirrel Jokes.dvr-ms'.

    Duration = 00:00:00.1320000

    Total Duration = 00:00:01.1660000

    Mon 03/10/2008 21:14:51.05 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants - Nautical Novice.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 15936

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants - Nautical Novice.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0200000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Could not find file 'C:\Users\Public\Recorded TV\SpongeBob SquarePants - Nautical Novice.dvr-ms'.

    Duration = 00:00:00.0430000

    Total Duration = 00:00:01.0780000

    Mon 03/10/2008 21:14:52.46 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants - No Weenies Allowed -  Squilliam Returns.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 16472

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants - No Weenies Allowed -  Squilliam Returns.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0130000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Could not find file 'C:\Users\Public\Recorded TV\SpongeBob SquarePants - No Weenies Allowed -  Squilliam Returns.dvr-ms'.

    Duration = 00:00:00.1960000

    Total Duration = 00:00:01.2240000

    Mon 03/10/2008 21:14:53.97 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants - Not Normal -  Gone.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 16452

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants - Not Normal -  Gone.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0100000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Could not find file 'C:\Users\Public\Recorded TV\SpongeBob SquarePants - Not Normal -  Gone.dvr-ms'.

    Duration = 00:00:00.2190000

    Total Duration = 00:00:01.2450000

    Mon 03/10/2008 21:14:55.52 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants - Spongehenge.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 13536

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants - Spongehenge.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0210000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Could not find file 'C:\Users\Public\Recorded TV\SpongeBob SquarePants - Spongehenge.dvr-ms'.

    Duration = 00:00:00.1180000

    Total Duration = 00:00:01.1550000

    Mon 03/10/2008 21:14:56.95 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants - Spongicus.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 16288

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants - Spongicus.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0150000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Could not find file 'C:\Users\Public\Recorded TV\SpongeBob SquarePants - Spongicus.dvr-ms'.

    Duration = 00:00:00.0620000

    Total Duration = 00:00:01.0910000

    Mon 03/10/2008 21:14:58.34 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants - Survival of the Idiots -  Dumped.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 14916

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants - Survival of the Idiots -  Dumped.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0090000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Could not find file 'C:\Users\Public\Recorded TV\SpongeBob SquarePants - Survival of the Idiots -  Dumped.dvr-ms'.

    Duration = 00:00:00.0680000

    Total Duration = 00:00:01.0920000

    Mon 03/10/2008 21:14:59.71 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_07_58_07.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 15916

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_07_58_07.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0190000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0100000

    Total Duration = 00:00:01.0420000

    Mon 03/10/2008 21:15:01.03 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_08_30_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 16892

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_08_30_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0160000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0090000

    Total Duration = 00:00:01.0390000

    Mon 03/10/2008 21:15:02.35 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_09_58_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 15192

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_09_58_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0080000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0080000

    Total Duration = 00:00:01.0300000

    Mon 03/10/2008 21:15:03.67 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_10_58_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 12468

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_10_58_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0140000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0090000

    Total Duration = 00:00:01.0370000

    Mon 03/10/2008 21:15:05.00 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_15_28_03.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 17584

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_09_03_2008_15_28_03.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0220000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0090000

    Total Duration = 00:00:01.0470000

    Mon 03/10/2008 21:15:06.33 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_06_58_03.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 18496

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_06_58_03.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0210000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0100000

    Total Duration = 00:00:01.0450000

    Mon 03/10/2008 21:15:07.65 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_12_58_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 17596

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_12_58_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0080000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0090000

    Total Duration = 00:00:01.0310000

    Mon 03/10/2008 21:15:08.99 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_13_30_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 17736

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_13_30_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0130000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0090000

    Total Duration = 00:00:01.0360000

    Mon 03/10/2008 21:15:10.31 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_14_00_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 18520

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_14_00_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0130000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0090000

    Total Duration = 00:00:01.0370000

    Mon 03/10/2008 21:15:11.63 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_14_30_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 7084

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_14_30_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0090000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0090000

    Total Duration = 00:00:01.0320000

    Mon 03/10/2008 21:15:12.94 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_15_30_06.dvr-ms

    Processing actions, this may take some time!!

    Profile = Renametoincludeepisode

    ProcessId = 16424

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_15_30_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0120000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Duration = 00:00:00.0090000

    Total Duration = 00:00:01.0350000

    Mon 03/10/2008 21:15:14.25 Renaming ----------------

    InputFile=C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_18_58_06.dvr-ms

    Processing actions, this may take some time!!

    Meta data could not be read, some actions may not function properly

    Profile = Renametoincludeepisode

    ProcessId = 17588

    DvrmsToolbox Version: 1.2.1.0

    Throttle DVRMStoMPEG

    FWThrottle: C:\Users\Public\Recorded TV\SpongeBob SquarePants_NIK_10_03_2008_18_58_06.dvr-ms

    Waiting to process file

    Queue file

    Duration = 00:00:01.0140000

    Waiting to process...

    Processing now...

    Rename file in Context["InputFile"]

    Rename completed

     

     

     

     

     

Page 1 of 1 (3 items)
@2008 andy vt
Powered by Community Server (Non-Commercial Edition), by Telligent Systems