Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (104)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (10991)

  • Video is cut after adding 2 watermarks with FFMPEG-KIT [closed]

    7 août 2023, par dfjick

    I made a FFMPEG-KIT command to add 2 PNG watermarks to the video and everything went smoothly.

    


    String ffmpegCommand = "-y -i " + videoPath +
            " -i " + watermarkImagePath +
            " -i " + userID +
            " -filter_complex " +
            "\"[0:v][1:v]overlay=x='if(lt(mod(t,10),5),10,W-w-10)':y='if(lt(mod(t,10),5),10,H-h-35)',\"" +
            "\"overlay=x='if(lt(mod(t,10),5),7,W-w-7)':y='if(lt(mod(t,10),5),165,H-h-15)'[out]\"" +
            " -map [out] -map 0:a -c:v libx264 -crf 18 -preset slow -c:a aac " + outputPath;


    


    But for videos that are longer than 20 seconds, the results don't match the original video, sometimes the videos are only <20 seconds and at random times.

    &#xA;

    I get this error, how do I fix it ?

    &#xA;

    W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] Packet corrupt (stream = 1, dts = 366976)&#xA;W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] .&#xA;E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] Invalid NAL unit size (63547 > 20190).&#xA;E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] missing picture in access unit with size 20194&#xA;W/ffmpeg-kit: /storage/emulated/0/DCIM/android_100394_20230807_162805_5465009.mp4: corrupt input packet in stream 1&#xA;E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Invalid NAL unit size (63547 > 20190).&#xA;E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Error splitting the input into NAL units.&#xA;E/ffmpeg-kit: Error while decoding stream #0:1: Invalid data found when processing input&#xA;

    &#xA;

    I've tried to use this -fflags &#x2B;discardcorrupt, but the result is still the same. The duration of the video that has been watermarked does not match the original video.

    &#xA;

  • Evolution #3179 : Pouvoir désactiver l’héritage de logo entre les rubriques (via une constante)

    13 mars 2014, par b b

    Ça me semble être une bonne idée, sans ça on est obligé de fourber à coup de :

    [(#LOGO_RUBRIQUE|matchrubon#ID_RUBRIQUE\.|oui)[(#LOGO_RUBRIQUE|image_reduire150,150)]]

    Reste à voir si le nom de la constante convient à tout le monde et hop commit :)

  • audio issues when merging a video with an audio file using python ffmpeg and moviepy

    29 février 2024, par Stevenb123

    I’m trying to create a code that syncs between an audio file and a background file in terms of duration.&#xA;When creating the merged video I hear a cut or a loop sound of the last sentence for like 0.2 seconds.&#xA;I have tried to solve it in many different ways, listed below.

    &#xA;

    Has anyone solved this issue ? I saw many people having a similar problem.&#xA;I’m using Ubuntu version 20.04 and ffmpeg version 4.2.7

    &#xA;

    This is my code :

    &#xA;

    def merge_videos_with_subs(&#xA;    background_path, audio_path, subs, output_directory, output_filename&#xA;):&#xA;    try:&#xA;        # Load background video and audio&#xA;        background_clip = VideoFileClip(background_path)&#xA;        background_clip = background_clip.without_audio()&#xA;        audio_clip = AudioFileClip(audio_path)&#xA;&#xA;        # Adjust video duration to match audio duration&#xA;        audio_duration = audio_clip.duration&#xA;&#xA;        # If the background video is longer, trim it to match the audio duration&#xA;        if background_clip.duration > audio_duration:&#xA;            background_clip = background_clip.subclip(0, audio_duration)&#xA;        # If the audio is longer, loop the background video&#xA;        else:&#xA;            background_clip = background_clip.loop(duration=audio_duration)&#xA;&#xA;        # Set audio of the background clip&#xA;        background_clip = background_clip.set_audio(audio_clip)&#xA;&#xA;        # Overlay subtitles on the video&#xA;        final_clip = CompositeVideoClip(&#xA;            [background_clip, subtitles.set_pos(("center", "bottom"))]&#xA;        )&#xA;&#xA;        # Ensure the output directory exists&#xA;        os.makedirs(output_directory, exist_ok=True)&#xA;&#xA;        # Define the output path&#xA;        output_path = os.path.join(output_directory, output_filename)&#xA;&#xA;        # Write the merged video with subtitles&#xA;        final_clip.write_videofile(&#xA;            output_path, codec="libx264", audio_codec="aac", threads=4, fps=24&#xA;        )&#xA;&#xA;        # Close the clips&#xA;        final_clip.close()&#xA;        background_clip.close()&#xA;        audio_clip.close()&#xA;&#xA;        print(f"Merged video with subtitles saved to: {output_path}")&#xA;    except Exception as e:&#xA;        print(f"Error merging videos: {e}")&#xA;

    &#xA;

    I’ve tried changing the codec, tried cutting 0.2 seconds of the audio before and after the merge or silencing it, nothing seems to help.
    &#xA;When I run my code without the background subclip to match the audio it worked flawlessy.&#xA;If I let the background run until its full duration or make it loop there were no audio issues.
    &#xA;Looks like the issue is on the cutting part.

    &#xA;