{"id":15476079,"url":"https://github.com/fluttercandies/mvimg","last_synced_at":"2026-01-11T04:47:52.925Z","repository":{"id":199446276,"uuid":"702905343","full_name":"fluttercandies/mvimg","owner":"fluttercandies","description":"For get video from motion photo for android.","archived":false,"fork":false,"pushed_at":"2023-11-20T01:22:20.000Z","size":21599,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-19T02:30:03.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluttercandies.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-10T08:27:54.000Z","updated_at":"2024-09-23T02:29:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"472b3910-093e-4348-9771-58647c2cd297","html_url":"https://github.com/fluttercandies/mvimg","commit_stats":null,"previous_names":["caijinglong/mvimg","fluttercandies/mvimg"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fmvimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fmvimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fmvimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fmvimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttercandies","download_url":"https://codeload.github.com/fluttercandies/mvimg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246036314,"owners_count":20713220,"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":[],"created_at":"2024-10-02T03:22:30.730Z","updated_at":"2026-01-11T04:47:52.895Z","avatar_url":"https://github.com/fluttercandies.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mvimg\n\nA library for handle mvimg.\n\nThe file type used in some android device.\nIt like livephoto in iphone.\n\nThe file is composed of two files, jpg and mp4.\n\nUsually, the jpg name is `MVIMG_XXXXX.jpg`.\nOr, the name is `xxxx.MP.jpg`.\n\nFor information about their differences, please refer [here][issue], or view the [xap file in assets][xap].\n\n## Usage\n\n### Add dependency\n\n```yaml\ndependencies:\n  mvimg: ^1.0.0\n```\n\n### Code\n\n#### For pure dart\n\nThe `mvimg` package is pure dart, so you can use it in flutter or other dart project.\n\nSee the [example][example] for more details.\n\n```dart\nimport 'dart:io';\n\nimport 'package:buff/buff_io.dart';\nimport 'package:mvimg/mvimg.dart';\n\nvoid main() {\n  final mvimg = Mvimg(FileBufferInput.fromPath('assets/test.jpg'));\n  mvimg.decode();\n  try {\n    if (!mvimg.isMvimg()) {\n      print('not mvimg');\n      return;\n    }\n\n    final img = mvimg.getImageBytes();\n    final video = mvimg.getVideoBytes();\n\n    final videoOutputPath = 'assets/split/output.mp4';\n    final imgOutputPath = 'assets/split/output.jpg';\n\n    final videoFile = File(videoOutputPath);\n    final imgFile = File(imgOutputPath);\n\n    videoFile.createSync(recursive: true);\n    imgFile.createSync(recursive: true);\n\n    videoFile.writeAsBytesSync(video);\n    imgFile.writeAsBytesSync(img);\n  } finally {\n    mvimg.dispose();\n  }\n}\n\n```\n\n#### For flutter\n\nYou can see the [flutter example][flutter_example] to learn how to use it in flutter.\n\nThe [main.dart][flutter_example_main] of flutter.\n\n## License\n\nApache License 2.0\n\n[issue]: https://github.com/SimpleMobileTools/Simple-Gallery/issues/1426#issuecomment-982855006\n[xap]: https://github.com/CaiJingLong/mvimg/tree/main/assets\n[flutter_example]: example/mvimg_flutter_example\n[flutter_example_main]: example/mvimg_flutter_example/lib/main.dart\n[example]: example/mvimg_example.dart\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fmvimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttercandies%2Fmvimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fmvimg/lists"}