Avidemux Forum

Avidemux => MacOSX => Topic started by: finmux on April 03, 2017, 11:56:39 AM

Title: BUG: CLI does not save
Post by: finmux on April 03, 2017, 11:56:39 AM
Avidemux2.6_r2017_03_29_3be36cbe029

/Applications/Avidemux2.6.app/Contents/MacOS/Avidemux2.6.app --output-format mp4 --quit --run project.py --save ./output.mp4
Title: Re: BUG: CLI does not save
Post by: eumagga0x2a on April 03, 2017, 12:14:22 PM
This definitely works fine on Linux (though using avidemux3_cli makes more sense here, eliminates also the need for --quit). Are you sure you are in a location where you have write permissions? Does

/Applications/Avidemux2.6.app/Contents/MacOS/Avidemux2.6.app --output-format mp4 --quit --run project.py --save ~/output.mp4

make any difference?

edit: in other words, are you aware of your location in the terminal? "./output.mp4" places output.mp4 into the current directory, "~/output.mp4" places it into your home directory.
Title: Re: BUG: CLI does not save
Post by: finmux on April 03, 2017, 12:39:50 PM
Quote from: eumagga0x2a on April 03, 2017, 12:14:22 PM

/Applications/Avidemux2.6.app/Contents/MacOS/Avidemux2.6.app --output-format mp4 --quit --run project.py --save ~/output.mp4

make any difference?


Actually I tried also absolute path. Using tilde - no difference. Weird thing is, the project is very simple and works like a charm, if I push save from GUI.

Does this log say anything useful?

http://peg.gd/czy (http://peg.gd/czy)
Title: Re: BUG: CLI does not save
Post by: mean on April 03, 2017, 12:48:22 PM
Commands are evaluated from left to right
so
--output-format mp4 --quit --run project.py --save ~/output.mp4

=> quit immediately

Better to use
--output-format mp4  --run project.py --save ~/output.mp4 --quit

No cli on osx by default, due to the way it's packaged
Title: Re: BUG: CLI does not save
Post by: eumagga0x2a on April 03, 2017, 12:53:37 PM
Oh, I see, thanks. Interesting enough, while the GUI in fact closes immediately, the encoding dialog stays open till the encoding is complete on Linux.
Title: Re: BUG: CLI does not save
Post by: finmux on April 03, 2017, 02:14:13 PM
Quote from: mean on April 03, 2017, 12:48:22 PM
Commands are evaluated from left to right
so
--output-format mp4 --quit --run project.py --save ~/output.mp4

=> quit immediately

Better to use
--output-format mp4  --run project.py --save ~/output.mp4 --quit

No cli on osx by default, due to the way it's packaged

Still no luck. By the way "--quit" does not do anything. GUI has to be closed by hand. Can someone confirm that on mac scripts+cli works? I have tried in two different machines. Last test was on up-to-date Sierra...
Title: Re: BUG: CLI does not save
Post by: mean on April 03, 2017, 02:19:22 PM
Could you repost the output when you put the parameters in the right order ?
The one provided above exits immediately as expected
Title: Re: BUG: CLI does not save
Post by: finmux on April 03, 2017, 02:48:38 PM
Here you go. Different machine. Sierra onboard...

http://peg.gd/czD (http://peg.gd/czD)

Title: Re: BUG: CLI does not save
Post by: eumagga0x2a on April 03, 2017, 04:10:40 PM
Looks like no parameters are passed to the application at all.
Title: Re: BUG: CLI does not save
Post by: finmux on April 03, 2017, 04:15:49 PM
Quote from: eumagga0x2a on April 03, 2017, 04:10:40 PM
Looks like no parameters are passed to the application at all.

True indeed. This works:


export FONTCONFIG_FILE=/Applications/Avidemux2.6.app/Contents/Resources/fonts/fonts.conf
cd /Applications/Avidemux2.6.app/Contents/Resources/bin
./avidemux --run /Volumes/BIGSTORE3/script.py --save ~/test.mp4
Title: Re: BUG: CLI does not save
Post by: mean on April 03, 2017, 05:15:06 PM
ah yes , the small shell script that does the trampoline inside the .App does not forward the parameters most probably