
Recherche avancée
Autres articles (60)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (6719)
-
OpenCV Alpha Channel support
14 février 2014, par adriagilI've tried many different solutions but I'm stuck at this point.
I have a sequence of .png files with alpha channel.
If I pick one of the files for splitting the channels I got the expected result in an array[4] having the alpha channelMat check = imread("1.png");
printf("channels = %d", check.channels()); //got 'channels = 4'
Then I expected to get the same results for a movie file.
With FFMPEG I've just converted the .png sequence to a .mov file with "qtrle" codec that I'm sure that support alpha channel.
ffmpeg -pix_fmt argb -i sequence_%d.png -vcodec qtrle output.mov
Then the I process the video file frames with OpenCV
Mat frame;
VideoCapture cap ("output.mov");
if (cap.grab())
cap.retrieve(frame);
printf("channels = %d", frame.channels()); // got 'channels = 3'I've checked the ffmpeg generated output and seems to be encoded right and have the alpha channel stored.
Does OpenCV does not support Alpha Channel in movie files ?
If so, anyone knows an alternative to do it with C++ or other libraries ?
Can this be done with DirectX in some way (only using OpenCV for reading video) ?In the official docs I've found that cv::VideocCapture.retrieve() has a second argument for the 'channel' but I've tried to do the following with the same results (no alpha channel) :
cap.retrieve(frame, 4);
cap.retrieve(frame, -1);As far as cv::VideoCapture supports loading image sequences I've tried to load the PNG sequence but I got the following warning so I could not play the movie file :
VideoCapture cap("sequence_%d.png");
warning: Could not find codec parameters (../../modules/highgui/src/cap_ffmpeg_impl.hpp)Why I got that result if I can read the same PNG with
imread("")
?Also I've tried to encode the .png sequence again with ffmpeg :
ffmpeg -pix_fmt rgba -i sequence_%d.png -vcodec png output.mov
But got exactly the same warning as before.
Any suggestion would be much appreciated !
Note : I'm using OpenCV 2.4.2 right now...maybe updating to 2.4.8 may solve the problem ?
-
avcodec/wavpackenc : print channel count in av_log call
13 janvier 2016, par James Almer -
lavr : mix front center channel as indicated in the ATSC A/52 specification.
15 janvier 2014, par Tim Walker