Recherche avancée

Médias (91)

Autres articles (71)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

Sur d’autres sites (8432)

  • OpenCV FFMPEG RTSP Camera Feed Errors

    4 avril, par trn2020

    I'm getting these errors at random times when saving frames from an rtsp camera feed. The errors happen at different times, usually after 100-200 images have been saved, and the errors themselves are not always exactly the same. They cause the images that are saved at the time of the error to be distorted either to the point of being completely grey or contain distorted pixels.

    


    #Frame_142 - [hevc @ 0c3bf800] The cu_qp_delta 29 is outside the valid range [-26, 25].

    


    #Frame_406 - [hevc @ 0b6bdb80] Could not find ref with POC 41

    


    I've tried implementing the code in both python and c++ with the same result. Also tried saving as .png instead of .jpg. The rtsp feed works fine when using imshow to display the camera, the problem only appears to happen when trying to save the frames. From what I can gather the errors have to do with ffmpeg but google isn't much help for these types of errors.

    


    #include <iostream>&#xA;#include &#xA;#include <chrono>&#xA;#include <thread>&#xA;&#xA;using namespace std;&#xA;using namespace cv;&#xA;&#xA;int main() {&#xA;&#xA;    VideoCapture cap("rtsp://admin:admin@192.168.88.97/media/video1");&#xA;    if (!cap.isOpened())&#xA;        return -1;&#xA;&#xA;    for (int i = 0; i &lt; 500; i&#x2B;&#x2B;)&#xA;    {&#xA;        Mat frame;&#xA;        cap >> frame;&#xA;        imwrite("C:\\Users\\Documents\\Dev\\c&#x2B;&#x2B;\\OpenCVExample\\frames\\frame" &#x2B; std::to_string(i) &#x2B; ".png", frame);&#xA;        cout &lt;&lt; i &lt;&lt; "\n";&#xA;        std::this_thread::sleep_for(std::chrono::milliseconds(10));&#xA;&#xA;    }&#xA;&#xA;    return 0;&#xA;}&#xA;</thread></chrono></iostream>

    &#xA;

  • ffmpeg.so in PHP exec converting and no return

    13 juin 2015, par Tom

    I have seen many threads, but none working ones, so this is my issue :

    I have server installed ffmpeg (ffmpeg-php version 0.7.0, PHP Version 5.4.41) Linux CentOS 6 64bit :

    Using PHP :

    exec('/usr/lib64/php/modules/ffmpeg.so -i test.mp4 testdone.avi',$out,$ret);

    or

    exec('/usr/lib64/php/modules/ffmpeg.so -i /var/www/html/test.mp4 /var/www/html/testdone.avi',$out,$ret);

    or

    exec('/usr/lib64/php/modules/ffmpeg.so -i /var/www/html/test.mp4 /var/www/html/testdone.avi'.' 2>&amp;1',$out,$ret);  

    the ffmpeg is actually found, but always returns : array(0) { } int(11) and with 2>&amp;1 returns array(0) { } int(139) and does not return anything else like testdone.avi in the directory or -version (in the directory). Directories /var/www/html/ are set to 777.

    Thank you, should I hire someone to fix this or am I missing something in PHP.

  • FFmpeg os.system commands not working but work in Terminal

    28 janvier 2020, par Oscar Dolloway

    I’ve downloaded ffmpeg through the website and ran some commands through the terminal to confirm its install.

    when running the command ’ffmpeg’ in the Terminal it returns

    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg
    developers
    built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)

    if i type into Python

    import os
    os.system ('ffmpeg')

    it returns

    os.system ('ffmpeg')
    sh: ffmpeg: command not found
    Out[25]: 32512

    any ideas ?

    Solution :

    ffmpeg = '/bin/ffmpeg' #path to the binary file

    os.system(ffmpeg)

    Output :

    os.system (ffmpeg)
    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
    built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)