Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (67)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • 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

Sur d’autres sites (10750)

  • Using command line find to encode files and save to same directory

    15 janvier 2017, par Ali Samii

    I am trying to execute a find bash command to process hundreds of video files that are all named video-original.mp4 but are in subdirectories of a parent directory.

    Here’s an example of the directory structure :

    videos
    ├── 01a
    │   └── video-original.mp4
    ├── 01b
    │   └── video-original.mp4
    ├── 02a
    │   └── video-original.mp4
    ├── 02b
    │   └── video-original.mp4
    ├── 03a
    │   └── video-original.mp4
    └── 03b
       └── video-original.mp4

    I am using the following command :

    find ./ -name 'video-original.mp4' -exec bash -c 'ffmpeg -i "$0" -f mp4 -vcodec libx264 -preset veryslow -profile:v high -acodec aac -movflags faststart video.mp4 -hide_banner' {} \;

    The problem I am having is that it is saving the file video.mp4 in the parent videos directory, instead of in the subdirectory next to the original video-original.mp4

    Afterwards, I want to delete the file video-original.mp4. Currently, my process entails waiting for all the videos to be reencoded, and then once complete, issuing a separate command to delete the file video-original.mp4 :

    find ./ -name 'video-original.mp4' -exec bash -c 'rm -rf "$0"' {} \;

    And my final step would be to extract a screenshot of the new video.mp4 at 10 seconds and save it as thumbnail.jpg. Again, I am currently doing that as a separate step that I execute after the previous two steps are completed.

    find ./ -name 'video.mp4' -exec bash -c 'ffmpeg -i "$0" -ss 00:00:10 -vframes 1 thumbnail.jpg' {} \;

    What I would like to do is combine these three steps into a single command so the end result will be :

    videos
    ├── 01a
    │   ├── thumbnail.jpg
    │   └── video.mp4
    ├── 01b
    │   ├── thumbnail.jpg
    │   └── video.mp4
    ├── 02a
    │   ├── thumbnail.jpg
    │   └── video.mp4
    ├── 02b
    │   ├── thumbnail.jpg
    │   └── video.mp4
    ├── 03a
    │   ├── thumbnail.jpg
    │   └── video.mp4
    └── 03b
       ├── thumbnail.jpg
       └── video.mp4

    Finally, it would be great to save that as a bash script and include it in my path in /usr/local/bin or ~/bin as an executable so I could just issue the command reencode and it would run. Would be even better if the input file could have any video file, for example, random_name.mp4 or random_name.mov or random_name.webm, basically any video file (but skipping video.mp4 at the encoding step).

  • insert audio into another audio file (eg a censor bleep)

    3 avril 2019, par Redzarf

    I need to insert a short beep into another audio file (similar to a censorship bleep) using linux and/or php.

    I’m thinking there should be some way to do it with ffmpeg (with some combination of -t, concat, map, async, adelay, itsoffset ?) or avconv or mkvmerge - but haven’t found anyone doing this. Maybe I need to do it in 2 stages somehow ?

    For example if I have a 60 second mp3 and want to beep out 2 seconds at 2 places the desired result would be :

    0:00-0:15  from original
    0:15-0:17  beep (overwrites the 2 secs of original)
    0:17-0:40  from original
    0:40-0:42  beep
    0:42-0:60  from original

    I have a 2 second beep.mp3, but can use something else instead like -i "sine=frequency=1000:duration=2"

  • FFmpeg Overlay Filter Changes Source FPS

    24 juin 2021, par user4134414

    I want to overlay a video on top of another slow-motion video.
Surprisingly, the overlay becomes also slow-motion.

    


    I'm applying the following command :

    


    ffmpeg
  -to 00:00:01.000 -i camera1.mp4                       // original video
  -ss 00:00:02.000 -to 00:00:09.000 -i confeti.mov      // overlay video
  -filter_complex '[0]setpts=3.333*PTS[s0]; [s0][1]overlay'  // change FPS of original video and overlay
  -r 24 out.mp4


    


    The output can be seen here : out.mp4

    


    As you can see, the "confetti" overlay is slow while the original video is playing and go back to normal speed once the original video ends.

    


    Any idea why it happens and how can it be fixed ?