Posts

Huawei Moving Picture / Momente Video Extraction

Huawei included a “Moving Picture” (german: “Momente”) feature like Apple has the “Live Photo” feature. This feature enables you to take pictures including a small video.

In contrast to Apples Live Photos the video is not saved on the device separately. The video is rather included in the image file behind the image. So I wrote a small python script to extract this video from the image.

The script can be found on github: https://github.com/Trekky12/moving-picture-extract

 

Extra tip:
The python script of jpbarrace is capable of extracting the EDOF and the unprocessed images  of pictures captured in the “wide aperture mode” (german: “Große Blende”)

Secure USB Power Supply

While reading about dangerous USB power supplies I decided to investigate the safety of the power supplies used by my wordclocks. I stumbled across the USB power supply tests of HJK and discovered a similiar power supply to the one I am currently using (ETA-U90EWE) which is according to the test result not that secure.

HJK saw a passed safety test for the Flypower PS10A050K2000EU so I decided to buy these. Unfortunately the reseller sent me the follow-up product: the Flypower PS10E050K2000EU. To make sure the new model also passed a safety test I contacted Flypower and they showed me the CE and GS safety test results. So I can confirm this follow-up model is also secure to operate.
They also showed me the CE and GS safety results for the next generation Flypower PS10J which should be also secure.

I disassembled the power supplies to make sure the short voltage distance is big enough. You can see the big distance on the Flypower PS10E (left) and a very bad distance on the ETA-U90EWE (right) on the images below.

 

 

Gamepad2Keyboard Mapper for Dosbox on the Raspberry Pi

To play some old computer games with RetroPie I installed retrosmc on my Raspberry Pi running OSMC.

I was trying to play the retro game “Wacky Wheels” with DOSBox. Unfortunately my USB Gamepads were not able to handle the configuration of the input. So I wrote a small python script which maps gamepad inputs to keyboard inputs.

The script is shown below. It is executed with the start-script of “Wacky-Wheels” in “/home/osmc/RetroPie/roms/pc”:

#!/bin/bash
python /home/osmc/joystick.py &
JOYSTICK_PID=$!
/opt/retropie/emulators/dosbox/bin/dosbox -c "mount c /home/osmc/RetroPie/roms/pc" -c "c:" -c "cd WACKY" -c "WW.EXE" -c "exit"
kill $JOYSTICK_PID

Also it is important to have joysticktype=none in your dosbox-SVN.conf