News:

--

Main Menu

Help making a "custom" settings script

Started by Bagger, January 03, 2013, 07:19:55 PM

Previous topic - Next topic

Bagger

I am using Avidemux 2.6.0 r8356

Ive searched around on the internet, wiki pages etc and almost completed a " custom " setting script that works just cant get the last bit

Heres what I do

Load a video file into avidemux.
Set, video output,audio output and output format then proceed to configure the video output and filters to the way I want them.
I then File > Tinypy project > save as project.
next I open up the file that has just been created with notepad and edit out adm.loadvideo(sdfksjgfksgfksgfkjgsdf)
I then save it and put it in C:\Users\PCname\AppData\Roaming\avidemux\custom

I can then load all my settings up in one click in the custom menu.

The only problem being is when I load the file from the custom menu the Time line length is always the same length regardless of the actual video length.

So I found out its something to do with these lines
adm.clearSegments()
adm.addSegment(0, 0, 4468035055)
adm.markerA = 0
adm.markerB = 4468035055

Ive tried deleting them but then the script doesn't load any settings at all.

what do I do to make the video fill the timeline correctly

Thanks


Bagger

Sorted,
Seems that windows notepad was messing things up.
Opened the file in notepad++, deleted the above lines and now all is well.  :-[..... weird