Recherche avancée

Médias (91)

Autres articles (46)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (9053)

  • 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, video Conversion

    7 novembre 2012, par user1805414

    I have 2 video.
    Metadata files :

    Seems stream 0 codec frame rate differs from container frame rate: 2000.00 (2000/1) -> 30.00 (30/1)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '89.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 0
       compatible_brands: mp41isom
       creation_time   : 2012-10-23 08:10:51
     Duration: 00:00:08.96, start: 0.000000, bitrate: 2017 kb/s
       Stream #0.0(eng): Video: h264 (Baseline), yuv420p, 640x480, 2006 kb/s, 28.53 fps, 30 tbr, 1k tbn, 2k tbc
       Metadata:
         creation_time   : 2012-10-23 08:10:51
       Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 48 kb/s
       Metadata:
         creation_time   : 2012-10-23 08:10:51
    At least one output file must be specified.
    //--------------------------------------------------------------------------------------------------------------//
    Seems stream 1 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '56_1.mp4':
     Metadata:
       major_brand     : 3gp4
       minor_version   : 0
       compatible_brands: isom3gp4
       creation_time   : 1946-11-02 07:14:31
     Duration: 00:00:05.23, start: 0.000000, bitrate: 239 kb/s
       Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 5 kb/s
       Metadata:
         creation_time   : 1946-11-02 07:14:31
       Stream #0.1(eng): Video: h264 (Baseline), yuv420p, 480x320, 240 kb/s, PAR 65536:65536 DAR 3:2, 17.63 fps, 90k tbr, 90k tbn, 180k tbc
       Metadata:
         creation_time   : 1946-11-02 07:14:31
    At least one output file must be specified.

    They do not play on my website.
    How to bring them to a form ?

    Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5994/125) -> 23.98 (24000/1001)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'oceans-clip.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 1
       compatible_brands: isomavc1
       creation_time   : 2010-05-18 04:24:00
     Duration: 00:00:46.54, start: 0.000000, bitrate: 3342 kb/s
       Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 640x264 [PAR 132:133 DAR 320:133], 3195 kb/s, PAR 127:128 DAR 635:264, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
       Metadata:
         creation_time   : 2010-05-18 04:24:00
       Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 144 kb/s
       Metadata:
         creation_time   : 2010-05-18 04:24:01
    At least one output file must be specified

    I get the video to android and vinfone devices, and must play it on your site, but the player does not want to play. Metadata files that I get see the beginnings. The latter belongs to the metadata file that correctly reproduced on the site.

  • Merge mp3 files having different bitrate using ffmpeg [closed]

    9 janvier 2013, par XCoder

    ffmpeg -i "concat:file1.mp3|file2.mp3" -acodec copy output.mp3

    This command works fine if file1.mp3 & file2.mp3 have same bit-rates.

    I've been searching for past 4 hours but found nothing on how to merge mp3 files having different bit-rates.

    I have two different mp3's having bitrates of 128Kbps & 192Kbps. How to merge them to form a single mp3 file.