Giter VIP home page Giter VIP logo

hatenatools's Introduction

hatenatools's People

Contributors

joshbarrass avatar pbsds avatar wyntrr-end avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hatenatools's Issues

flipnote export as mkv doesn't always create correct length video

In my testing (PPM.py), I found that because of the way ffmpeg is used with the -shortest flag when combining the BGM, if the BGM is shorter than the flipnote, then the video is cut off when the BGM ends, rather than when the flipnote ends. If the BGM is longer or the same length, then this works fine.

Simply removing the -shortest flag creates the opposite problem, where it works fine if the BGM is shorter or the same length as the flipnote, but if the BGM track is longer than the flipnote, then the video doesn't get appropriately trimmed and the end becomes somewhat glitched.

I think the ffmpeg encode duration for this step needs to be locked to the duration of the flipnote, rather than dependent on the length of the BGM.

Python3 version

It would be really nice to have a Py3 version of these files!

Right now, I was trying to use 2to3 on UGO.py but I always end up on this issue:
TypeError: sequence item 2: expected str instance, bytes found

Guess reverse engineering work doesn't like being automatically translated.

I did try to fix these, but with new issues appearing everytime, I just gave up.

upscaling frames from .ppm files

This isn't really an issue, but I modified PPM.py to allow for frames to be upscaled 6x from their native resolution of 256x192 to 1536x1152, which is triggered by command line flags. It's a bit slow due to multiple nested for loops, processing a little over 1 frame per second, but it allows exporting flipnotes that can be viewed much larger than the original size without excessive blurriness.
Is this worth adding to the project?

native frame:
test_normal

native frame zoomed to fit 1080p screen:
image

upscaled frame:
test_big

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.