Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - petabyte

Pages: [1]
General Chat / New PTP Camera Controller App for Android
« on: September 16, 2022, 03:21:50 AM »
I've been working on a PTP (Picture Transfer Protocol) library in C lately, with the main intent of making a DSLR controller Android app out of it.

Features that will come in the first release:
- Get Live EOS viewfinder image (can't use while recording)
- Interface with ML - Live screen data (320x240, see all Canon menus and ML menus while recording RAW or MOV)
  Not a solid replacement for HDMI, but useful (in case you don't have a HDMI adapter, or it blocks the USB port)
  Currently 15fps - should be possible to optimize (see
- Scripting in Javascript (scripts can run on demand or in background)
- Get live aperture+ISO+shutter speed+image format+battery
- Raise flash
- Take pictures and do BULB shots
- Image/File explorer
- Extensive settings and customization
- Plugins/mods/scripts written in Javascript (run on demand or in background, can modify UI)
- Script generator (timelapse)

Here are features I'll probably add in the future, other than the typical features you'd expect in a camera app:
- Sync camera video start time with phone, use internal phone mic as camera mic
- ML Like overlays over live view
Looking for suggestions :) - I only do astrophotography with my camera, so the feature set will be biased.

- The app will not only run on Android, but Linux too (as a web server). It would be possible to connect a Raspberry Pi to your DSLR and control your camera from inside (or technically, anywhere in the world)
- iOS support is not out of the question, but it would be a learning curve. I've never used an modern Apple device apart from when I fixed them, and I don't know how iOS apps are made.
- It's worth noting that the PTP library I made is very portable (and open source, and can easily be compiled and ported to different platforms.
- The user interface for the app is written in HTML/CSS/JS and is layered over a graphics canvas, where the liveview is drawn. The app is mostly C and Javascript. Under 500 lines of Java code is required the the entire app to work.

General Development / Translating Menus
« on: September 03, 2021, 05:34:53 AM »
A while ago I made a proof of concept patch for a Spanish translation of Magic Lantern.
Today I converted it to a module that should work on all versions of ML.

Here it is:

Of course, it's very unfinished and unpolished, but I think this could be useful.

Public Volunteer Translation:

General Development / Magic Lantern USB Installation Tool
« on: July 18, 2021, 01:14:50 AM »

MLinstall is a Windows/Linux utility that makes it easier to install Magic Lantern.
  • Enable and disable bootdisk via USB
  • Write and destroy card boot flags without formatting card
  • Works on FAT16, FAT32, and ExFAT
  • Run EvProcs (with parameters) via USB
  • App Store - Installs modules into card from online database
  • Experimental one click ML install


Windows Users:
You will need to run Zadig and install libusb0.

It's a good idea to revert the changes when you are done:

Old post:
I've been working on a utility that should help with installing Magic Lantern.
Source code:

It currently can:

- Run Canon event procedures:
Based on some research in, I've
gotten Canon's `0x9052` PTP command to work properly. This allows for
commands like "EnableBootDisk" and "DisableBootDisk" to be run via PTP.
I think this command is standard on almost all Canon cameras, so it
could possibly replace custom firmware files. (?)

- Card Tools:
I've also added a card flag enabler (bootdisk, canon basic), and an
option to disable them without reformatting card.
(just writes an underscore on the first character of each)

Modules Development / ML Tetris (
« on: May 26, 2021, 02:46:14 AM »
Source code:

Of course, I was too lazy to actually write the game myself, so I ported somebody
else's code. (, GPL3)


Pages: [1]