Author Topic: Chronos 1.4 RAW conversion tool - pyraw2dng  (Read 9322 times)

miloreid

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Chronos 1.4 RAW conversion tool - pyraw2dng
« Reply #45 on: November 09, 2018, 06:33:51 AM »
Hi thanks for your response,

that great that it now supports the formatting directly I had no idea. I just this minute got it working and thought I would write these very basic directions for anyone else that may need them

Capture raw file  - using 1st option on menu of chronos
Download and install latest version of python 2.7
Copy raw file and pyraw2dng.py file to a certain directory ie documents folder
Open terminal
navigate to the directory your files are stored at by typing the following
cd
Then hit spacebar, navigate to the folder where you files are in the finder and drag and drop into terminal after cd
So it should read something like
cd /users/name/documents
You will now be in the correct directory and need to run the script
./pyraw2dng.py -w 1280 -l 720 inputfilename.raw
it may say there is a permissions issue, in which case type in the following
chmod 777 pyraw2dng.py and hit enter
you may now find that it will come up with an error saying bad interpreter
type in the following
tr -d '\r' < pyraw2dng.py > newpyraw2dng.py
and change permissions again
Chmod 777 newpyraw2dng.py
Finally run the code by typing
./newpyraw2dng.py -w 1280 -l 720 inputfilename.raw
Making sure that you have written the correct proportions that match what you footage was shot at

Now there should be a folder created in the directory your files are in containing a dng for each frame of your video.

I hope that helps someone

Thanks

Milo

« Last Edit: December 05, 2018, 04:08:00 PM by miloreid »

Michael M.

  • Krontech
  • Newbie
  • *****
  • Posts: 24
    • View Profile
Re: Chronos 1.4 RAW conversion tool - pyraw2dng
« Reply #46 on: January 15, 2019, 11:07:35 AM »
Hi thanks for your response,

that great that it now supports the formatting directly I had no idea. I just this minute got it working and thought I would write these very basic directions for anyone else that may need them

Capture raw file  - using 1st option on menu of chronos
Download and install latest version of python 2.7
Copy raw file and pyraw2dng.py file to a certain directory ie documents folder
Open terminal
navigate to the directory your files are stored at by typing the following
cd
Then hit spacebar, navigate to the folder where you files are in the finder and drag and drop into terminal after cd
So it should read something like
cd /users/name/documents
You will now be in the correct directory and need to run the script
./pyraw2dng.py -w 1280 -l 720 inputfilename.raw
it may say there is a permissions issue, in which case type in the following
chmod 777 pyraw2dng.py and hit enter
you may now find that it will come up with an error saying bad interpreter
type in the following
tr -d '\r' < pyraw2dng.py > newpyraw2dng.py
and change permissions again
Chmod 777 newpyraw2dng.py
Finally run the code by typing
./newpyraw2dng.py -w 1280 -l 720 inputfilename.raw
Making sure that you have written the correct proportions that match what you footage was shot at

Now there should be a folder created in the directory your files are in containing a dng for each frame of your video.

I hope that helps someone

Thanks

Milo

Thank you for sharing this, Milo!

himikk

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Chronos 1.4 RAW conversion tool - pyraw2dng
« Reply #47 on: February 11, 2019, 01:13:38 AM »
I can't decode 12 bit compressed RAW format.
When trying to convert it the output DNG files contain color noise and sometimes something similar to out-of-sync frames.

Tested both options '-d' and '--oldpack'; resolution specified correctly; RAW files saved with firmware 0.3
« Last Edit: February 11, 2019, 01:24:02 AM by himikk »

skronstein

  • Krontech
  • Newbie
  • *****
  • Posts: 44
    • View Profile
Re: Chronos 1.4 RAW conversion tool - pyraw2dng
« Reply #48 on: February 11, 2019, 04:47:38 PM »
I can't decode 12 bit compressed RAW format.
When trying to convert it the output DNG files contain color noise and sometimes something similar to out-of-sync frames.

Tested both options '-d' and '--oldpack'; resolution specified correctly; RAW files saved with firmware 0.3

Are you able to use 0.3.1-RC1 instead? It can natively record videos in CinemaDNG format. http://forum.krontech.ca/index.php?topic=434.0

What do you mean by color noise?

The readme says that the old RAW 12bit format has bugs that cause color corruption:
The --oldpack option will attempt to decode the raw file as a 12-bit packed format generated from software versions v0.3.0 and older. However due bugs in this encoding format, there may be off-by-one pixel errors in the encoded files. This is most noticeable as colour corruption after demosiac.

himikk

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Chronos 1.4 RAW conversion tool - pyraw2dng
« Reply #49 on: February 18, 2019, 09:32:50 AM »
I can't decode 12 bit compressed RAW format.
When trying to convert it the output DNG files contain color noise and sometimes something similar to out-of-sync frames.

Tested both options '-d' and '--oldpack'; resolution specified correctly; RAW files saved with firmware 0.3

Are you able to use 0.3.1-RC1 instead? It can natively record videos in CinemaDNG format. http://forum.krontech.ca/index.php?topic=434.0

What do you mean by color noise?

The readme says that the old RAW 12bit format has bugs that cause color corruption:
The --oldpack option will attempt to decode the raw file as a 12-bit packed format generated from software versions v0.3.0 and older. However due bugs in this encoding format, there may be off-by-one pixel errors in the encoded files. This is most noticeable as colour corruption after demosiac.

Some footages already in RAW 12bit so it will be good to convert it but if it does not work out - nothing terrible.