Author Topic: TinyPy:Exception Exception :(tp_load) cont get filesize BackTrack: File:py2bc.py  (Read 604 times)

PavelPesek

  • Newbie
  • *
  • Posts: 2
I am trying to re-use project file in the batch and getting the error:

TinyPy:Exception Exception :(tp_load) cont get filesize BackTrack: File:py2bc.py, line 50

The project file was created from a working project file, saved and slightly edited (
adm.loadVideo, adm.clearSegments, adm.markerA, adm.markerB were deleted).

When it is loaded in avidemux GUI, not in batch, then everything is working.

The bat file is:

SETLOCAL ENABLEDELAYEDEXPANSION

SET avidemux="C:\Program Files\Avidemux 2.6 - 64 bits\avidemux.exe"

SET project="D:\D200\10_MEDIA\HOME_DV\PROJECTS\DR_HOUSE\Dr_House_1701_06_128br_03.proj"

SET OUTDIR=T:\P02_DVD\DOCTOR_HOUSE

%avidemux% --nogui --load "Dr. House 03x10.avi" --run %project% --rebuild-index --save "%OUTDIR%\Dr. House 03x10_02.MP4" --quit

The point, why I want to use the batch, is that I want to change many similar files, not only one.

The interesting thing is that the same batch was working 1 month ago. But now, it is not.

I have a suspicion that some software update distorted some dependencies. I guess that it is in TinyPy, guess that file py2bc.py was changed.

I am attaching the project file. OS used is Win10 with automatic updates.

Can you please help.

Thanks, Pavel.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 5232
most likely this is not working:
Code: [Select]
--save "%OUTDIR%\Dr. House 03x10_02.MP4" --quit%OUTDIR% is a string and should not be in the quoted part (text)
most likely it should be
Code: [Select]
%OUTDIR% + "\Dr. House 03x10_02.MP4"the destination file would always be "Dr. House 03x10_02.MP4", if that is what you want.

PavelPesek

  • Newbie
  • *
  • Posts: 2
Strange, I modified the batch

REM SET avidemux="C:\Program Files\Avidemux 2.6 - 64 bits\avidemux_cli.exe"
SET avidemux="C:\Program Files\Avidemux 2.6 - 64 bits\avidemux.exe"
SET project="Dr_House_1701_06_128br_04.proj"

%avidemux% --load "Dr_House_03_10.avi" --run %project%  --save "Dr_House_03_10_01.MP4" --quit

And it works.

Hmm, but batch worked previously with %OUTDIR% without the problem.

But I have accept that project works. Strange.

Thanks a lot for help. Sorry to bother.
« Last Edit: January 10, 2017, 12:13:39 AM by PavelPesek »