Recherche avancée

Médias (91)

Autres articles (59)

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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (9134)

  • How to re-encode an audio to match another one, to avoid re-encoding the whole audio

    21 mars 2024, par Bernard Wiesner

    I have an audio editor in the browser using ffmpeg (WebAssembly), and I want to insert new audio into the existing audio without having to re-encode everything. Re-encoding everything takes a long time, especially in the browser, so I would like to only re-encode the inserted file, match it to the original one and concatenate them using the copy command.

    


    On ffmpeg concatenate docs it says :

    


    


    All files must have the same streams (same codecs, same time base, etc.)

    


    


    But it is not clear what is meant by time base. So far I have observed I need to match :

    


      

    • codec
    • 


    • bit rate
    • 


    • sample rate
    • 


    • channels (mono, stereo)
    • 


    


    Is there anything else I need to match so that the resulting audio is not corrupt/broken when concatenating ?

    


    I have observed with mp3 for example it has VBR, CBR, and ABR. If the original audio has a bit rate of 128 kb/s, I am assuming it is a CBR, so I match it with :

    


    ffmpeg -i original.mp3
# > Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s

ffmpeg -i input.mp3 -b:a 128k -ar 44100 -ac 2 re_encoded.mp3

# then merge
# concat_list.txt contains the original audio and the re_encoded.mp3

ffmpeg -f concat -i concat_list.txt -safe 0 -c copy merged.mp3


    


    And that works fine for CBR such as 8, 16, 24, 32, 40, 48, 64, 80, 96, 112, 128, 160, 192, 224, 256, or 320 (docs), as far as I have tested.

    


    The issue is when the original.mp3 has a VBR (variable bit rate) or ABR, such as 150 kb/s.

    


    If I try to match it like below :

    


    ffmpeg -i input.mp3 -b:a 150k -ar 44100 -ac 2 re_encoded.mp3
ffmpeg -i re_encoded.mp3
# Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 160 kb/s


    


    The resulting bitrate is rounded to the nearest CBR which is 160.

    


    I can solve this with mp3 by using -abr 1 :

    


    ffmpeg -i input.mp3 -abr 1 -b:a 150k -ar 44100 -ac 2 re_encoded.mp3
ffmpeg -i re_encoded.mp3
# Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 150 kb/s


    


    Now the bitrate matches the original audio, however I am not sure this is correct since I am modifying the new audio to an ABR and concatenating it with a VBR ? I am not even sure how to check with ffmpeg if the audio is VBR, CBR or ABR, or if that even matters when concatenating.

    


    Another issue also happens with aac files. When I try to match the original audio bitrate I can't.

    


    ffmpeg -i input.mp3 -b:a 128k -ar 44100 -ac 2 re_encoded.aac
ffmpeg -i re_encoded.aac
# Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 135 kb/s


    


    The resulting bitrate always seems to be variable (135 in this case), and hence I can't match it to the original one.

    


    So my question is, what conditions need to be met when concatenating audios with different streams, and how can I achieve re-encoding only one audio to match the other one. Or if there is some package that can do this, it would be of great help.

    


  • ffv1 : Drop unnecessary casts and const qualifiers to match function signatures

    18 décembre 2014, par Diego Biurrun
    ffv1 : Drop unnecessary casts and const qualifiers to match function signatures
    

    libavcodec/ffv1dec.c:898:36 : warning : cast discards ‘const’ qualifier from pointer target type

    • [DBH] libavcodec/ffv1dec.c
  • Anomalie #2643 : Supprimer le texte du alt sur les puces de retour à la ligne pour faciliter les c...

    23 octobre 2014, par b b

    On a tenté le coup sans succès avec la propriété user-select cf https://developer.mozilla.org/en-US/docs/Web/CSS/user-select