
Recherche avancée
Autres articles (112)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (12397)
-
How to convert byte[] or String to Frame(H264) with javacv ?
9 février 2020, par oleotigerI have received a video from port 11111 with UDP ;
The video frame is split by 1460Byte as its size exceeds the size of UPD packet.while(true){
data=new byte[2048];//创建字节数组,指定接收数据报的大小
packet=new DatagramPacket(data,data.length);
try {
socket.receive(packet);//此方法接收到数据报之前会一直阻塞
} catch (IOException e) {
e.printStackTrace();
}
String info=new String(packet.getData(),0,packet.getLength());
frameStr+=info;
//End of the frame
if(info.length()!=1460){
decode(frameStr);
}
}How to decode the frame with javacv ? The video is decoded by H264.
The raw frame is String or byte[]. -
Anomalie #2256 : Remplacer eval par include
28 août 2011, par cedric -on peut passer à include en restant à iso accès disque en encapsulant les meta info du cache dans une fonction donnée et le code dans une seconde fonction. Cela permet de récupérer les meta info sans executer le code, puis de l’executer plus tard. Seul inconvénient : on est plus dans l’espace des (...)
-
Initializing hwaccel_context in libavcodec
3 janvier 2018, par dlomanI am trying to get hardware accelerated video working using libavcodec. I am using the hw_decode.c example as a starting point and am unable to get it to work. both
AVCodecContext->hwaccel
andAVCodecContext->hwaccel_context
areNULL
I belive some part of the hwaccel is working as I see the output
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0Which is the same as when I run
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.mpg -f null -
but immediately after that I get the following error message
[h264 @ 0x1df2cc0] Hardware acceleration context (hwaccel_context) does not exist.
Failed to get HW surface format.
[h264 @ 0x1df2cc0] decode_slice_header error
[h264 @ 0x1df2cc0] no frame!I looked at the similar question and the answer to this shows how to get a
AVCodecContext->hwaccel
. But even with theAVCodecContext->hwaccel
being a valid VAApih264 decoder I still get the same error message.How do I initialize a
AVCodecContext->hwaccel_context
and after that what else do I need to do to get hardware accelerated video working in ffmpeg ?