Recherche avancée

Médias (91)

Autres articles (49)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (4605)

  • bash script to start/stop ffmpeg x11grab

    28 juin 2012, par lunacafu

    A application is storing its status in a file on the server /temp/status.txt. There are 4 status possible : wait, ready, recording, finished. With a cronjob I would like to start a shell script that checks this file and take action as follows :

    • wait -> do nothing
    • ready -> execute ffmpeg -f x11grab -s cif -r 25 -i :0.0 /tmp/out.mpg. Now while ffmpeg captures, the status.txt file still has to be checked for a change to the status,
    • recording -> do nothing
    • finished -> send q command to ffmpeg process to quit capturing process and finish script.

    I tried to solve it with expect and xdotool to realize that this absolutely the wrong way. My problem is that I acutally have no experience in bash and handling processes, child processes etc.

  • I need to make a flip video and add 2 watermarks, my script doesn't work for some reason ? ffmpeg

    19 janvier 2024, par DIABOLI FERRE

    I need to make a flip video and add 2 watermarks, my script doesn't work for some reason (the script just flips the video, but does not apply watermarks).

    


    ffmpeg -i input.mp4 -i watermark.png -i watermark2.png -filter_complex "hflip;[1:v]scale=iw*0.5:-1[top];[2:v]scale=iw*0.1:-1[top2];[0:v][top]overlay=x=(W-w)/40:y=(H-h)/40[tmp];[tmp][top2]overlay=5:H-h-5" -preset superfast output.mp4


    


  • Permission Denied error with Get-ChildItem in PowerShell script

    8 juillet 2020, par owcs

    Whenever I try to run my PowerShell script, I get an error. Please note that I don't have much programming knowledge.

    


    Here is the code (with some folder names replaced)

    


    cd -Path "F:\****\folder1"
$files = Get-ChildItem
foreach ($file in $files) {
  $newName = $file.BaseName + ".mp3"
  ffmpeg -i $file.FullName -codec:a libmp3lame -b:a 320k $newName
}


    


    Inside of folder1, there is folder2, which has the files I want to get. I'm not running in folder2, because in the future there will be a folder3 inside of folder1 and I want to get files from both. I am getting the error :

    


    F:\****\folder1\folder2: Permission denied


    


    I believe the error is with Get-ChildItem. How can I fix this ? I am running the script as administrator.