Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (38)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

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

Sur d’autres sites (9313)

  • Is there any (or possible) html5 player that play videos on different resolution without convertion the media file ?

    1er avril 2020, par In-my-country-we-dont-use-name

    I want to play videos on my website with a html5 media player.I found this for an example :

    



    https://plyr.io/

    



    but it needs different videos for every resolution with these codes :

    



     
                        
                        
                        


    



    I dont want convert media files with some convertion technologies for example ffMpeg, IF IT IS POSSIBLE.So, I want to learn how to play videos on different resolution without convertion.If you know a html5 player, you can suggest me.

    



    Its urgent.My company loses many thousand dollars everyday because of this problem.If we cant solve this, we cant save us from bankrupt.I dont want go to jail because of depts.

    


  • ffmpeg neighbor resize giving distortion when resizing video game footage. 2x2 pixels converted to 3x3 don't hold their color and are pixelated

    12 avril 2020, par PixelFrustated

    Here is my ffmpeg code :

    



    ffmpeg -i C :\FFMPEG\bin\input.mp4 -vf "scale=-2:1080" -sws_flags neighbor -c:v libx264 -crf 0 -preset Slow -c:a copy -b:a 320k C :\FFMPEG\bin\VIDEO2_1080p.mp4

    



    I'm converting a 720p video to 1080p. The game is 2x2 pixels and when I do the conversion they should be flat 3x3 pixels but instead they come out with slight miscolors on the insides between the pixels and their color is slightly off.

    



    Can anyone help me figure out why this warped ?

    



    Pixels on the left are 2x2 and are converted to the pixels on the right.

    



    Instead of 2x2 expanding out to a 3x3 it takes a weird blend going vertical but the horizontal pixels are just fine.

    


  • FFMPEG - Width/ Height Not Divisible by 2 (Scaling to Generate MBR Output)

    15 avril 2020, par Sanjeev Pandey

    I am trying to generate multilple variants of videos in my library (Mp4 formats) and have renditions planned ranging from 1080p to 240p and popular sizes in between. For that I am taking a video with a AxB resolution and then running through a code (on bash) which scales them to desired following sizes - 
426x240
640x360
842x480
1280x720
1920x1080, with different bitrates of course, and then saves as Mp4 again.

    



    Now, this works just fine if source video has height and width divisible by 2, but code breaks on the following line for the videos with odd width and height :
-vf scale=w=${width}:h=${height}:force_original_aspect_ratio=decrease"

    



    Where 'width' and 'height' are the desired (and hardcoded) for every iteration : E.g. "426x240", and "640x360"

    



    The Error :
[libx264 @ 00000187da2a1580] width not divisible by 2 (639x360)
Error initializing output stream 1:0 -- Error while opening encoder for output stream #1:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    



    Now approaches those are explained in this one doesn't work for me since I am scaling - FFMPEG (libx264) "height not divisible by 2"

    



    And, I tried this one too but it seems all qualities are getting the same size -ffmpeg : width not divisible by 2 (when keep proportions)

    



    

      

    • This is how I tried to use this one : scale='bitand(oh*dar,65534)':'min(${height},ih)'
    • 


    


    



    Kindly suggest how to solve this, keeping in view that :
1. I have a very large library and I can't do manual change for every video
2. I need to scale the video and keep the aspect ratio

    



    Thanks !

    



    PS : [Edit] One way that I can see is padding all of the odd height/ weight videos using a second script in advance. This however doubles my work time and load. I would prefer to keep it in single script. This is the script I see that I can use for padding :
```ffmpeg -r 24 -i -vcodec libx264 -y -an -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"`` (from : FFMPEG (libx264) "height not divisible by 2")