Can not parse video track duration
Checklist
- [Y ] I have searched the issue tracker for any duplicate issues and confirmed that this bug has not been reported before.
- [ Y] I have tested the issue with the upstream project MediaInfo and can confirm that the problem only exists in mediainfo.js.
- [ Y] I have attached all necessary test files, if applicable, so that the issue can be easily reproduced by the developers.
- [ ] I have added a reproduction repository or a code sandbox that clearly illustrates the issue. Providing a minimal example will greatly help the developers in understanding and resolving the problem.
Bug Description
Can not parse the video track and audio track duration
Steps to Reproduce
Expected Behavior
I hope to parse the video track duration and audio track duration.(not only general duration)
Actual Behavior
Environment
the latest version
Additional Information
The video file download link: https://drive.google.com/file/d/1pSkTIqq6d76hk8MbYa9BtuC1nHZGfZcc/view?usp=sharing
This issue is stale because it has been open for 30 days with no activity.
In fact, compared to upstream mediainfo cli, the following is missing:
- Complete name
- Overall bit rate
- Duration
- Stream size
General
+ Complete name : issue.flv
Format : Flash Video
File size : 96.5 MiB
+ Duration : 15 min 32 s
+ Overall bit rate : 868 kb/s
Frame rate : 30.000 FPS
duration : 1142
Video
Format : Sorenson Spark
Codec ID : 2
+ Duration : 15 min 32 s
Bit rate : 711 kb/s
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 30.000 FPS
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.077
+ Stream size : 79.0 MiB (82%)
Audio
Format : MPEG Audio
Format version : Version 2
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : 2
Codec ID/Hint : MP3
+ Duration : 15 min 32 s
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Sampling rate : 22.05 kHz
Compression mode : Lossy
+ Stream size : 14.2 MiB (15%)
Writing library : LAME3.98.4
The above comparison uses:
await mediaInfoFactory({
format: "text",
});
Actually compare the two:
- https://mediaarea.net/MediaInfoOnline
- upstream
mediainfocli
Except for the Complete name increase, there seems to be the same missing items, so maybe this is an upstream issue? @JeromeMartinez BTW, does the official MediaInfoOnline have an repo?
General
Complete name : issue.flv
Format : Flash Video
File size : 96.5 MiB
+ Duration : 15 min 32 s
+ Overall bit rate : 868 kb/s
Frame rate : 30.000 FPS
duration : 1142
Video
Format : Sorenson Spark
Codec ID : 2
+ Duration : 15 min 32 s
Bit rate : 711 kb/s
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 30.000 FPS
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.077
+ Stream size : 79.0 MiB (82%)
Audio
Format : MPEG Audio
Format version : Version 2
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : 2
Codec ID/Hint : MP3
+ Duration : 15 min 32 s
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Sampling rate : 22.05 kHz
Compression mode : Lossy
+ Stream size : 14.2 MiB (15%)
Writing library : LAME3.98.4