Pablo Guerrero
New Member
- Joined
- Apr 11, 2017
- Messages
- 14
- Reaction score
- 3
- Country
- Switzerland
Hi all,
I finally managed to get some basic raw support on the Yi 4k. I did it some time ago but I think someone else could be interested.
First, you need to create an autoexec.ash file on the root of the memory card with this content:
t app test enable_rawcap 1
t app test enc stillrawcap 1 0
The first line enables capturing in raw (and raw only, no jpeg is created when the shutter is pressed).
The second line disables the creation of multiple Ituner files. These files are really interesting, but you probably don't want them for all your pictures.
Once you have that you can reboot the camera and take some pictures. The raw files will be on the root of the SD with a name like StillRawCap_0001.RAW
These files cannot be opened directly, you need to convert them first to DNG using raw2dng tool from https://github.com/wildstray/raw2dng
You will need a custom .ini file for the yi 4k camera. Create a file named raw2nef.ini with this line:
24000000, 0, 4000, 3000, 7, 8000, 16, 4, YI4k
Then use the software with -YI4k to convert to DNG.
As a jpeg is not created along with the raw file, we cannot include any exif information. This creates problems with Darktable, the raw software I use. But you can convert the DNG to tiff using dcraw without any problems.
I would love to hear from you if you try it or if you discover any ways to improve it. And ask about any detail of the process you don't understand.
Cheers,
Pablo
PS1: Some help from the commands
Usage: t app test enc stillrawcap [Cmpr][DumpItuner]
Cmpr:0 : Normal Raw, 1 : Compress Raw.
DumpItuner: Enable dump ituner or not
t app test enc stillrawcap 1 0
Cmpr = 1 doesn't compress. Test with 0
DumpItuner = 0 avoids the extra files
t img -rawenc [filepath] : raw encode flow
filepath = file path for configuration file
The first command should enable raw compressión, but is not working for me, it just avoids the ituner files. The second I didn't try but seems related, and it might be a way to configure something on the raw file.
PS2: Bonus command, you can use t ipc rpc clnt exec1 'touch /tmp/SD0/foo' to run commands on the linux OS of the camera from autoexec.ash
I finally managed to get some basic raw support on the Yi 4k. I did it some time ago but I think someone else could be interested.
First, you need to create an autoexec.ash file on the root of the memory card with this content:
t app test enable_rawcap 1
t app test enc stillrawcap 1 0
The first line enables capturing in raw (and raw only, no jpeg is created when the shutter is pressed).
The second line disables the creation of multiple Ituner files. These files are really interesting, but you probably don't want them for all your pictures.
Once you have that you can reboot the camera and take some pictures. The raw files will be on the root of the SD with a name like StillRawCap_0001.RAW
These files cannot be opened directly, you need to convert them first to DNG using raw2dng tool from https://github.com/wildstray/raw2dng
You will need a custom .ini file for the yi 4k camera. Create a file named raw2nef.ini with this line:
24000000, 0, 4000, 3000, 7, 8000, 16, 4, YI4k
Then use the software with -YI4k to convert to DNG.
As a jpeg is not created along with the raw file, we cannot include any exif information. This creates problems with Darktable, the raw software I use. But you can convert the DNG to tiff using dcraw without any problems.
I would love to hear from you if you try it or if you discover any ways to improve it. And ask about any detail of the process you don't understand.
Cheers,
Pablo
PS1: Some help from the commands
Usage: t app test enc stillrawcap [Cmpr][DumpItuner]
Cmpr:0 : Normal Raw, 1 : Compress Raw.
DumpItuner: Enable dump ituner or not
t app test enc stillrawcap 1 0
Cmpr = 1 doesn't compress. Test with 0
DumpItuner = 0 avoids the extra files
t img -rawenc [filepath] : raw encode flow
filepath = file path for configuration file
The first command should enable raw compressión, but is not working for me, it just avoids the ituner files. The second I didn't try but seems related, and it might be a way to configure something on the raw file.
PS2: Bonus command, you can use t ipc rpc clnt exec1 'touch /tmp/SD0/foo' to run commands on the linux OS of the camera from autoexec.ash
Last edited: