
Recherche avancée
Autres articles (8)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (3779)
-
The transparent pixels in my Bitmap shown as white
7 mai 2016, par Hassan IbrahemI’m using c code to get
frame
from a gif file and it’s working fine usingffmpeg
libraryav_read_frame
, then I convert the returned image from this formatBGRA to ARGB
format using this methodlibyuv::ABGRToARGB
.In the java part I receive the
bitmap
and when I put it in theImageView
the transparent pixels drawn white.Bitmap bitmap= Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888);
getGifFrame(gifFile,bitmap); //native method which get image frame from gif file.
imageTest.setImageBitmap(backgroundBitmap);//this bitmap in debug mode I can see that it has transparent pixels, but in drawn it appears white!even when I loop on the returned
bitmap pixels
and check for each pixel I find them transparent !for (int x = 0; x < b.getWidth(); x++)
{
for (int y = 0; y < b.getHeight(); y++)
{
int color = b.getPixel(x, y);
if (color == Color.WHITE)//This condition never occurred
{
b.setPixel(x, y, Color.TRANSPARENT);
}
}
}Nothing happened and it’s still white. Then I did convert all transparent pixels to TRANSPARENT !! and guess what, It’s working !
else if (color == Color.TRANSPARENT)
{
b.setPixel(x, y, Color.TRANSPARENT);
}I don’t understand why that happen. Any help would be appreciated.
EDIT 1 :
I get all pixels from the bitmap and set them again without doing anything and it worked also !?bitmap.getPixels(pixels, 0, width, 0, 0, width, height);
bitmap.setPixels(pixels, 0, width, 0, 0, width,height); -
libavcodec/ccaption_dec : clean up and standardize white space
5 janvier 2016, par Aman Gupta -
Handling white spaces in ffmped command
15 octobre 2015, par StrangerI am executing the below
ffmpeg
command for trimming videos.The issue I am having is that if filepath contains spaces then the command doesn’t work.I saw this answer and tried to add quotes to thefilepath
but still it doesn’t work.filepath
is the path of video from device storage.Since I am fetching many videos i don’t know the exact path.
Below is the command-String addQuotes(String in ) {
return "\"" + in + "\"";
}
execFFmpegBinary("-i " + addQuotes(filepath) + " -ss " + startMs / 1000 + " -to " + endMs / 1000 + " -strict -2 -async 1 " + dest.getAbsolutePath());
private void execFFmpegBinary(final String command) {
try {
ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
@Override
public void onFailure(String s) {
Log.e("Previewragment", "FAILED with output : " + s);
}
@Override
public void onSuccess(String s) {
Log.e("Previewragment", "SUCCESS with output : " + s);
}
@Override
public void onProgress(String s) {
Log.e("Previewragment", "Started command : ffmpeg " + command);
Log.e("Previewragment", "progress : " + s);
}
@Override
public void onStart() {
Log.e("Previewragment", "Started command : ffmpeg " + command);
}
@Override
public void onFinish() {
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// do nothing for now
}
}