Recherche avancée

Médias (0)

Mot : - Tags -/signalement

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

Autres articles (52)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (6358)

  • Moviepy has issues when concatenating ImageClips of different dimensions

    22 mars 2021, par Lysander Cox

    Example of the issues : https://drive.google.com/file/d/1WxfYtDTD0kc_4WQzzvB6QXkZWo-e2Vuk/view?usp=sharing

    


    Here's the code that led to the issue :

    


    def fragmentConcat(comment, filePrefix):
    finalClips = []
    dirName = filePrefix + comment['id']
    vidClips = [mpy.VideoFileClip(dirName + '/' + file) for file 
                in natsorted(os.listdir(dirName))]
    
    finalClip = mpy.concatenate_videoclips(vidClips, method = "compose")
    finalClips.append(finalClip)
    
    if 'replies' in comment:
        for reply in comment['replies']:
            finalClips += fragmentConcat(reply, filePrefix)
            
    return finalClips

def finalVideoMaker(thread):
    fragmentGen(thread)
    filePrefix = thread['id'] + '/videos/'

    #Clips of comments and their children being read aloud.
    commentClips = []

    for comment in thread['comments']:
        commentClipFrags = fragmentConcat(comment, filePrefix)
        commentClip = mpy.concatenate_videoclips(commentClipFrags, method = "compose")
        commentClips.append(commentClip)

        #1 second of static to separate clips.
        staticVid = mpy.VideoFileClip('assets/static.mp4')
        commentClips.append(staticVid)

    finalVid = mpy.concatenate_videoclips(commentClips)
    finalVid.write_videofile(thread['id'] + '/final.mp4')


    


    I'm certain that these issues appear somewhere in here, because the individual video "fragments" (which are concatenated here) do not exhibit the issue with the clip I showed.

    


    I have tried adding and removing the method = "compose" parameter. It does not seem to have an affect. How can I resolve this ? Thanks.

    


  • Command Line 'hls_segment_size' creates TS files with segment failures

    14 octobre 2019, par Phantom

    I am converting a simple mp4 video to hls but I need the segments to be in approximately a specific size

    I researched and found :

    -hls_segment_size 17000000

    17000000 bytes( 17MB)

    This creates TS files with approximate sizes, (does not have to be exact size)

    ffmpeg.exe -i "in.mp4" -vcodec copy -acodec aac -hls_list_size 0 -hls_segment_size 17000000 -f hls "out.m3u8"

    In the m3u8 file is created ’#EXT-X-BYTERANGE’, which is the way I want it

    #EXTM3U
    #EXT-X-VERSION:4
    #EXT-X-TARGETDURATION:10
    #EXT-X-MEDIA-SEQUENCE:0
    #EXTINF:8.400000,
    #EXT-X-BYTERANGE:1662108@0
    SampleVideo_1280x720_30mb0.ts
    #EXTINF:4.560000,
    #EXT-X-BYTERANGE:383896@0
    SampleVideo_1280x720_30mb1.ts
    #EXTINF:3.120000,
    #EXT-X-BYTERANGE:408712@383896
    SampleVideo_1280x720_30mb1.ts
    #EXTINF:5.640000,
    #EXT-X-BYTERANGE:1161840@0
    SampleVideo_1280x720_30mb2.ts
    #EXTINF:1.880000,
    #EXT-X-BYTERANGE:230864@0
    SampleVideo_1280x720_30mb3.ts
    #EXTINF:2.160000,
    #EXT-X-BYTERANGE:330880@230864
    SampleVideo_1280x720_30mb3.ts
    #EXTINF:2.080000,
    #EXT-X-BYTERANGE:489928@0
    SampleVideo_1280x720_30mb4.ts
    #EXTINF:4.400000,
    #EXT-X-BYTERANGE:1564348@489928
    SampleVideo_1280x720_30mb4.ts
    ...

    It seems alright, but it has a little problem. I’m testing on a player in the browser, and when the seconds goes from one segment to the other the video has a lock in sound and video. Something very annoying, not natural in the video.

    Not using ’-hls_segment_size’ will have functional TS files, and without BYTERANGE in the m3u8 file

    However, the size of the TS file will be according to the seconds defined

    I am currently trying to get a ts file that is close to a size set between 15MB and 20MB, and have BYTERANGE in the m3u8 file.

    Does anyone have any ideas ?

    here’s the problem I’m trying to describe :

    http://phantsc.rf.gd/AAA/Bbb.html

    exactly in the second 7 of the video a ’locking’ happens, this happens when going from one segment to another

  • fftools/ffmpeg : rework initializing encoders with no frames

    6 juillet 2023, par Anton Khirnov
    fftools/ffmpeg : rework initializing encoders with no frames
    

    When no frames were passed from a filtergraph to an encoder, but the
    filtergraph is configured (i.e. has output parameters), encoder flush
    code will use those parameters to initialize the encoder in a last-ditch
    effort to produce some useful output.

    Rework this process so that it is triggered by the filtergraph, which
    now sends a dummy frame with parameters, but no data, to the encoder,
    rather than the encoder reaching backwards into the filter.

    This approach is more in line with the natural data flow from filters to
    encoders and will allow to reduce encoder-filter interactions in
    following commits.

    This code is tested by fate-adpcm-ima-cunning-trunc-t2-track1, which (as
    confirmed by Zane) is supposed to produce empty output.

    • [DH] fftools/ffmpeg_enc.c
    • [DH] fftools/ffmpeg_filter.c