Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (36)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

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

Sur d’autres sites (5079)

  • Class "FFMpeg\FFMpeg" not found

    16 août 2024, par Saeed Eisakhani

    I installed ffmpeg on xampp by COMPOSER. I installed FFMPEG on windows before.
enter image description here

    


    Then with the command composer require php-ffmpeg/php-ffmpeg installed php-ffmpeg
enter image description here

    


    I use code below (from php-ffmpeg github) for a test but this does not work

    


    <?php

require '../../phpMyAdmin/vendor/autoload.php';

$ffmpeg = FFMpeg\FFMpeg::create(); // line 5 that error referees to 
$video = $ffmpeg->open('video.mpg');
$video
    ->filters()
    ->resize(new FFMpeg\Coordinate\Dimension(320, 240))
    ->synchronize();
$video
    ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10))
    ->save('frame.jpg');
$video
    ->save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4')
    ->save(new FFMpeg\Format\Video\WMV(), 'export-wmv.wmv')
    ->save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');

?>


    


    This is the error I encounter.
enter image description here

    


    I read many and many similar questions but almost all of them suggest require '../../phpMyAdmin/vendor/autoload.php'; that I have it in my code.

    


  • Can I use the "stream copy" of ffmpeg in OpenCV with VideoWriter class ?

    14 mai 2019, par DerekG

    Python : 3.6, Ubuntu 18.04, OpenCV 4.1.0

    I have an IP camera that streams video data in H.264 encoding. I would like to take this video stream and save it in a .avi file using Python without any encoding or decoding. Using a command line interface and ffmpeg commands, this is trivial to do.

    mycomputer@home:~$ ffmpeg -i rtsp://username:password@192.168.1.1/?framerate=30.0?streamprofile=defaultcameraprofile -acodec copy -vcodec copy output_file_name.avi

    I’d like to do a similar thing from within Python using OpenCV. Currently, I am using VideoCapture class to read in each frame, and then using the OpenCV VideoWriter class to write this frame to a file. My issue is that the VideoWriter class requires a four_cc code to specify which codec is to be used during writing, whereas I don’t want to use any codec at all (or more precisely, I want to use the stream copy of FFmpeg, but there is to my knowledge no corresponding four_cc code). OpenCV documentation specifies that if I use the FFmpeg backend API and specify both a codec and framerate of 0, the raw stream should be written to the new file. However, when I do this, no file is created.

    cap = cv2.VideoCapture("rtsp://username:password@192.168.1.1/?framerate=30.0?streamprofile=defaultcameraprofile", cv2.CAP_FFMPEG)
    frame_width = int(cap.get(3))
    frame_height = int(cap.get(4))
    # output file, backend API, four_cc code integer, framerate, frame size tuple
    out = cv2.videoWriter("output_file.avi",cv2.CAP_FFMPEG,0,0,(frame_width,frame_height))

    I have tried many combinations of other input parameters to the videoWriter constructor but all of them either re-encode the stream or do not write an output file. For instance, I have tried nearly every combination of framerate 0,30, output file extension .avi, .mp4, .h264, .mkv, None and codec 0, "H.264", "RAW ", "DBI ", " ", "MPEG", "COPY", "NONE".

    out = cv2.videoWriter("output_file.avi",cv2.CAP_FFMPEG,cv2.VideoWriter_fourcc('H','2','6','4'),30,(frame_width,frame_height))

    Is it possible to use the FFmpeg stream copy within OpenCV to save video data without encoding it ? If not, I will change tact to running shell commands from within Python, but I’d prefer the former approach if feasible.

  • How To fix "PHP Fatal error : Class 'ffmpeg_movie' not found" Error in PHP

    19 janvier 2019, par Ajay Katariya

    I have installed FFMPEG in my server for video conversions into different sizes of videos within my WordPress site running on PHP 5.6/Linux. Previously all things were working fine but today suddenly I got one error like :

    "PHP Fatal error : Class ’ffmpeg_movie’ not found".

    PHP Warning : PHP Startup : Unable to load dynamic library ’/opt/cpanel/ea-php56/root/usr/lib64/php/modules/ffmpeg.so’ - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ffmpeg.so : cannot open shared object file : No such file or directory in Unknown on line 0

    I have searched solution for this error, so I got one solution like include autoload.php file. Which I have already included.

    So can anyone help me to solve out this problem ?