yartat / MP-MediaInfo

Mediaportal MediaInfoLib wrapper
Other
45 stars 21 forks source link

Network / HTTP stream support ? #27

Open shubhank008 opened 3 years ago

shubhank008 commented 3 years ago

Hello,
Is there a reason why HTTP / Network stream support is not enabled ? I see there are quite a few checks to detect if a provided string/path is network or HTTP file in FileExtensions.cs but its not made use of in main MediaWrapper class.

I wanted to get mediainfo for remote video url (http/https file) as well but not able to, it just throws MediaInfoNotLoaded.

yartat commented 3 years ago

Hello. There is only one reason, I do not have a working test environment to validate RTSP, MMS, RTMP and others. I would be glad if anybody helped me with this.

shubhank008 commented 3 years ago

I can help out in it, specially HTTP/HTTPS and RTSP, RTMP streams. Let me know what I can do to help out.

yartat commented 3 years ago

I supposed to use a server rtsp-simple-server + ffmpeg. But I have only one webcam with 1080p@30. Could you prepare some loop samples with other resolution and fps?

shubhank008 commented 3 years ago

I am providing some publicly available RTSP example streams:

rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov (240x160 @24fps)

Can you let me know which res/fps or ffmpeg paras do you want to try ? I can create a demo server with rtsp and create some links for you

yartat commented 3 years ago

Thanks a lot for help. I've started investigate issue. The RTSP link that you preseted before, the native MediaInfo library does not processed and was returned handle is NULL. I'll debug this weekend and will try to fix it.

shubhank008 commented 3 years ago

Thanks a lot for help. I've started investigate issue. The RTSP link that you preseted before, the native MediaInfo library does not processed and was returned handle is NULL. I'll debug this weekend and will try to fix it.

Okay and I just wanted to confirm you I deleted the .dll file of MediaInfoWrapper and imported the whole project itself in my project (the github source code) and bypassed the isAVStream check.
I tested around 20-25 HTTP/HTTPS links with MediaInfo and all of them were success

yartat commented 3 years ago

I've prepared new version 21.3.3 with support HTTP and HTTPS. Could you test additional UDP if you have a time of course. Unfortunatelly current version of mediainfo does not support RTSP protocol. Curl_reader is based on outdated version of the libcurl. And I didn't find any reference to support RTMP too. mediaInfo supports MMS with libMMS, but MediaInfo.Native and MediaInfo.Core.Native both are not support libMMS.