Recherche avancée

Médias (91)

Autres articles (53)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (9172)

  • configure : Don’t explicitly disable PIC for windows targets

    28 mai 2013, par Martin Storsjö
    configure : Don’t explicitly disable PIC for windows targets
    

    This reverts e08c946c6 and 05165c2f7a. The actual intention of
    e08c946c6 was to fix shared library builds for arm/win32, which
    can also be accomplished in other ways.

    Disabling pic on those platforms broke inline assembly on cygwin/64
    (since some inline assembly requires knowing whether we are building
    as PIC or not), and might also break inline assembly on other
    compilers on windows.

    As a side-effect, this unfortunately brings back all the warnings
    about PIC not having any effect on that platform.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] configure
  • Python ffmpeg issue

    7 mars 2024, par SDailey

    I have a Python script which takes short videos (somewhere just over a minute long) and does the following

    &#xA;

      &#xA;
    1. strips original audio from mp4 video file&#xA;ffmpeg -i 1.mp4 -vcodec copy -an nosound_1.mp4"
    2. &#xA;

    3. gets the length in seconds for an existing mp3 that will be inserted&#xA;ffmpeg.probe(&#x27;1.mp3&#x27;)[&#x27;format&#x27;][&#x27;duration&#x27;]
    4. &#xA;

    5. If the mp3 length is 57 seconds or above&#xA;trim the mp4 video to 58 seconds&#xA;ffmpeg -i nosound_1.mp4 -ss 00:00:00 -t 00:00:58 -c copy trimmed_1.mp4&#xA;else&#xA;trim the mp4 video to mp3 length + 2&#xA;ffmpeg -i nosound_1.mp4 -ss 00:00:00 -t 00:00:length&#x2B;2 -c copy trimmed_1.mp4
    6. &#xA;

    7. insert mp3 into newly trimmed video&#xA;input_video = ffmpeg.input(&#x27;/path/to/trimmed_1.mp4&#x27;)&#xA;input_audio = ffmpeg.input(&#x27;/path/to/1.mp3&#x27;)&#xA;ffmpeg.concat(input_video, input_audio, v=1, a=1).output(&#x27;new_1.mp4&#x27;).run()
    8. &#xA;

    &#xA;

    However, about a third of the time, the final video stream seems to have been compressed to finish at about 54 seconds - so although the video continues "playing" and the audio plays correctly until the end (usually 58 seconds), the video stream freezes on the last video frame at 54 seconds.

    &#xA;

    So, if I watch trimmed_1.mp4, the video plays for 58 seconds, and let's say the last frame of the video is someone raising their hand.&#xA;The new_1.mp4 (trimmed_1 combined with 1.mp3), when played, seems to hit that last frame of someone raising their hand at the 54-second mark, so it looks like the video stream was slightly sped up to finish at the 54-second mark, and for the last 4 seconds makes it look like the video stream is frozen because it's showing the last frame while the audio continues to play.

    &#xA;

    What is going wrong, and how can I fix it ?

    &#xA;

  • ffmpeg remove all silent parts from audio file

    18 décembre 2020, par user195392

    I would like to cut the silent parts (where my prof writes on the blackboard but does not talk) off from my lecture notes. I tried ffmpeg -i input.mp3 -af silenceremove=1:0:-50dB output.mp3 from this post, but it only deletes silence from the beginning of my file.

    &#xA;

    Can I delete the silence everywhere with one command ? I only want the speech without all the writing on the blackboard. Thank you !

    &#xA;