Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: mb7169 on November 22, 2013, 10:57:17 PM

Title: Avidemux 2.6(.6) does not run projects
Post by: mb7169 on November 22, 2013, 10:57:17 PM
Hi,
I have problems to run projects from avidemux 2.6(.6) on h.264 videos on Linux. I can load and cut the video in avidemux, select one audiotrack and save the file as mp4 container by hand. So I have a workaround, but I like to save these settings as spidermonkey (or tinypy) project and run the (unchanged in this example) projects afterwards. In 2.5 this works for mpeg2 videos.
Skript:

//AD  <- Needed to identify //
//--automatically built--


adm.loadVideo("/tmp/testfile/testfile.TS4");
adm.clearSegments();
adm.addSegment(0, 128290244, 655940000);
adm.markerA = 0;
adm.markerB = 655940000;
adm.videoCodec("Copy");
adm.audioCodec(0, "copy");
adm.setContainer("MP4V2", "optimize=0", "add_itunes_metadata=0");


avidemux3_cli --run testfile_sm.proj --save testfile_cut_sm.mp4

Unfortunately this does not work at all. No output file is written. The Log is in the attachment.

Any suggestions ?
Title: Re: Avidemux 2.6(.6) does not run projects
Post by: mean on November 23, 2013, 06:59:26 AM
call your project foobar.py, the .py is important
Title: Re: Avidemux 2.6(.6) does not run projects
Post by: mb7169 on November 25, 2013, 09:02:35 PM
Hi,
good tip ! If I use tinypy projects with a suffix of py it works !

Thanks a lot !