
Recherche avancée
Autres articles (40)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (10551)
-
Core : Move the logic of adding hidden input from stopeRequest to handle
26 juin 2017, par ArkniCore : Move the logic of adding hidden input from stopeRequest to handle
The only scripted submits in this plugin are triggered by `stopRequest()`
when the remote method finished validating an element and the form was
submitted -
How to handle DHAV (.dav) video streams ?
16 juin 2022, par Mateus HenriqueI have a WPF app where I need to handle
DHAV (.dav)
video stream on runtime from aDigital Video Recorder (DVR)
. I'm using an SDK that can be found here Dahua SDK search

SDK: General_NetSDK_Eng_Win64_IS_V3.052.0000002.0.R.201103



I need to handle every single frame from the video stream, convert it to a
BitmapImage
and then displays it in aWPF Image control
. Something like : MJPEG Decoder

The problem is that I can't find any documentation on how to handle that data and the samples from the SDK doesn't show that either, instead they are built with WinForms and they only pass the Window Handle of the PictureBox's control to an exported DLL function and 'magically' shows the video stream :


[DllImport(LIBRARYNETSDK)]
public static extern IntPtr CLIENT_RealPlayEx(IntPtr lLoginID, int nChannelID, IntPtr hWnd, EM_RealPlayType rType);





OBS : 'hWnd' param is the Window Handle to display the video in.




The problem with this approach is that I don't have any control over the video stream.


I have tried many FFMPEG wrappers for .NET but they only parse the data if I first write it to disk and only then I can convert it to some type I can handle.


This is the callback function that is called contantly during the application's runtime with the data I need to handle :


private void RealDataCallback(IntPtr lRealHandle, uint dwDataType, IntPtr pBuffer, uint dwBufSize, IntPtr param, IntPtr dwUser)
 {
 switch (dwDataType)
 {
 case 0: // original data
 break;
 case 1: // frame data
 HandleFrameData(lRealHandle, dwDataType, pBuffer, dwBufSize, param, dwUser);
 break;
 case 2: // yuv data
 break;
 case 3: // pcm audio data
 break;
 }
 }

 private void HandleFrameData(IntPtr lRealHandle, uint dwDataType, IntPtr pBuffer, uint dwBufSize, IntPtr param, IntPtr dwUser)
 {
 // The pBuffer parameter format is DHAV (.dav) 
 byte[] buff = new byte[dwBufSize];
 Marshal.Copy(pBuffer, buff, 0, (int)dwBufSize);

 using (var ms = new MemoryStream(buff))
 {
 }
 }



UPDATE


I'm able to convert the YUV data provided in the callback funcion to RGB but that is not the ideal solution. It would be so much better (and faster) if I can convert the original (.dav) data.


The
RealDataCallback
, in fact, only returns 1 frame per callback, but I don't know how to convert that frame to Bitmap. Any help would be appreciated.

-
Revision 2a89983999 : Remove an attempt to handle SEG_LVL_SKIP sub8x8. SEG_LEVEL_SKIP requires the bl
29 mai 2014, par Alex ConverseChanged Paths :
Modify /vp9/encoder/vp9_rdopt.c
Remove an attempt to handle SEG_LVL_SKIP sub8x8.SEG_LEVEL_SKIP requires the block size to be at least 8x8. Attempting to
use it on smaller partitions causes the decoder to reject the bitstream.Change-Id : Ia7188cdf8ae5ac1df6bd29f3f80dbb0610e1f7b1