vs2010上编译好了live555,可是debug的server不能找到每天文件:
这是ffplay的报错:
[rtsp @ 0xaf502560] method DESCRIBE failed: 404 Stream Not Found0
rtsp://192.168.1.200:8554/zhangbinvideo.264: Invalid data found when processing input
============================
让vs2010有管理员权限运行:
http://blog.csdn.net/zhangyulin54321/article/details/8802023
让所有用户都可以让vs2010以管理员身份启动:
==========================
用release版本,还遇到这样的问题
'liveMediaServer.exe': Loaded 'S:\live\1204-2013\solution\live555-1204-2013\Release\liveMediaServer.exe', Symbols loaded.
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\wsock32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Unloaded 'C:\Windows\SysWOW64\apphelp.dll'
'liveMediaServer.exe': Loaded 'C:\Program Files (x86)\Common Files\Thunder Network\NetMon\speed_viewer1.0.2.32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\msvcp71.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\msvcr71.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Program Files (x86)\Common Files\Thunder Network\NetMon\net_monitor2.0.2.9.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\mswsock.dll', Cannot find or open the PDB file
'liveMediaServer.exe': Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL', Cannot find or open the PDB file
The program '[8632] liveMediaServer.exe: Native' has exited with code 1 (0x1).
=======================
还以为是权限的问题:
有这样的一篇文章《VS2010与Win7共舞:UAC与数据重定向》
说是可以自动获取权限,看不懂啊 http://blog.csdn.net/chinabinlang/article/details/6461404
http://blog.csdn.net/sysprogram/article/details/6710092
http://msdn.microsoft.com/en-us/library/bb756929.aspx
找不到ID在哪里设置。
也不知道XML文件应该在哪里存放,所以没用这个方法。
============
还是这个大牛好:http://hi.baidu.com/michelle_leo/item/81e055df753b1d3e48e1ddc3 (这个为大牛有图)
这是我的:
还可以在Manifest tool在设置 嵌入的。我这个工程,默认有嵌入的。
========================其实问题是这样的:
把每天媒体文件放在编译live555的mediaServer的工程目录下就好了,而不是exe所在的目录,就可以让debug运行的exe找到媒体文件了。
www.myexception.cn/multimedia/333524.html
------解决方案--------------------
双击跟按按F5程序启动的认的当前路径不一样的。
如果你是双击,liaoning.ts应该跟.EXE同一个目录。
如果你是按F5,liaoning.ts应该跟你的工程同一目录。