avidemux with project file stopps in batch after 6 minutes

Started by NetAktiv, December 17, 2016, 03:15:33 PM

Previous topic - Next topic

NetAktiv


for %%f in (%infolder%\%infilter%) do %avidemux% --load "%%f" --run %projectfile%
--save "%outfolder%\%%~nf.%outextension%" --quit


and the content of the (very simple) project file is


adm = Avidemux()
adm.clearSegments()
adm.videoCodec("Xvid4")
adm.addVideoFilter("swscale", "width=640", "height=360", "algo=0", "sourceAR=1", "targetAR=1")
adm.audioClearTracks()
adm.audioAddTrack(0)
adm.audioCodec(0, "copy");
adm.audioSetDrc(0, 0)
adm.audioSetShift(0, 0,0)
adm.setContainer("AVI")


This works fine except not the complete video is vonverted, conversion stopps allways after 6:26 minutes and the created AVI output file seems to be correct. What is missing there?

Refards, Rainer


NetAktiv

Hello,

after some tests I found that it seems there was a problem with some commands not shown in the sample above. After removing all calls like


adm.clearSegments()
adm.addSegment(0, 0)
adm.markerA = 0
adm.markerB = xxx


the complete video was converted as expected

Jan Gruuthuse

Could be anything. Have you tried to just process that video into avidemux GUI?

Jan Gruuthuse

Quote from: NetAktiv on December 17, 2016, 03:52:33 PM
Hello,

after some tests I found that it seems there was a problem with some commands not shown in the sample above. After removing all calls like


adm.clearSegments()
adm.addSegment(0, 0)
adm.markerA = 0
adm.markerB = xxx


the complete video was converted as expected
Nice that you found solution.