Recherche avancée

Médias (0)

Mot : - Tags -/content

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (75)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (9117)

  • Output always corrupt from FFMPEG using selenium python

    28 avril 2021, par Didit Setiawan

    i try to running testcase using selenium python and want to record video on every testacases, but when i try the output is always corrupted. FFMPEG process are running, no error appear on the output line. I attach my code, Please anyone help me is there anything i need to add or remove

    


    here's the first file, for recorder :

    


    import subprocess
from subprocess import Popen
from subprocess import call


class recorderMethod():
    videoRecording = None

    @staticmethod
    def recorder_start(res,name):
        rec_lib          = 'ffmpeg -y -rtbufsize 2000M -f dshow  -i video="screen-capture-recorder" -s '
        resolution       = res
        buffer           = ' -b:v 512k -r 20 -vcodec libx264 '
        filename         = name
        extension        = '.mp4'
        complete_command = rec_lib+resolution+buffer+filename+extension

        recorderMethod.videoRecording = Popen(str(complete_command))

    @staticmethod
    def recorder_stop():
        if recorderMethod.videoRecording.poll() is None:
            call('taskkill /F /T /PID ' + str(recorderMethod.videoRecording.pid))


    


    here's the main test file for record the video

    


    import unittest
import recorder_main
from selenium import webdriver
from time import sleep

class recordingTest(unittest.TestCase):
    #init test
    browser         = webdriver.Chrome()
    baseurl         = 'http://www.facebook.com/'
    record          = recorder_main.recorderMethod
    
    #setup
    def setUp(self):
        #declare to use browser
        self.driver = recordingTest.browser
        #make variable for easy access
        driver = self.driver
        #maximize Firefox
        driver.maximize_window()
        #go to maukerja
        driver.get(recordingTest.baseurl)

    #test001
    def test_001_record(self):
        #start recording
        recordingTest.record.recorder_start('1920x1080','Test_Sleep')
        sleep(10)
        #stop_recording
        recordingTest.record.recorder_stop()


    #teardown
    def test_999_ShutDownTest(self):
        self.driver.close()
        
if __name__ == '__main__':
    unittest.main(exit=False)


    


  • Uncaught Alchemy\BinaryDriver\Exception\ExecutableNotFoundException

    27 août 2018, par Jass

    I have linux shared hosting and Goddady is not installing ffmpeg extension on it so I have to keep binary library within my code so I am using https://github.com/PHP-FFMpeg/PHP-FFMpeg/ and following following steps.

    • I cloned project on on my local > windows 10 > laragon
    • I did composer install

    Now I called their example like following

    require 'vendor/autoload.php';
    $ffmpeg = FFMpeg\FFMpeg::create(array(
    'ffmpeg.binaries'  => 'F:/laragon/www/PHP-FFMpeg/src/FFMpeg',
    'ffprobe.binaries' => 'F:/laragon/www/PHP-FFMpeg/src/FFMpeg',
    'timeout'          => 3600, // The timeout for the underlying process
    'ffmpeg.threads'   => 12,   // The number of threads that FFMpeg should use
    ));
    $video = $ffmpeg->open('1535349237.mp4');
    $frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(2));
    $frame->save('image.jpg');

    But I am getting following error.

    Fatal error : Uncaught
    Alchemy\BinaryDriver\Exception\ExecutableNotFoundException : Executable
    not found, proposed : F :/laragon/www/PHP-FFMpeg/src/FFMpeg in
    F :\laragon\www\PHP-FFMpeg\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php:160
    Stack trace : #0
    F :\laragon\www\PHP-FFMpeg\src\FFMpeg\Driver\FFProbeDriver.php(48) :
    Alchemy\BinaryDriver\AbstractBinary::load(Array, NULL,
    Object(Alchemy\BinaryDriver\Configuration)) #1
    F :\laragon\www\PHP-FFMpeg\src\FFMpeg\FFProbe.php(226) :
    FFMpeg\Driver\FFProbeDriver::create(Object(Alchemy\BinaryDriver\Configuration),
    NULL) #2 F :\laragon\www\PHP-FFMpeg\src\FFMpeg\FFMpeg.php(117) :
    FFMpeg\FFProbe::create(Array, NULL,
    Object(Doctrine\Common\Cache\ArrayCache)) #3
    F :\laragon\www\PHP-FFMpeg\index.php(6) : FFMpeg\FFMpeg::create(Array)

    4 main Next FFMpeg\Exception\ExecutableNotFoundException : Unable to load FFProbe in

    F :\laragon\www\PHP-FFMpeg\src\FFMpeg\Driver\FFProbeDriver.php:50 Stack
    trace : #0 F :\laragon\www\PHP-FFMpeg\src\FFMpeg\FFProbe.php(226) :
    FFMpeg\Driver\FFProbeD in
    F :\laragon\www\PHP-FFMpeg\src\FFMpeg\Driver\FFProbeDriver.php on line
    50

    I tried to figure it out searching on github and google but no success so any suggestions please what could be the solution in this case ?

  • compat/nvenc : bump nvEncodeAPI.h to Video Codec SDK 8.0.14

    8 mai 2017, par Timo Rothenpieler
    compat/nvenc : bump nvEncodeAPI.h to Video Codec SDK 8.0.14
    

    This raises the required minimum NVIDIA display driver versions :
    NVIDIA Linux display driver 378.13 or newer
    NVIDIA Windows display driver 378.66 or newer

    • [DH] compat/nvenc/nvEncodeAPI.h