Debayer not applied through siril-cli

I got an “undebayerized” SER sequence from Firecapture.

It perfectly opens in Siril (when I check the Debayer box in first panel).

But when ever I use siril-cli on the same sequence to stack sum images, it does not “debayer” it and I obviously obtain a bad result.

Any suggestions?

you may have to convert the SER with debayer first, there is no equivalent to the checkbox in the CLI

And this is normal, because in CLI you cannot do on-the-fly.

arf thanks! but this is not exactly a good news to me

I’m trying to find a workaround, and I tested this script directly load the script menu, so through the Siril’s GUI:

requires 1.2.0
unselect . 1 138393
select . 1 1
select . 8 8
stack . sum -filter-included -out=img/seqselector.fit
load img/seqselector.fit
wavelet 6 2
wrecons 43.5 8.09 1.67 1 1 1
savetif img/seqselector1
close
load Jup_195330.ser
select 1 138393
unselect . 1 138393
select . 20008 20008
select . 20009 20009
stack . sum -filter-included -out=img/seqselector.fit
load img/seqselector.fit
wavelet 6 2
wrecons 43.5 8.09 1.67 1 1 1
savetif img/seqselector2
close

I basically use currently loaded sequence, I select best images in the beginning, then I stack, do the wavelets, close the sequence and reload it, and do the selection a bit later, with a new stacking.

As you can see, the SER loading failing from the script (this is why I use close in the script):

13:17:02: Running command: load
13:17:02: Setting CWD (Current Working Directory) to ‘/media/fred/Red2T/Captures/Jup/090124’
13:17:02: =========== SER file info ==============
13:17:02: for file ‘Jup_195330.ser’
13:17:02: image size: 528 x 498 (8 bits)
13:17:02: sensor type: RGGB
13:17:02: frame count: 138393
13:17:02: observer: gamma=50
13:17:02: instrument: ASI=ZWO ASI224MCtemp=10.3
13:17:02: telescope: fps=16.22gain=146exp=61.65
13:17:02: local time: 2024-01-09T17:42:24.822000
13:17:02: UTC time: 2024-01-09T17:42:24.755000
13:17:02: fps: 16.220
13:17:02: Timestamps in the SER file are correctly ordered.
13:17:02: ========================================
13:17:02: Sequence loaded: Jup_195330 (0->138392)
13:17:02: Opening Jup_195330.ser failed.
13:17:02: Error in line 11 (‘load’): generic error.
13:17:02: Exiting batch processing.
13:17:02: Closing sequence Jup_195330
13:17:03: Setting CWD (Current Working Directory) to ‘/media/fred/Red2T/Captures/Jup/090124’
13:17:03: Script execution failed.

But when I relaunch the very same load command from the GUI, it works:

13:17:27: Running command: load
13:17:27: Setting CWD (Current Working Directory) to ‘/media/fred/Red2T/Captures/Jup/090124’
13:17:27: =========== SER file info ==============
13:17:27: for file ‘Jup_195330.ser’
13:17:27: image size: 528 x 498 (8 bits)
13:17:27: sensor type: RGGB
13:17:27: frame count: 138393
13:17:27: observer: gamma=50
13:17:27: instrument: ASI=ZWO ASI224MCtemp=10.3
13:17:27: telescope: fps=16.22gain=146exp=61.65
13:17:27: local time: 2024-01-09T17:42:24.822000
13:17:27: UTC time: 2024-01-09T17:42:24.755000
13:17:27: fps: 16.220
13:17:27: Timestamps in the SER file are correctly ordered.
13:17:27: ========================================
13:17:27: Sequence loaded: Jup_195330 (0->138392)

Any idea there?