damonlynch / rapid-photo-downloader

Rapid Photo Downloader is the leading photo and video downloader for the Linux desktop.
https://damonlynch.net/rapid
GNU General Public License v3.0
112 stars 30 forks source link

Downloading .LRV and .GPR files from gopro camera #24

Open yuval-herman opened 3 years ago

yuval-herman commented 3 years ago

Currently the RPD software does not handle lrv and gpr files and writes a line in the error log. Is it possible to allow downloading unrecognized files in the preference menu? or even better to download them to another folder, the same way it is possible to download raw and jpg files to different folders?

damonlynch commented 3 years ago

I don't know what a LRV or GPR file is. I don't own a GoPro camera. Please either link to the documentation that describes exactly the their purpose, or describe it yourself. Without this information there is nothing I can do.

I have no plans to have Rapid Photo Downloader download unrecognized files.

yuval-herman commented 3 years ago

I see, the LRV extension stands for Low Resolution Video and is just a preview of the captured video. The LRV file is actually of less importance and I understand if you don't want Rapid Photo Downloader to download it. The GPR file however stands for General Purpose Raw and is an extension of the DNG format for action cameras. You can find more information about it here as well as it's GitHub repository here.

damonlynch commented 3 years ago

Thanks for that. Do both Exiv2 and ExifTool read and correctly report the GPR file metadata? At least one of these tools must be able to read the image metadata correctly. Please test this and carefully verify the results are correct.

yuval-herman commented 3 years ago

I would happily test for that but I'm not going to be in front of a computer for the next week at least... In the mean time if you want to test that yourself there are GPR file samples in the GPR repository, as for LRV files, it's no big deal so when I get back I will do whatever tests you need or provide sample files. Also for when I get back home in case that you can't test that yourself, what exactly do you mean by reading the metadata correctly? I know exiftool can read GPR metadata no problem as I have used it in my projects before.

jdeighton commented 3 years ago

I just downloaded exiftool 12.25 (current version) and it fully supports the GPR file to read the metadata. Sample output from exiftool below:

$exiftool GOPR0323.GPR ExifTool Version Number : 12.25 File Name : GOPR0323.GPR Directory : . File Size : 7.7 MiB File Modification Date/Time : 2021:04:22 05:23:54-05:00 File Access Date/Time : 2021:04:22 18:27:56-05:00 File Inode Change Date/Time : 2021:04:22 18:26:30-05:00 File Permissions : -rwxr-xr-x File Type : GPR File Type Extension : gpr MIME Type : image/x-gopro-gpr Exif Byte Order : Little-endian (Intel, II) Subfile Type : Full-resolution image Image Width : 5568 Image Height : 4176 Bits Per Sample : 16 Compression : JBIG B&W Photometric Interpretation : Color Filter Array Image Description : C:\DCIM\100GOPRO\GOPR0323.GPR Make : GoPro Camera Model Name : HERO9 Black Orientation : Horizontal (normal) Samples Per Pixel : 1 Planar Configuration : Chunky Software : HD9.01.01.52.00 Modify Date : 2021:04:22 10:23:53 Tile Width : 5568 Tile Length : 4176 Tile Offsets : 14622 Tile Byte Counts : 8025824 XMP Toolkit : XMP Core 5.5.0 CFA Repeat Pattern Dim : 2 2 CFA Pattern 2 : 0 1 1 2 Exposure Time : 1/9 F Number : 2.5 Exposure Program : Program AE ISO : 419 Date/Time Original : 2021:04:22 10:23:53 Create Date : 2016:03:25 15:55:23 Aperture Value : 2.4 Exposure Compensation : 0 Max Aperture Value : 2.4 Metering Mode : Average Light Source : Unknown Flash : No flash function Focal Length : 3.0 mm Focal Plane X Resolution : 72 Focal Plane Y Resolution : 72 Sensing Method : One-chip color area File Source : Digital Camera Scene Type : Directly photographed Exposure Mode : Auto White Balance : Auto Digital Zoom Ratio : 1 Focal Length In 35mm Format : 15 mm Scene Capture Type : Night Gain Control : None Contrast : Normal Saturation : Normal Sharpness : Hard DNG Version : 1.3.0.0 DNG Backward Version : 1.1.0.0 Unique Camera Model : GoPro HERO9 Black Localized Camera Model : GoPro HERO9 Black CFA Plane Color : Red,Green,Blue CFA Layout : Rectangular Black Level Repeat Dim : 2 2 Black Level : 0 0 0 0 White Level : 16383 Default Scale : 1 1 Default Crop Origin : 0 0 Default Crop Size : 5568 4176 Color Matrix 1 : 1.8331 -0.8166 -0.2478 0.1391 0.8961 -0.0367 0.0822 0.0662 0.2597 Color Matrix 2 : 1.0344 -0.421 -0.062 -0.2315 1.0625 0.1948 0.0093 0.1058 0.5541 Analog Balance : 1 1 1 As Shot Neutral : 0.493256 1 0.534447 Baseline Exposure : 0 Baseline Noise : 1 Baseline Sharpness : 1 Bayer Green Split : 0 Linear Response Limit : 1 Camera Serial Number : C3441325882709 Anti Alias Strength : 1 Shadow Scale : 1 Calibration Illuminant 1 : Tungsten (Incandescent) Calibration Illuminant 2 : D50 Best Quality Scale : 1 Original Raw File Name : RAW FILE Active Area : 0 0 4176 5568 Profile Name : GoPro HERO9 Black Profile Embed Policy : Allow Copying Opcode List 2 : GainMap, GainMap, GainMap, GainMap Noise Profile : 0.000654479896184057 2.04472996756522e-07 New Raw Image Digest : 00000000000000000000000000000000 Default User Crop : 0 0 1 1 Aperture : 2.5 CFA Pattern : [Red,Green][Green,Blue] Image Size : 5568x4176 Megapixels : 23.3 Scale Factor To 35 mm Equivalent: 5.0 Shutter Speed : 1/9 Circle Of Confusion : 0.006 mm Field Of View : 100.4 deg Focal Length : 3.0 mm (35 mm equivalent: 15.0 mm) Hyperfocal Distance : 0.60 m Light Value : 3.7

damonlynch commented 3 years ago

Please consider one of the following:

  1. Submitting a pull request that contains the code that addresses the issue, preferably by relying on Exiv2 before ExifTool (Exiv2 is much faster).
  2. If you can't write the required code, sponsoring a developer to do the work for you.

Thanks.

leodom commented 1 year ago
  1. Submitting a pull request that contains the code that addresses the issue, preferably by relying on Exiv2 before ExifTool (Exiv2 is much faster).

Hello, would you have an example for another raw import that could serve as a base to implement the downloading of the .gpr files ?