Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (66)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications 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, par

    Certains 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, par

    Pré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 (12242)

  • React Native and FFMPEG render text differently

    13 février 2021, par Douglas Gondim

    I'm creating a video editing app in React Native that allows you to burn subtitles onto any video. I'm facing a problem that the font size on the phone screen doesn't match the font size after the video is rendered.

    


    I can guarantee that the text is being scaled down appropriately on the app side because the video obviously looks smaller on the phone screen than its original size. So the text that I'm placing on top of the video as a preview needs to be scaled down accordingly.

    


    The problem is each different font seems to have a different scale factor when I render the video. So the previewer is ALWAYS off. My solution was to manually scale up/down each font in regards to its approximate width and height factor. But that's a very poor solution.

    


    I assume it has something to do with something called a font.config file that you can set on ffmpeg.

    


    How can I make eg. Arial, 14 in React Native be rendered the same way as Arial, 14 on ffmpeg ? I really need help with that. I don't even know where to look.

    


    UPDATE WITH EXAMPLES***

    


    As you can see, I'm trying to render a subtitle of Size 93 on the original video.
enter image description here

    


    Since the video rendered on the phone screen is smaller than the original video, I calculated a resize factor which is :

    


    let resizeFactor = originalVideoHeight / renderedVideoHeightOnApp


    


    Now I just resized the text on the app as the following :

    


    let resizedFontSize = videoFontSize/resizeFactor


    


    After doing that, the preview text is going to be resized to be N times smaller than the original video. N is the same number by which the video itself got resized to be rendered. So everything should look perfect.

    


    But the problem is that EACH FONT behaves differently and the resize error is different for every individual font. There is no pattern.

    


    One more example with Open-SansRegular Font :
enter image description here

    


    One more example with Arial Font :
enter image description here

    


    My solution was to manually choose another resize factor for the height of the font on top of the first logical resizeFactor.

    


    That is not a good solution because the user cannot add their own fonts since I would need to "calibrate" each one of them first.
enter image description here

    


    I have also tried to render the text on the app the same size of the text on the video and then applying a transform : [scale : 1/resizeFactor]. It doesn't look good as well.

    


    The only conclusion I can get to is that React Native and FFMPEG encode fonts differently and I need to standardize that encoding. Maybe with some fancy font.config file I don't even understand.

    


    But it's on the FFMPEG documentation :

    


      

    1. Use your own fontconfig configuration.
    2. 


    


    RNFFmpegConfig.setFontconfigConfigurationPath('') ;

    


    I would also like to point that I've set the PlayResX and PlayResY values on the Aegisub Advanced SubStation Alpha File correctly. I even tried to mess with the FFMPEG original_size filter. Nothing has worked.

    


  • What's the most performant way to encode an mp4 video of frames from a webgl canvas using Javascript in a web browser ?

    17 janvier 2024, par Keith Carter

    I can capture the frames from the canvas using readPixels (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels) but then what ?

    


    I think there are a few wasm versions of ffmpeg but they're slow.

    


    I found this web assembly mp4 encoder but it's no longer supported and doesn't work in Chrome on my phone (Android 13).

    


    Any other suggestions ?

    


  • Can this be done in Handbrake or FFMPEG

    2 décembre 2022, par Takin

    Just wonder this could be done in Handbrake or FFMPEG.
Any other transcoding software in Windows or MacOS would also be acceptable.

    



    I have many family videos, shooted with DSLR/action cam/phone.
And the files are really huge without transcoding them.
There are something I would like to have,

    



      

    1. Metadata should be all captured. Using Handbrake would not be able to capture the information of the used device. Also, the capture date will become the transcoding date which is definitely unacceptable.

    2. 


    3. I would like to transcode them into HEVC (H.265)

    4. 


    5. I need to batch transcode them since there're a lot of videos.

    6. 


    



    If it's possible (not neccessary), I would also like to have the filename as "YYYYMMDD_HHMMSS".

    



    I think both 1 and 3 are quite frequently asked questions.
This thread will be quite useful to all people who are looking for the same answer as well.
Thanks a lot !