MediaArea / MediaInfo

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://MediaArea.net/MediaInfo
BSD 2-Clause "Simplified" License
1.37k stars 160 forks source link

Mediainfo parsing https, error #692

Open gpscsy opened 1 year ago

gpscsy commented 1 year ago

mediainfo version: MediaInfoLib - v22.09

When I used mediainfo to parse an m3u8 stream starting with https, an error occurred. The following error was reported: E: https://yicaivodcache.oss-cn-shanghai.aliyuncs.com/record/live/cbn/../cbn_yld/1679526000_38158967.ts, <?xml version="1.0" encoding="UTF-8"?>

NoSuchKey The specified key does not exist. 641C01469C3A07323475CBF7 xxxxxxxxx record/live/cbn/../cbn_yld/1679526000_38158967.ts 0026-00000001

General Complete name : https://xxxxxxxxx/record/live/cbn/798331c1-6f83-470a-862d-d414c5ce6a2b.m3u8 Format : HLS Format profile : Media File size : 4.87 KiB

JeromeMartinez commented 1 year ago

I checked (using last dev snapshot but I don't think something changed in the meantime) and it seems fine:

$ mediainfo https://yicaivodcache.oss-cn-shanghai.aliyuncs.com/record/live/cbn/798331c1-6f83-470a-862d-d414c5ce6a2b.m3u8
General
Complete name                            : https://yicaivodcache.oss-cn-shanghai.aliyuncs.com/record/live/cbn/798331c1-6f83-470a-862d-d414c5ce6a2b.m3u8
Format                                   : HLS
Format profile                           : Media
File size                                : 4.87 KiB
Duration                                 : 3 s 0 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 13.3 kb/s

Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Muxing mode                              : MPEG-TS
Codec ID                                 : 27
Duration                                 : 3 s 0 ms
Width                                    : 640 pixels
Height                                   : 360 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Source                                   : ../cbn_yld/1679526000_38158967.ts

Audio
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Format version                           : Version 4
Muxing mode                              : MPEG-TS / ADTS
Codec ID                                 : 15-2
Duration                                 : 2 s 995 ms
Bit rate mode                            : Variable
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Delay relative to video                  : -186 ms
Source                                   : ../cbn_yld/1679526000_38158967.ts

Menu
ID                                       : 4096 (0x1000)
Menu ID                                  : 1 (0x1)
Format                                   : AVC / AAC
Duration                                 : 2 s 960 ms
List                                     : 256 (0x100) (AVC) / 257 (0x101) (AAC)
Service name                             : Service01
Service provider                         : Alibaba Cloud
Service type                             : digital television
Source                                   : ../cbn_yld/1679526000_38158967.ts
Muxing mode                              : MPEG-TS

$ mediainfo --version
MediaInfo Command line,
MediaInfoLib - v22.12.20230227
$ uname -a
Linux Jerome 4.4.0-19041-Microsoft #2311-Microsoft Tue Nov 08 17:09:00 PST 2022 x86_64 x86_64 x86_64 GNU/Linux

Need more information.

gpscsy commented 1 year ago

Thank you very much for your answer

I upgraded the version of Mediainfo on three different systems to v23.03 and found that

Unable to parse properly on CentOS Linux release 7.2.1511 (Core)

On CentOS Linux release 7.5.1804 (Core), it cannot be parsed normally

The following errors are reported:

NoSuchKey The specified key does not exist. 6424F14692403C3435FE2E58 yicaivodcache.oss-cn-shanghai.aliyuncs.com record/live/cbn/../cbn_yld/1679526000_38158967.ts 0026-00000001

However, on CentOS Linux release 8.5.2111, it can be parsed normally. Is it Mediainfo that requires additional installation of any dependencies?

g-maxime commented 1 year ago

mediainfo rely on libcurl for network access, maybe CentOS7 libcurl is too old to handle this URL correctly?

Removing the relative part of the url (cbn/../) seems to work on my end: mediainfo https://yicaivodcache.oss-cn-shanghai.aliyuncs.com/record/live/cbn_yld/1679526000_38158967.ts