Recherche avancée

Médias (91)

Autres articles (83)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (5518)

  • 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,
    ·_-

  • Best way for stream videos on web [on hold]

    13 février 2016, par Amir

    I am working on video-sharing website and looking for Appropriate way to stream videos because all users can send video in my site. I wonder which way is best to stream all videos like YouTube, compatible with all speed and all the qualities and can change quality . breathed apple hls finally arrived, but the only problem is that for the video to the must take into consideration multiple video files . ffmpeg seagment that the server takes up this much volume.

    The second way that came to my mind is live transcoding. It does not change its quality by changing the speed of video, but this version was with JavaScript wrote such a thing. Speed and space as large as any video website YouTube will be more suitable, but when I thought this was the way all the server and does not work. Most importantly, when you upload a video to YouTube you see it say the process is completed so it means YouTube will not use this method. I think YouTube very easy to convert several formats witout seagment . change the quality generated script that was said !!

    In your opinion, when is the most appropriate way ?!
    Thankful

  • Converting mp4 to multiple resolutions using FFMPEG

    12 avril 2017, par Edwin Flataunet

    I am developing a E-Learning website where people can upload videos.

    When someone uploads a video, they usually upload it in 1080p full HD which is good.
    Now the issue is that when people watch the videos, they are only in 1080p and some people have bad internet (including myself) so watching a video in 1080p is not optimal.

    So I assume that converting the video to different formats (720p, 360 etc..) is the best way to go here.
    So I tried using FFMpeg, and it works, but its really slow, especially since some videos are over 10 minutes long and over 1gb in size.

    I use this command in FFMPEG :

    ffmpeg -i video.mp4 -vf scale:1280:720 -strict -2 output.mp4

    This works, but its really slow.

    Is there any better way to do this ? Since some people upload 5-10 videos and every video has to be in 3 different formats (1080p(original) 720p, 360p).

    Can someone give me some guidelines how to tackle this issue, as this kind of stops the website from progressing atm.

    Thanks