erikas-taroza / audiotags

Read and write audio metadata in Flutter. Supports multiple formats.
https://pub.dev/packages/audiotags
MIT License
9 stars 4 forks source link

Mpeg: File contains an invalid frame #17

Open IwanPWK opened 3 weeks ago

IwanPWK commented 3 weeks ago

When I try to read MP3 files, there are some files that cause errors when reading and writing metadata.

E/flutter ( 3182): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: AudioTagsError.openFile(message: Mpeg: File contains an invalid frame)
E/flutter ( 3182): #0      FlutterRustBridgeBase._transformRust2DartMessage (package:flutter_rust_bridge/src/basic.dart:126:9)
E/flutter ( 3182): #1      FlutterRustBridgeBase.executeNormal.<anonymous closure> (package:flutter_rust_bridge/src/basic.dart:70:51)
E/flutter ( 3182): <asynchronous suspension>
E/flutter ( 3182): #2      AudioTags.write (package:audiotags/src/audiotags.dart:36:12)
E/flutter ( 3182): <asynchronous suspension>
erikas-taroza commented 3 weeks ago

Hello.

What version are you on? Could you also send the file so I can debug?

Thank you.

IwanPWK commented 2 weeks ago

Sorry for the late reply.

  1. I am using the latest version.
  2. Here are the files in question.

https://drive.google.com/file/d/1gctXakHorNaBHn2vGTFmltSv4vv-kQ9O/view?usp=drivesdk https://drive.google.com/file/d/1gZHmC0o7JX-5j5AVO9P5yuQfltvJBuO8/view?usp=drivesdk

thank you in advance