{"id":17230655,"url":"https://github.com/jaames/flipnote-video","last_synced_at":"2025-04-14T01:42:40.001Z","repository":{"id":40932741,"uuid":"201789491","full_name":"jaames/flipnote-video","owner":"jaames","description":"Command-line tool and Node.js library for converting Flipnote Studio and Flipnote Studio 3D animations to video","archived":false,"fork":false,"pushed_at":"2022-06-22T16:43:56.000Z","size":47,"stargazers_count":10,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T15:52:36.593Z","etag":null,"topics":["ffmpeg-command","flipnote","flipnotestudio","kwz","nintendo-3ds","nintendo-dsi","nintendo-hacking","ppm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaames.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-11T16:35:20.000Z","updated_at":"2024-01-26T01:14:42.000Z","dependencies_parsed_at":"2022-09-20T19:52:47.802Z","dependency_job_id":null,"html_url":"https://github.com/jaames/flipnote-video","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaames%2Fflipnote-video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaames%2Fflipnote-video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaames%2Fflipnote-video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaames%2Fflipnote-video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaames","download_url":"https://codeload.github.com/jaames/flipnote-video/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809044,"owners_count":21164895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffmpeg-command","flipnote","flipnotestudio","kwz","nintendo-3ds","nintendo-dsi","nintendo-hacking","ppm"],"created_at":"2024-10-15T04:53:38.724Z","updated_at":"2025-04-14T01:42:39.980Z","avatar_url":"https://github.com/jaames.png","language":"JavaScript","readme":"## flipnote-video\n\nA Node.js library to convert Flipnotes to video\n\n## Prerequisites\n\n* [Node.js environment](https://nodejs.org) \n* [FFmpeg](https://ffmpeg.org/) - at least version 3.4 or above. You may want to check the [node-fluent-ffmpeg readme](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg#prerequisites) for more information.\n\n## Usage as a Command Line Tool\n\n### Get started\n\nUse npm to install flipnote-video globally:\n\n```bash\nnpm i -g flipnote-video --save\n```\n\n### Examples\n\n#### Convert Flipnote to MP4\n\n```bash\nflipnote-video -i flipnote.ppm -o -c:v libx264 -c:a aac -pix_fmt yuv420p video.mp4\n```\n\n#### Show Flipnote metadata\n\n```bash\nflipnote-video -i flipnote.ppm --meta\n```\n\n## Usage as a Library\n\n### Get started\n\nUse npm to add flipnote-video into your project:\n\n```bash\nnpm i flipnote-video --save\n```\n\n### Code Examples\n\n#### Convert Flipnote to MP4\n\n```js\nconst fs = require('fs');\nconst { parseFlipnote, FlipnoteConverter } = require('flipnote-video');\n\nasync function convert(inpath, outpath) {\n  // read input file\n  const file = fs.readFileSync(inpath);\n  // parse file as flipnote\n  const flipnote = await parseFlipnote(file.buffer);\n  // FlipnoteConverter extends node-fluent-ffmpeg's command object\n  // https://github.com/fluent-ffmpeg/node-fluent-ffmpeg\n  const converter = new FlipnoteConverter(flipnote);\n\n  // Web-friendly MP4 codec settings\n  converter.outputOptions([\n    '-c:v libx264',\n    '-c:a aac',\n    '-pix_fmt yuv420p',\n  ]);\n  converter.output(outpath);\n  converter.run();\n}\n\nconvert('./flipnote.ppm', './video.mp4');\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaames%2Fflipnote-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaames%2Fflipnote-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaames%2Fflipnote-video/lists"}