
Recherche avancée
Médias (91)
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Echoplex (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Discipline (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Letting you (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
999 999 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (76)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (5440)
-
Matomo’s privacy-friendly web analytics software named best of the year 2022
25 janvier 2023, par Erin -
OpenCV compilation error in Fedora 21
6 mars 2015, par eapI’ve got OpenCV source code from github and I get the following error when trying to compile it :
/lib64/libavutil.so.54: undefined reference to `clReleaseMemObject@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clReleaseCommandQueue@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clCreateBuffer@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clBuildProgram@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clSetKernelArg@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clGetDeviceIDs@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clEnqueueUnmapMemObject@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clGetPlatformInfo@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clCreateProgramWithSource@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clGetDeviceInfo@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clReleaseContext@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clCreateContextFromType@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clCreateCommandQueue@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clEnqueueMapBuffer@OPENCL_1.0'
/lib64/libavutil.so.54: undefined reference to `clGetPlatformIDs@OPENCL_1.0'My machine is a laptop with Intel i7 and a GT630M graphics card and I’m using Bumblebee.
Thanks.
-
How to parallelize this for loop for rapidly converting YUV422 to RGB888 ?
16 avril 2015, par vineetI am using v4l2 api to grab images from a Microsoft Lifecam and then transferring these images over TCP to a remote computer. I am also encoding the video frames into a MPEG2VIDEO using ffmpeg API. These recorded videos play too fast which is probably because not enough frames have been captured and due to incorrect FPS settings.
The following is the code which converts a YUV422 source to a RGB888 image. This code fragment is the bottleneck in my code as it takes nearly 100 - 150 ms to execute which means I can’t log more than 6 - 10 FPS at 1280 x 720 resolution. The CPU usage is 100% as well.
for (int line = 0; line < image_height; line++) {
for (int column = 0; column < image_width; column++) {
*dst++ = CLAMP((double)*py + 1.402*((double)*pv - 128.0)); // R - first byte
*dst++ = CLAMP((double)*py - 0.344*((double)*pu - 128.0) - 0.714*((double)*pv - 128.0)); // G - next byte
*dst++ = CLAMP((double)*py + 1.772*((double)*pu - 128.0)); // B - next byte
vid_frame->data[0][line * frame->linesize[0] + column] = *py;
// increment py, pu, pv here
}’dst’ is then compressed as jpeg and sent over TCP and ’vid_frame’ is saved to the disk.
How can I make this code fragment faster so that I can get atleast 30 FPS at 1280x720 resolution as compared to the present 5-6 FPS ?
I’ve tried parallelizing the for loop across three threads using p_thread, processing one third of the rows in each thread.
for (int line = 0; line < image_height/3; line++) // thread 1
for (int line = image_height/3; line < 2*image_height/3; line++) // thread 2
for (int line = 2*image_height/3; line < image_height; line++) // thread 3This gave me only a minor improvement of 20-30 milliseconds per frame.
What would be the best way to parallelize such loops ? Can I use GPU computing or something like OpenMP ? Say spwaning some 100 threads to do the calculations ?I also noticed higher frame rates with my laptop webcam as compared to the Microsoft USB Lifecam.
Here are other details :
- Ubuntu 12.04, ffmpeg 2.6
- AMG-A8 quad core processor with 6GB RAM
- Encoder settings :
- codec : AV_CODEC_ID_MPEG2VIDEO
- bitrate : 4000000
- time_base : (AVRational)1, 20
- pix_fmt : AV_PIX_FMT_YUV420P
- gop : 10
- max_b_frames : 1