Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (23)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

Sur d’autres sites (5525)

  • ffmpeg failed to drawbox and set volume

    27 janvier 2021, par Hussam Al-Barodi

    I don't know what is wrong in my command with ffmpeg.
Lets say I have a video and I want to make a black screen with muted audio between 20-30 seconds. So what I wrote is :

    


    ffmpeg -i input.mp4 -filter_complex "[0:v]trim=0:20[0v];[0:a]atrim=0:20[0a];[0:v]trim=20:30,drawbox=color=black:t=fill[1v];[0:a]atrim=20:30,volume=0[1a];[0:v]trim=30:60[2v];[0:a]atrim=30:60[2a];[0v][1v][2v]concat=n=3:v=1:a=0[outv];[0a][1a][2a]concat=n=3:v=0:a=1[outa]" -map [outv] -map [outa] output.mp4


    


    Now, I expect to have a video with 1 min length where the seconds between 20 & 30 are muted with black screen, but what I got is :

    


    20 sec correct
20 sec freezing video with no audio
40 sec black video with no audio
30 sec correct


    


    Can anyone help and tell me what is wrong in the command line ?

    


  • Different filesizes for images generated using octave and python

    17 décembre 2020, par lakshayg

    I am using python (scikit-image) and octave to generate 200 images as follows

    


    Python3

    


    import numpy as np
from skimage.io import imsave

images = [255*np.ones((100,100), dtype=np.uint8),  # white
             np.zeros((100,100), dtype=np.uint8)]  # black

for i in range(200): # save alternating black and white images
    imsave('%04d.png'%(i+1), images[i%2])


    


    Octave

    


    pkg load image;

im1 = 255*ones(100,100); # white
im2 = zeros(100,100);    # black
for i=1:200
    name = sprintf('%04d.png', i);
    if mod(i,2) == 0
        imwrite(im1, name);
    else
        imwrite(im2, name);
    end
end


    


    Next, I use ffmpeg to generate two videos (alternating white and black frames) from these two sets of images using the following command

    


    ffmpeg -r 10 -loglevel quiet \
       -i ./%04d.png -c:v libx264 \
       -preset ultrafast -crf 0 ./out.mkv


    


      

    1. Sizes of image files generated by both these codes are different.
    2. 


    


      

    • Octave white : 192 bytes, black : 98 bytes
    • 


    • Python white : 120 bytes, black : 90 bytes
    • 


    


      

    1. Sizes of video files generated from these octave and python images are significantly different from each other.
    2. 


    


      

    • Octave filesize : 60 kilobytes
    • 


    • Python filesize : 116 kilobytes
    • 


    


    Why do we have this apparently very strange behavior ?

    


    EDIT

    


    Since it was suggested that the behavior might be due to octave and python using different bit-depths to store the images, I changed the octave code to use 8 bit numbers

    


    im1 = uint8(255*ones(100,100)); # white
im2 = uint8(zeros(100,100));    # black


    


    and now the image file sizes are nearly the same

    


      

    • Octave white : 118 bytes, black : 90 bytes
    • 


    • Python white : 120 bytes, black : 90 bytes
    • 


    


    but the problem is still the same for video files, octave : 60K, python : 116K

    


  • How to make transparent background of image after rotating using ffmpeg in Android ?

    18 juin 2020, par Mit Shah

    The issue I am facing is, rotating the image in app, it works as expected. But after saving the file, the difference is seen. The image is rotated but with black background instead of transparent. I have looked several places for solution but didn't succeed.

    



    I have tried this things :

    



      

    • In command, c=none, c=black@, c=black@0, c=000000, c=0x000000
    • 


    • With both extensions jpg and png.
    • 


    



    But failed to get the required output.

    



    For practical understanding, here are the two images stating Input and Output.

    



    Help me out. Thanks

    



    Input :
    
Input :

    



    Output :
    
Output :