Recherche avancée

Médias (91)

Autres articles (98)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (8187)

  • Adding trimming option to Youtube-dl audio script

    22 septembre 2020, par Jim Jamil

    This is the current script, it's a Windows batch file that prompts for a Youtube url and then downloads the best audio in m4a. It's basically cobbled together and uses aria2 to manage the download.

    


    @echo off
SETLOCAL ENABLEDELAYEDEXPANSION
(set /p var1="Url? " && youtube-dl -f bestaudio[ext=m4a] --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --restrict-filenames -o "%%(title)s.%%(ext)s" --add-metadata --embed-thumbnail !Var1!)
ENDLOCAL
pause


    


    After asking for the url, I want to also prompt the user to input the start and end times to trim the audio, which would be done by ffmpeg post download.

    


    Something like :

    


    ffmpeg -i file.m4a -ss 00:00:20 -to 00:00:40 -c copy file-2.m4a


    


    Based on this : https://unix.stackexchange.com/questions/182602/trim-audio-file-using-start-and-stop-times/302469#302469

    


    The beginning and end times would need to be variables set by user input in 00:00:00 format, but not sure how to add the ffmpeg post-processing at the end or how it would all fit together. I want to add this trimming feature to remove some of the preamble on podcasts and get straight to the guest part of the show.

    


    The --embed-thumbnail is optional, and won't work anyway unless Atomic Parsley is present. FFmpeg often has trouble with Album Art anyway so I usually just use -vn on the final output file.

    


  • Rsync a video stream continously and watch it

    13 juin 2017, par Ural

    I am recording a cam on a remote machine in my office. I use ffmpeg for that, and writing to mpegts file.
    I want to copy that stream locally, to have a fresh copy, and watch it simultaneously.
    I don’t know options for rsync to grab a changing (appending) file, so I am using loop for it, and it is very slow.

    while true; do rsync -avz --progress --partial --append remote:~/myvideo.mp4 ~/; done

    For watching, I tried :

    mkfifo /tmp/fifo
    tail -f ~/myvideo.mp4 > /tmp/fifo
    mplayer /tmp/fifo

    But because rsync is stopping every 5 sec, it is working unstable.

    How to record and stream a remote cam continuously, and use only one network stream for that ?

  • Video Spec to fluent-FFMPEG settings

    26 novembre 2020, par Dean Van Greunen

    Not sure how to translate this video spec into fluent-FFmpeg. please assist.

    



    

    


    This is the only video I have that plays on my iPhone, and I would like to reuse the video's encoding to allow other videos I have, to be converted into the same video format. resulting in having my other videos playable via iPhone and iOS. (this also happens to play on android, I would like the recommended encoding settings to also work on android)

    


    


    


    The video should also be streamable, I know theres a flag called +faststart but not sure how to use it.

    


    



    


    enter image description here

    



    


    here is my existing code

    


    function convertWebmToMp4File(input, output) {
  return new Promise(
    function (resolve, reject) {
  ffmpeg(input)
    .outputOptions([
      // Which settings should I put here, each on their own line/entry <-- Important plz read
      '-c:v libx264',
      '-pix_fmt yuv420p',
      '-profile:v baseline',
      '-level 3.0',
      '-crf 22',
      '-preset veryslow',
      '-vf scale=1280:-2',
      '-c:a aac',
      '-strict experimental',
      '-movflags +faststart',
      '-threads 0',
    ])
    .on("end", function () {
      resolve(true);
    })
    .on("error", function (err) {
      reject(err);
    })
    .saveToFile(output);
  });
}


    



    


    TIA