MediaInfo Helper.Get Basic Video Info() failed for video streams

偶尔善良 提交于 2019-12-10 10:45:13

问题


I need to play a network stream video "http://www.wowza.com/_h264/Butterfly_256K.mp4" using LibVLC, I done the code and necessary things.

I am able to play the video, but I cannot get the info about video by the API:MediaInfoHelper.Get BasicVideoInfo(). When I pass the URL I get exception: "File Not Found"

The code I done is:

   var stream1Info = MediaInfoHelper.GetBasicVideoInfo(mediaInputStream1.Source);
   var stream2Info = MediaInfoHelper.GetBasicVideoInfo(mediaInputStream2.Source);
   lblFrmRateFirstStream.Text = stream1Info.Fps + " fps";
   lblFrmRateSecondStream.Text = stream2Info.Fps + " fps";
   lblBandWidthFirstStream.Text = ConvertBytesToMegabytes(stream1Info.Bitrate / 8) + " Mbps";
   lblBandWidthSecondStream.Text = ConvertBytesToMegabytes(stream2Info.Bitrate / 8) + " Mbps";

It will work well for a local file. But not for a streaming video.

I then tried to expose the VLC's own code to get the data. It contains the libvlc_media_player_get_fps() method. But it gives me 0.0 for stream and correct value for local.

I doubt then how the VLC player gets this information.


回答1:


Default build of MediaInfo does not support HTTP links yet. Planned in the future (the feature is already coded but more tests are needed) You may contact the author of MediaInfo if you want to speedup this feature.



来源:https://stackoverflow.com/questions/24924766/mediainfo-helper-get-basic-video-info-failed-for-video-streams

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!