锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置:锐英源 / 开源技术 / nVLC / System.OutOfMemoryException in Taygeta.Core.dll [modified]调用Taygeta.Core.dll时出现System.OutOfMemoryException异常
服务方向
人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发
联系方式
固话:0371-63888850
手机:138-0381-0136
Q Q:396806883

System.OutOfMemoryException in Taygeta.Core.dll [modified]调用

Taygeta.Core.dll时出现System.OutOfMemoryException异常


I've modified in Taygeta.MainSample the following lines:在Taygeta.MainSample的如下代码行里进行修改

private void openToolStripMenuItem_Click(object sender, EventArgs e)  
{      
/* Comment loading local file      
OpenFileDialog ofd = new OpenFileDialog();         
if (ofd.ShowDialog() == DialogResult.OK)      
{          
m_media = m_factory.CreateMedia<IMedia>(ofd.FileName);          
m_player.Open(m_media);      
}*/      
m_media = m_factory.CreateMedia<IMedia>("rtsp://192.168.0.23:8554/cam1/20110808100000");      
m_player.Open(m_media);  
}  
private void OnVideoFrame(PlanarFrame frame)  
{      
Parallel.ForEach(m_renders, rnd => rnd.Display(frame.Planes[0], frame.Planes[1], frame.Planes[2], true)); 
// Exception is thrown here      
/* Display play time in milliseconds */      
m_renders[0].RemoveOverlay(0);      
m_renders[0].AddTextOverlay(0, m_player.Time.ToString(), new Rectangle(20, 20, 100, 40), 24, Color.Red, "Sans serif", 255);  
}

The program crashes after some time playing the media with System.OutOfMemoryException. What can be happening?在播放媒体文件一段时间后,程序崩溃,产生System.OutOfMemoryException异常。发生了什么事?

And just another question, is IVideoPlayer.Time refered to the current displayed frame or to the time at it was started and current time? I.E IVideoPlayer.Time refers to frame being displayed or not.另外一个问题是 IVideoPlayer.Time是指向当前显示桢还是开始时间,或是当前时间?


Behaivour is as follows:
1. Render panel displays video succesfull & text layer is displayed succesfull. (random time, above 70 seconds)
2. Render panel displays video succesfull & text layer is not displayed. (10 seconds)
3. System.AggregateException > System.NullReferenceException or System.OutOfMemoryException

Debuger stack call shows that:
Implementation.MemoryRendererEx.OnpDisplay(void *opaque = 0x00000000, void *picture = 0x00000000)
Taygeta.MainSample.Form1.OnVideoFrame(Declarations.PlanarFrame = ...)

It seams that you are not checking data ptr received by vlc frame display callback set with SetCallbacks. Am I wrong?
友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内