Rennbon / pyhikvision

hikvision-sdk for Python3 in action
MIT License
288 stars 48 forks source link

example/instant_preview2.py 不显示 #19

Open QGB opened 1 year ago

QGB commented 1 year ago
Login successful,the userId is  0
start preview 成功 0
[2023-11-08 17:45:01.953][0x00004be4][DEBUG]- [SYSTRANS_Create] [59] [Version is:Baseline2.5.4.8, build20191204]
[2023-11-08 17:45:01.959][0x00004be4][ERROR]- [ST_HeaderInfo] [43] [Media header is:
494D4B48010200000400000100000000000000000000000081000000000000000000000000000000]
[2023-11-08 17:45:01.968][0x00004be4][INFO ]- [SYSTRANS_Create] [103] [Handle request!]
[2023-11-08 17:45:01.976][0x00004be4][INFO ]- [CTransformProxy::InitDemux] [581] [parser pointer request!]
[2023-11-08 17:45:01.981][0x00004be4][INFO ]- [CRTPDemux::InitDemux] [342] [new m_pFrameBuffer]
[2023-11-08 17:45:01.986][0x00004be4][INFO ]- [CRTPDemux::InitDemux] [343] [new m_pCopyFrame]
[2023-11-08 17:45:01.995][0x00004be4][INFO ]- [CRTPDemux::InitDemux] [344] [new m_pAudioBuff]
[2023-11-08 17:45:02.001][0x00004be4][INFO ]- [CMPEG2PSPack::InitPack] [150] [new PSPack m_pFrameBuffer]
callback 1
[2023-11-08 17:45:02.012][0x000059a8][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393879590], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393879590], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:02.093][0x000059a8][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [0]]
[2023-11-08 17:45:02.115][0x000059a8][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393879590], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393879590], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:02.140][0x000059a8][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [0]]
[2023-11-08 17:45:02.155][0x000059a8][WARN ]- [CRTPDemux::ProcessVideoFrame] [3068] [Pre-conditions not met, I frame has not been obtained!
]
[2023-11-08 17:45:02.168][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393883100], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393883100], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:02.197][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [39]]
[2023-11-08 17:45:02.212][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393883100], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393883100], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:02.248][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [39]]
[2023-11-08 17:45:02.274][0x00001218][WARN ]- [CRTPDemux::ProcessVideoFrame] [3068] [Pre-conditions not met, I frame has not been obtained!
]
[2023-11-08 17:45:02.293][0x00001218][DEBUG]- [CRTPDemux::InputData] [808] [Private frame Timestamp is [94]]
get_port success
set_stream_open_mode success
open_stream success
playM4_play success
[2023-11-08 17:45:03.349][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393886700], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393886700], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.363][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [79]]
[2023-11-08 17:45:03.368][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393886700], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393886700], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.383][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [79]]
[2023-11-08 17:45:03.390][0x00001218][WARN ]- [CRTPDemux::ProcessVideoFrame] [3068] [Pre-conditions not met, I frame has not been obtained!
]
[2023-11-08 17:45:03.397][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393890390], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393890390], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.413][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [120]]
[2023-11-08 17:45:03.419][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393890390], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393890390], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.433][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [120]]
[2023-11-08 17:45:03.440][0x00001218][WARN ]- [CRTPDemux::ProcessVideoFrame] [3068] [Pre-conditions not met, I frame has not been obtained!
]
[2023-11-08 17:45:03.448][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393893900], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393893900], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.464][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [159]]
[2023-11-08 17:45:03.469][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393893900], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393893900], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.482][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [159]]
[2023-11-08 17:45:03.491][0x00001218][WARN ]- [CRTPDemux::ProcessVideoFrame] [3068] [Pre-conditions not met, I frame has not been obtained!
]
[2023-11-08 17:45:03.499][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393897500], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393897500], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.516][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [199]]
[2023-11-08 17:45:03.525][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393897500], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393897500], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.542][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [199]]
[2023-11-08 17:45:03.548][0x00001218][WARN ]- [CRTPDemux::ProcessVideoFrame] [3068] [Pre-conditions not met, I frame has not been obtained!
]
[2023-11-08 17:45:03.560][0x00001218][DEBUG]- [CRTPDemux::InputData] [808] [Private frame Timestamp is [254]]
[2023-11-08 17:45:03.569][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393901100], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393901100], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.581][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [239]]
[2023-11-08 17:45:03.586][0x00001218][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393901100], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393901100], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.601][0x00001218][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [239]]
[2023-11-08 17:45:03.610][0x00001218][WARN ]- [CRTPDemux::ProcessVideoFrame] [3068] [Pre-conditions not met, I frame has not been obtained!
]
[2023-11-08 17:45:03.617][0x000059a8][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393904790], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393904790], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.631][0x000059a8][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [280]]
[2023-11-08 17:45:03.637][0x000059a8][DEBUG]- [CRTPDemux::GetDeltaTimeStampMS] [982] [nTrack is [0], fUnit is [90.000000], nTimeStamp is [1393904790], m_dwFirstFrameTime is [15487551], m_dwLastRTPTime is [1393904790], m_dwRTPTimeDelta is [0]]
[2023-11-08 17:45:03.652][0x000059a8][DEBUG]- [CRTPDemux::InputData] [777] [Video frame Timestamp is [280]]
[2023-11-08 17:45:03.659][0x000059a8][WARN ]- [CRTPDemux::ProcessVideoFrame] [3068] [Pre-conditions not met, I frame has not been obtained!
QGB commented 12 months ago

NET_DVR_GetLastError 初始化SDK失败: the error code is False 是因为没有正确设置sdk路径,后缀一定要是 \

Rennbon commented 11 months ago

https://github.com/Rennbon/pyhikvision#%E6%B3%A8%E6%84%8F readme里面有写,就是放的太后面了