Recherche avancée

Médias (91)

Autres articles (86)

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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (11712)

  • How to generate a video by looping an image and then concat with another very long video without re-encoding using ffmpeg ?

    23 mars 2021, par Linghao Chen

    I have an image and a very long video (1.5h).
Now I want to generate a heading video about 5 seconds by looping the image, and then concatenate it with the long video. Since the video is long, I don't want to re-encode the videos.
I have tried to generate the heading video using

    


    ffmpeg -loop 1 -i image.png -c:v libx264 -t 5 -pix_fmt yuv420p head.mp4


    


    and then

    


    ffmpeg -f concat -i list.txt -c:v copy concat.mp4


    


    where the list.txt contains

    


    file head.mp4
file longvideo.mp4


    


    I have tried these operations on two machines.
On one machine, the concatenated video has no audio. Moreover, it stucks at 5-10 seconds and directly jump to 11s.
On the other machine, the video and audio are not synchronized.

    


    To provide more information, I have checked the codecs of the two videos by

    


    ffprobe -v error -select_streams v:0 -show_entries stream=codec_name \
  -of default=noprint_wrappers=1:nokey=1 xxxxx.mp4


    


    Both of them are h264.

    


    My question is, how to generate it correctly with ffmpeg ? If it is hard using ffmpeg, is there any method to do it fast ? As far as I know, Adobe Premiere and Final Cut Pro do not export as fast as I expect because they re-encode the videos.

    


  • ffmpeg encoded video has video/audio sync delay when uploading to Facebook & WhatsApp

    13 décembre 2019, par royherma
       "fluent-ffmpeg": "^2.1.2",
       "ffmpeg": "^0.0.4",
       node : 8

    Code to reproduce

    let command = ffmpeg()
           .input(tempFilePath)
           .input(watermarkFilePath)
           .complexFilter([
               "[0:v][1:v]overlay=W-w-20:H-h-20"
           ])
           .videoBitrate(2500)
           .videoCodec('libx264')
           .audioCodec('aac')
           .format('mp4')
           .output(targetTempFilePath)

    When applying the ffmpeg encoding command on the attached video, it plays fine on a local device - the issue however is when uploading to Facebook/WhatsApp the audio/video becomes out of sync

    Any ideas on what i need to change in terms of the video/audio settings so that the audio + video are in sync, even when uploaded to the various social networks ?

    Here’s a link to the 3 video files (original, post ffmpeg, post whatsapp upload that includes delay) if you want to get a better idea !

    https://wetransfer.com/downloads/445dfaf0f323a73c56201b818dc0267b20191213052112/24e635

    Thank you and appreciate any help !!

  • Using ffmpeg to cut up video into smaller video with exactly 30 frames

    30 mars 2018, par MonsieurBeilto

    I need to cut a video with >300 frames into ten videos, where the first video comprises the first 30 frames, the second video comprises frames from 31 to 60 and so on.