Recherche avancée

Médias (91)

Autres articles (42)

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

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (4415)

  • How can I combine two separate scripts being piped together to make one script instead of two ?

    29 mars 2016, par user556068

    I have two scripts that I pipe together. script1.sh | script2.sh Originally they were part of the same but I could never make it work correctly. The last part of script1 calls on youtube-dl to read a batch file and outputs a list urls into the terminal. Note the trailing - allows youtube-dl to read from stdin.

    cat $HOME/file2.txt | youtube-dl --ignore-config -iga -

    And script2 begins with :

    while read -r input
    do
    ffmpeg [arg] [input] [arg2] [output]

    What am I not seeing that is causing the script to hang when the two halves are combined yet work if one is piped into the other ?

    EDIT - It’s kind of funny how the answer is in the question.. Live and learn.

  • run ffmpeg from PHP web script

    18 février 2014, par it6

    I need to manage the recording/capture of a website mindwhile it is running a slide-show to get videos form these slides.

    My approach is :

    <?php

    define('FFMPEG_LIBRARY', '/usr/bin/ffmpeg ');

    $ffmpegcmd = "ffmpeg -f x11grab -r 25 -s 800x600 -i :0.0 /tmp/output.mpg";

    shell_exec($ffmpegcmd);  

    ?>

    But i get this error from php error log :

    [x11grab @ 0x81e8aa0] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 800 height: 600
    No protocol specified
    No protocol specified
    [x11grab @ 0x81e8aa0] Could not open X display.
    :0.0: Input/output error

    Similar command from console run good.

    Please, any help to get display and be able to control ffmpeg from browser php script ?

    Thanks in advance.


    thanks for your time.

    I got rid the X display error, but not I still haven't got the capture.

    Using xvfb I get an unknown file at /tmp written by www-data user :
    - rw-r—r— 1 www-data www-data 11252 Sep 12 09:49 server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm

    Running startx I got also an unknown file at /tmp
    - rw------- 1 www-data www-data 59 Sep 12 09:53 serverauth.oLcFlG7tXC

    any of both grow in size so it is not capturing anything. The content is some binary thing.
    What are those files about ?

    What I am trying is to write a script in which I can control the time ffmpeg is capturing the desktop to create a video from a jquery slide displayed on a website.

    My try from console is closer, but if I can do it by browser I will be able to know when to stop sending an AJAX request once the slide is finished.

    This is my try from console :

    #!/bin/bash

    # start the slide website: I will need to change it to control by querystring the language and course level
    firefox http://www.languagecourse.net/vocabulary-trainer.php &
    # start recording: I will need to adjust the frame to capture
    ffmpeg -f x11grab -r 25 -s 800x600 -i :0.0 /tmp/output2.mpg &
    # since I can't control the time a course takes I pause an arbitrary time
    sleep 5
    # look for the capture PID and close it
    for i in $(ps aux | grep ffmpeg | sed "s/  */#/g" | cut -f2 -d#)
    do
     echo "proceso $i killed"
     kill -9 $i
    done

    I wonder once the website is opened I can continue doing the control from AJAX, but not know if I will be able to get the ffmpeg PID to stop the command.

    I will appreciate any kind of comments.

    Regards,
    ·_-

  • ffmpeg not using wildcard properly from batch script [closed]

    25 octobre 2024, par timonsku

    What I want to do is actually super simple and is working just fine if executed from within the cmd window, though it does not work when used within a batch script. The following command would normally get all .png files with the pattern anim_xxxx.png (%04d stands for 4 numbers in ffmpeg).

    



    ffmpeg -f image2 -i anim_%04d.png -vcodec mjpeg -q:v 0 -r 25 foo.avi


    



    Now the error I get is with the wildcard for my image sequence and I have no clue what the problem is. Using another wildcard like * gives me the same error.

    



    


    [image2 @ 000000000033e8c0] Could find no file with with path
 'anim_render.bat4d.png' and index in the range 0-4
 anim_render.bat4d.png : No such file or directory

    


    



    does %04d resemble any variable in a batch file that does not exist outside of batch files ? I could not find any similar cases so far.