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

Started by PavelPesek, January 07, 2017, 01:38:23 AM

Previous topic - Next topic

PavelPesek

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

most likely this is not working:
--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
%OUTDIR% + "\Dr. House 03x10_02.MP4"
the destination file would always be "Dr. House 03x10_02.MP4", if that is what you want.

PavelPesek

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.

Dibi

Hello,
I am having a similar problem. Here is my batch file and I get the same exception. Can anyone help.?
set avidemux="C:\Program Files\Avidemux 2.7 - 64 bits\avidemux.exe"
set videocodec=Mpeg4 AVC (x264)
set audiocodec=AC3lav
for %%f in (*.avi) do %avidemux% --video-codec %videocodec% --audio-codec %audiocodec% --force-alt-x264 --load "%%f" --run DovAVtox264.py  --save "%%f.mp4" --quit

Jan Gruuthuse

try with:
set videocodec="x264"
audiocodec="LavAC3"


better set video and audio into script "DovAVtox264.py". load video into avidemux gui, load script, set video and audio to your specs, save script as DovAVtox264new.py.
Copy  audio and video settings into DovAVtox264.py

Dibi

Thanks Jan for your answer. I have tried your first proposal. The batch works but stops before each file processing with the same exception error after I click OK it runs for one cycle and then again. ?? One more thing, I get the files renamed *.avi.mp4 how do I get rid of the avi ?
Many thanks
Dibi

Jan Gruuthuse

Does this work?
for %%f in (*.avi) do %avidemux% --load "%%f" --run DovAVtox264.py --video-codec %videocodec% --audio-codec %audiocodec% --force-alt-x264  --save "%%f.mp4" --quit

sorry, can't help you further, no windows available.



Dibi


eumagga0x2a

Quote from: Dibi on November 08, 2017, 12:25:14 AM

set avidemux="C:\Program Files\Avidemux 2.7 - 64 bits\avidemux.exe"
set videocodec=Mpeg4 AVC (x264)
set audiocodec=AC3lav
for %%f in (*.avi) do %avidemux% --video-codec %videocodec% --audio-codec %audiocodec% --force-alt-x264 --load "%%f" --run DovAVtox264.py  --save "%%f.mp4" --quit


As Jan noted, the --load <full path> argument must come first.

Does it work without the --run DovAVtox264.py argument? If yes, have you tried to provide the full path to DovAVtox264.py?

Jan Gruuthuse

- delete .idx2 files between different avidemux updates.
- 2pass encoding? path not found 2nd pass data
- Diacritical Character in path / file name
- paths to deep into system
- videos processed on slow medium (usb 2, sd card, ...), process video on local hard disk (source/destination).
- single core/only one thread available on cpu
- ...

Dibi

Yes it works without the DovAVtox264.py. I tried to provide the full path but it`s the same stops after each cycle with the exception error and converts with the default parameters of x264, DovAVtox264 is being skipped and not executed. In DovAVtox264 I have x264 parameters and deinterlacing .

Jan Gruuthuse

Most likely some filter stacked on each other, won't work (deinterlace + something else).

eumagga0x2a

Please post the content of the DovAVtox264.py so that it would become possible to identify the error.