Advanced search

Medias (91)

Other articles (67)

  • La sauvegarde automatique de canaux SPIP

    1 April 2010, by

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 April 2011, by

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 April 2011, by

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

On other websites (6219)

  • Batch Script to Download Video with youtube-dl and Convert with FFmpeg

    24 October 2019, by Matt McManis

    I’m trying to

    1. Using a single batch script to
    2. Download an mp4 video using youtube-dl
    3. Save the video’s original title to a batch variable
    4. Convert the video to webm with FFmpeg

    I want to keep the original title, so it needs to read the title with youtube-dl, save it to a variable, and use that variable for FFmpeg input/output filename.


    CMD Batch

    1. Download Video

    youtube-dl -f best "https://www.youtube.com/watch?v=TWNhqCHw0qc" -o "C:\Users\Matt\Downloads\%%(title)s.mp4" --merge-output-format mp4

    2. Download Video using Loop

    This is used to save the title to a variable %%a.

    for /f "delims=" %%a in ('youtube-dl -f best "https://www.youtube.com/watch?v=TWNhqCHw0qc" -o @"C:\Users\Matt\Downloads\%%(title)s.mp4" --merge-output-format mp4') do (echo example)

    3. Final Script
    Download Video, Save Title, Convert with FFmpeg

    Sorted

    for /f "delims=" %%a in ('
       youtube-dl
       -f best "https://www.youtube.com/watch?v=TWNhqCHw0qc"
       -o @"C:\Users\Matt\Downloads\%%(title)s.mp4"
       --merge-output-format mp4
       ')

    do (ffmpeg -y
       -i "C:\Users\Matt\Downloads\%%a.mp4"
       -c:v libvpx -b:v 1300K -crf 16 -pix_fmt yuv420p
       -map 0:v:0? -sn
       -c:a libvorbis -q:a 6 -ac 2 -map 0:a:0?
       -f webm
       "C:\Users\Matt\Downloads\%%a.webm"
       )

    Inline

    for /f "delims=" %%a in ('youtube-dl -f best "https://www.youtube.com/watch?v=TWNhqCHw0qc" -o @"C:\Users\Matt\Downloads\%%(title)s.mp4" --merge-output-format mp4') do (ffmpeg -y -i "C:\Users\Matt\Downloads\%%a.mp4" -c:v libvpx -b:v 1300K -crf 16 -pix_fmt yuv420p -map 0:v:0? -sn -c:a libvorbis -q:a 6 -ac 2 -map 0:a:0? -f webm "C:\Users\Matt\Downloads\%%a.webm")

    Error

    Before the script can ever reach FFmpeg, youtube-dl fails to download the file. It says the file has already been downloaded, even when there is no file in the directory.

    [download] @C#\Users\Matt\Downloads\Color Balloons.mp4 has already
    been downloaded

  • How to create bash script with ffmpeg to flip a dir of vids 180, then stitch together without losing vid length

    25 September 2022, by Maude Rozencrance's Cat

    I'm trying to make a bash script in linux to flip a bunch of AVI files 180 degrees, then stitch them together without losing the length of the vids. My code works, but it truncates each vid and makes 60 10sec vids, which should be 600 seconds of video, down to about 11 seconds.

    


    I removed the transpose to flip the vids and now I'm getting the correct vid length. So it works, but I have to flip the vid in the video player.

    


    >videos.txt

files=DSCF*.AVI

for f in $files
do
    #make list of vids, copy to videos.txt
    echo "file '$f'" >> videos.txt;
    echo "duration 10.0" >> videos.txt;
    
done

#stitch all vids together
ffmpeg -f concat -safe 0 -i videos.txt -c copy bigvid.AVI


    


  • Anomalie #620 (En cours): maintenir à jour les fonctions tierces incluses dans SPIP (script exter...

    7 July 2011, by cedric -