Code Monkey home page Code Monkey logo

scratchvideo's Introduction

Professional dumbass.

I don't finish most of my projects... That's all you need to know.

scratchvideo's People

Contributors

ivanikuv2 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

v1ctorio

scratchvideo's Issues

Add video support

Video support is still WIP, here is a TODO list, just to keep track. Feel free to comment stuffs

  • Structure code
  • Extract frames
  • Add frames to project
  • Link frames to an object (project.json)
  • Reempack project into sb3

Add audio support

Audio support TODO list:

  • Video support
  • Extracting WAV with ffmpeg (and adding it to the project)
  • Link WAV to an object (project.json)

Those icredibly annoying ID's Scratch implemented

I decided to keep track of the ID's problem in a separate issue, so here are some things I gathered from them

  • They're all composed of 32 characters + the filename regardless of the type
  • They're composed of random numbers and lowercase letters
  • Even though upon inspecting Scratch's source code and seeing that they're generated based on object properties, the Scratch engine somehow does not care if I change random characters and data isn't lost

After some further investigation the issue may not be directly related to the ID system, it turns out scratch does give error details in the console. This is the result of a hand-crafted injected png file into an sb3:

{
  "validationError": "Could not parse as a valid SB2 or SB3 project.",
  "sb2Errors": [
    {
      "keyword": "required",
      "dataPath": "",
      "schemaPath": "#/required",
      "params": {
        "missingProperty": "objName"
      },
      "message": "should have required property 'objName'"
    }
  ],
  "sb3Errors": [
    {
      "keyword": "pattern",
      "dataPath": ".targets[1].costumes[2].assetId",
      "schemaPath": "#/definitions/assetId/pattern",
      "params": {
        "pattern": "^[a-fA-F0-9]{32}$"
      },
      "message": "should match pattern \"^[a-fA-F0-9]{32}$\""
    }
  ]
}

Error: Invalid or unsupported zip format. No END header found

npm ERR! Error: Invalid or unsupported zip format. No END header found
npm ERR! at readMainHeader (C:\MyStuff\scratchvideo-master\node_modules\adm-zip\zipFile.js:107:10)
npm ERR! at new module.exports (C:\MyStuff\scratchvideo-master\node_modules\adm-zip\zipFile.js:19:3)
npm ERR! at new module.exports (C:\MyStuff\scratchvideo-master\node_modules\adm-zip\adm-zip.js:20:11)
npm ERR! at decompressZip (C:\MyStuff\scratchvideo-master\node_modules\ffmpeg-cli\lib\download.js:46:14)
npm ERR! at C:\MyStuff\scratchvideo-master\node_modules\ffmpeg-cli\lib\download.js:78:75
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:96:5)

2022-07-27T03_02_35_647Z-debug-0.log

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.