-
Notifications
You must be signed in to change notification settings - Fork 14
Some unexpected errors #2
Comments
Certainly not expected behaviour, it might have to do with the use of read streams OR the WASM module provided by MediaInfo itself. I might have an idea for a non-stream equivalent of this module, which could fix your issue. Though honestly I have no idea, this module does nothing more than providing a small wrapper around the WASM file. What version of NodeJS are you running? And what type of file are you trying to open? Let's debug the source of this error together! |
I'm running v10.15.3 of NodeJS. For reference the mediainfo lib is called from workers, so I'm not 100% sure which file is causing this as they are run in parallel, but I can limit and re-run the code to see which files this comes from tonight, and get back to you! :) |
Hi, Sorry for the late reply, but I've been able to isolate which files is causing this, and can reproduce the two above errors on these two files constantly now. I tested opening with the Mediainfo windows app, and that seems to be working on them without issues on those two files. For reference, i'm calling it like so;
The errors does not seem to be caught, not sure if it's something that can be changed, then at least we could handle it gracefully and move on. |
Hello, |
Do you have a sample media file and code to reproduce the issue? |
This might be a different issue, but I can't manage to get the info of this media file, as I get the following error:
Running it on the MediaInfoOnline website does yield positive results: {
"media": {
"@ref": "sample.webm",
"track": [
{
"@type": "General",
"VideoCount": "1",
"FileExtension": "webm",
"Format": "WebM",
"Format_Version": "2",
"FileSize": "58906",
"Duration": "0.017",
"OverallBitRate": "27720470",
"FrameRate": "23.976",
"FrameCount": "0",
"IsStreamable": "Yes",
"Encoded_Date": "UTC 2020-02-11 14:26:22",
"Encoded_Application": "HandBrake 1.3.1 2020010400",
"Encoded_Library": "Lavf58.29.100"
},
{
"@type": "Video",
"StreamOrder": "0",
"ID": "1",
"UniqueID": "1",
"Format": "VP8",
"CodecID": "V_VP8",
"Duration": "0.017000000",
"Width": "3840",
"Height": "2160",
"PixelAspectRatio": "1.000",
"DisplayAspectRatio": "1.778",
"FrameRate_Mode": "CFR",
"FrameRate": "23.976",
"FrameCount": "0",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Default": "Yes",
"Forced": "No"
}
]
}
} |
Hi,
I've just started migrating to this library and encountered some errors while processing files with it, not sure if these are bugs within medainfo itself, or this version of it.
Let me know if there are any additional details that may be needed or if I can assist in tracking these down.
The text was updated successfully, but these errors were encountered: