Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (50)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    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 avril 2011, par

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

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

Sur d’autres sites (6486)

  • How to create a FFMPEG VIDSTAB batch script Windows

    2 octobre 2019, par esdoublelef

    i’m a photographer and I download photographs (.jpg) and videos (.mov) into a single Windows folder

    I’m looking to create a script that will run the below 3 lines of FFMPEG for every instance of .mov in the folder and let it create stabilized .mp4 copies of the video. I’ll delete the originals manually later.

    ffmpeg -i DSCF0229.MOV -vf vidstabdetect=shakiness=5:accuracy=15:stepsize=6:mincontrast=0.3:show=2 -y dummy.mp4

    ffmpeg -i DSCF0229.MOV -vf scale=trunc((iw*1.15)/2)*2:trunc(ow/a/2)*2 -y scaled.mp4

    ffmpeg -i scaled.mp4 -vf vidstabtransform=smoothing=30:input="transforms.trf":interpol=linear:crop=black:zoom=0:optzoom=1,unsharp=5:5:0.8:3:3:0.4 -y DSCF0229stabilized.mp4

    i can tweak a bit of code, but i’m clueless on where to start. i tried "for do" and even a batch.bat file, but i just can’t get the proper syntax right.

    really appreciate any help here !!

  • Rotate affinity values in a batch script for loop

    18 mars 2015, par Albert Amir Givol

    In windows 8.1, I’m converting my videos to HEVC using FFmpeg, using this simple batch script :

    md hevc

    start /affinity 0x7 for %%k in (*.mkv *.mp4) do ffmpeg -i "%%k" -map 0 -c copy -c:v libx265 -y "hevc\%%~nk.mkv"

    I’m using the Start /affinity to limit FFmpeg to 3/4 threads, otherwise my computer gets chocked. It works fine, except it uses the same affinity value for an entire folder, and I’d rather rotate the affinity values between 0x7, 0xb, 0xd and x0e, so that it changes the active cores each time another video starts. I’ve tried putting the start /affinity in different positions in the command line, and I’ve tried running a loop within a loop, but nothing I’ve tried has worked. Any ideas ?

  • Bash script to recursive find and convert movies

    24 mars, par Jacco

    in my large movie collection I would like to search for movies with the primary (first) audio track with DTS coding to be converted to Dolby.

    


    My problem would be the first track I think. My current bash script will list any movie containing a DTS track, but does not specify which track.

    


    #!/bin/bash
# My message to create DTS list
find /home/Movies -name '*.mkv' | while read f
do
if mediainfo "$f" | grep A_DTS; then
echo $f 
fi
done


    


    After that I would like to run this command

    


    ffmpeg -i $f -map 0:v -map 0:a:0 -map 0:a -map 0:s -c:v copy -c:a copy -c:s copy -c:a:0 ac3 -b:a:0 640k $f


    


    or is there a way to move all the audio tracks down and adding the new AAC track ?

    


    ###Progress

    


    Thanks to @llogan I have finetuned the bash to find the required files.

    


    #!/bin/bash
# My DTS conversion script
# credits to llogan

find /Mymovies -name '*.mkv' | while read f
do
 if ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of csv=p=0 "$f" | grep dts; then
 echo "$f"
fi
done


    


    Now digging into the command I think I may have a working command. Anybody spot a problem ?

    


    ffmpeg -i $f
      -map 0:v -c:v copy
      -map 0:a:0? -c:a:0 ac3
      -map 0:a:0? -c:a:1 copy
      -map 0:a:1? -c:a:2 copy
      -map 0:a:2? -c:a:3 copy
      -map 0:a:3? -c:a:4 copy
      -map 0:a:4? -c:a:5 copy
      -map 0:a:5? -c:a:6 copy
      -map 0:a:6? -c:a:7 copy
      -map 0:a:7? -c:a:8 copy
      -map 0:a:8? -c:a:9 copy
      -map 0:s? -c copy
      -b:a:0 640k
/tmp/output.mkv
mv $f /home/DTS_BACKUP/
mv /tmp/output.mkv $f
rm /tmp/output.mkv


    


    So the end result would look like :

    


    #!/bin/bash
# My DTS conversion script
# credits to llogan
find /Mymovies -name '*.mkv' | while read f
do
 if ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of csv=p=0 "$f" | grep dts; then

ffmpeg -i $f
          -map 0:v -c:v copy
          -map 0:a:0? -c:a:0 ac3
          -map 0:a:0? -c:a:1 copy
          -map 0:a:1? -c:a:2 copy
          -map 0:a:2? -c:a:3 copy
          -map 0:a:3? -c:a:4 copy
          -map 0:a:4? -c:a:5 copy
          -map 0:a:5? -c:a:6 copy
          -map 0:a:6? -c:a:7 copy
          -map 0:a:7? -c:a:8 copy
          -map 0:a:8? -c:a:9 copy
          -map 0:s? -c copy
          -b:a:0 640k
/tmp/output.mkv
mv $f /home/DTS_BACKUP/
mv /tmp/output.mkv $f
rm /tmp/output.mkv

fi
done