Recherche avancée

Médias (91)

Autres articles (59)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (9379)

  • Anomalie #4375 : Tests unitaires en erreur

    24 octobre 2020, par Franck D

    Hello
    Juste pour dire que j’ai refait les tests en php 8 en mettant la proposition de b_b https://core.spip.net/issues/4579#note-2
    Windows 10 (1909)

    Laragon avec :
    Php 8.0.0RC2 (VS16 x64 Non Thread Safe) https://windows.php.net/qa
    Apache 2.4.46 Win64 avec mod_fcgid-2.3.10-win64-VS16 https://www.apachelounge.com/download/
    Mysql 8.0.22 (mysql-8.0.22-winx64.zip) https://dev.mysql.com/downloads/mysql/
    phpMyAdmin 5.0.4 https://www.phpmyadmin.net

    Prefix des tables à l’installation : "test1"
    SPIP 3.3.0-dev GIT [master : 08981b68]

    Cela donne 32 échecs dont le retour de sql_insert_select maintenant, ce n’est pas forcément "grave" dans le sens ou il y en a pas mal, avec https://core.spip.net/issues/4576 donc possible qu’en corrigeant Textwheel, le nombre d’échec se réduise considérablement

  • 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.
When creating the merged video I hear a cut or a loop sound of the last sentence for like 0.2 seconds.
I have tried to solve it in many different ways, listed below.

    


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

    


    This is my code :

    


    def merge_videos_with_subs(
    background_path, audio_path, subs, output_directory, output_filename
):
    try:
        # Load background video and audio
        background_clip = VideoFileClip(background_path)
        background_clip = background_clip.without_audio()
        audio_clip = AudioFileClip(audio_path)

        # Adjust video duration to match audio duration
        audio_duration = audio_clip.duration

        # If the background video is longer, trim it to match the audio duration
        if background_clip.duration > audio_duration:
            background_clip = background_clip.subclip(0, audio_duration)
        # If the audio is longer, loop the background video
        else:
            background_clip = background_clip.loop(duration=audio_duration)

        # Set audio of the background clip
        background_clip = background_clip.set_audio(audio_clip)

        # Overlay subtitles on the video
        final_clip = CompositeVideoClip(
            [background_clip, subtitles.set_pos(("center", "bottom"))]
        )

        # Ensure the output directory exists
        os.makedirs(output_directory, exist_ok=True)

        # Define the output path
        output_path = os.path.join(output_directory, output_filename)

        # Write the merged video with subtitles
        final_clip.write_videofile(
            output_path, codec="libx264", audio_codec="aac", threads=4, fps=24
        )

        # Close the clips
        final_clip.close()
        background_clip.close()
        audio_clip.close()

        print(f"Merged video with subtitles saved to: {output_path}")
    except Exception as e:
        print(f"Error merging videos: {e}")


    


    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.
    
When I run my code without the background subclip to match the audio it worked flawlessy.
If I let the background run until its full duration or make it loop there were no audio issues.
    
Looks like the issue is on the cutting part.

    


  • 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 :)