Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (46)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Les formats acceptés

    28 janvier 2010, par

    Les 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 (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (9455)

  • ffmpeg convert white color to alpha

    11 janvier 2021, par tony

    Hello i took a picture with my camera :a drawing of a square frame on a white paper ; i'm trying to convert the white to transparent and keep the black color frame.

    


    So i started making 1 palette with only 2 colors to make the colors uniform and 1 palette to add the transparency

    


    ffmpeg -f lavfi -i "color=color=white:100x100" -f lavfi -i "color=color=black:100x100" -filter_complex "[0][1]hstack" -frames:v 1 blackwhite.png`
ffmpeg -i blackwhite.png -filter_complex "[0]split[a][b];[a]palettegen[pal1];[b]palettegen=reserve_transparent=on:transparency_color=white[pal2]" -map [pal1] palette1.png -map [pal2] palette2.png


    


    then i mapped the image png of the frame to convert the white to transparent and overlayed the result to a red background

    


    ffmpeg -i image.png -i palette1.png -i palette2.png -i background.png -filter_complex "[0:v][1:v]paletteuse=dither=bayer[a],[a]split[a1][a2];[a1][2:v]paletteuse=alpha_threshold=128[c];[3:v][c]overlay[d]" -map [a2] -c:v png out.png -map [d] -c:v png out1.png


    


    the png mapped to the first palette (as a test) comes as it should be, pure black and white,the second comes with no transparency at all and covers the background
what am i doing wrong ?

    


  • C - FFmpeg changing the output stream codec_tag

    12 octobre 2020, par emdou

    I'm having fun with the FFmpeg library to better undestand it. A came across a hiccup when transmuxing from an mp4 to an mkv format. The error being that the mp4a tag is not supported :

    


    [matroska @ 0000000002f100c0] Tag mp4a incompatible with output codec id '86018' ([255][0][0][0])


    


    Now I handle it simply by changing the codec_tag in the output stream. To do so, I check the supported AVCodeTag structs in the AVOutputFormat of the output AVFormatContext. In my example I have :

    


    Video: avc1  -> Unsupported by mkv but does't make a fuss about it (changed to H264 tag 875967048)
Audio: mp4a  -> Unsupported by mkv and refuses transmuxing if not changed (changed to 0)


    


    For the .ts format neither is a supported codec tag but transmuxing works fine (mostly).

    


    The error is raised when trying to write the output file header.

    


    I'm really having trouble understanding what changing the codec_tag really does during transmuxing. What is really happening under the hood ?

    


  • avcodec/mips : fix type mismatch in h264dsp_msa.c

    18 juillet 2020, par Shiyou Yin
    avcodec/mips : fix type mismatch in h264dsp_msa.c
    

    gcc warning : assignment from incompatible pointer type.

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/mips/h264dsp_mips.h
    • [DH] libavcodec/mips/h264dsp_msa.c