Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (59)

  • 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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (10324)

  • Curator of the Samples Archive

    13 mai 2011, par Multimedia Mike — General

    Remember how I mirrored the world-famous MPlayerHQ samples archive a few months ago ? Due to a series of events, the original archive is no longer online. However, me and the people who control the mplayerhq.hu domain figured out how to make samples.mplayerhq.hu point to samples.multimedia.cx.

    That means... I’m the current owner and curator of our central multimedia samples repository. Such power ! This should probably be the fulfillment of a decade-long dream for me, having managed swaths of the archive, most notably the game formats section.

    How This Came To Be

    If you pay any attention to the open source multimedia scene, you might have noticed that there has been a smidge of turmoil. Heated words were exchanged, authority was questioned, some people probably said some things they didn’t mean, and the upshot is that, where once there was one project (FFmpeg), there are now 2 projects (also Libav). And to everyone who has wanted me to mention it on my blog— there, I finally broke my silence and formally acknowledged the schism.

    For my part, I was just determined to ensure that the samples archive remained online, preferably at the original samples.mplayerhq.hu address. There are 10 years worth of web links out there pointing into the original repository.

    Better Solution

    I concede that it’s not entirely optimal to host the repository here at multimedia.cx. While I can offer a crazy amount of monthly bandwidth, I can’t offer rsync (invaluable for keeping mirrors in sync), nor can the server provide anonymous FTP or allow me to offer accounts to other admins who can manage the repository.

    The samples archive is also mirrored at samples.libav.org/samples. I understand that service is provided by VideoLAN. Right now, both repositories are known to be static. I’m open to brainstorms about how to improve the situation.

  • "Could not demultiplex stream" in loading Video recorded by Opencv's VideoWriter

    21 novembre 2020, par batuman

    My program is

    



    int main(){&#xA;    cout &lt;&lt; "Start the process" &lt;&lt; endl;&#xA;    cv::VideoCapture vcap("rtsp://root:pass@192.168.0.90/axis-media/media.amp?camera=1");&#xA;    cout &lt;&lt; "Camera connection done!" &lt;&lt; endl;&#xA;    cv::Mat image, small;&#xA;    //Output video&#xA;    cv::Size S = cv::Size((int) vcap.get(CV_CAP_PROP_FRAME_WIDTH), (int) vcap.get(CV_CAP_PROP_FRAME_HEIGHT));&#xA;    int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));&#xA;    int fps = vcap.get(CV_CAP_PROP_FPS);&#xA;    cout &lt;&lt; "fps " &lt;&lt; fps &lt;&lt; " ex " &lt;&lt; ex &lt;&lt; endl;&#xA;    cv::VideoWriter outputVideo;&#xA;    outputVideo.open("TEST.avi", ex/*CV_FOURCC(&#x27;X&#x27;, &#x27;2&#x27;, &#x27;6&#x27;, &#x27;4&#x27;)*/, vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;    if(!outputVideo.isOpened()){&#xA;        cout &lt;&lt; "Could not open the output video for write" &lt;&lt; endl;&#xA;        return -1;&#xA;    }&#xA;&#xA;    for(;;){&#xA;        if(!vcap.read(image)){&#xA;            std::cout &lt;&lt; "No frame" &lt;&lt; std::endl;&#xA;            cv::waitKey(0);&#xA;        }&#xA;&#xA;        cv::resize(image, small, image.size()/2, 0, 0 , cv::INTER_LINEAR);&#xA;        cv::imshow("Display", small);&#xA;        cv::waitKey(1);&#xA;        outputVideo.write(small);&#xA;        if(getkey() == &#x27;\n&#x27;)&#xA;            break;&#xA;    }&#xA;    cout &lt;&lt; "Camera release" &lt;&lt; endl;&#xA;    outputVideo.release();&#xA;    vcap.release();&#xA;    image.release();&#xA;    small.release();&#xA;    return 0;&#xA;}&#xA;</int>

    &#xA;&#xA;

    int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));</int> ex is 0 here.

    &#xA;&#xA;

    I can record the TEST.avi, but can't be read by cv::VideoCapture vcap("TEST.avi") ; or VLC player or Videos in Ubuntu.&#xA;The error is "Could not demultiplex stream".

    &#xA;&#xA;

    If I changed to

    &#xA;&#xA;

    outputVideo.open("TEST.avi", CV_FOURCC(&#x27;X&#x27;, &#x27;2&#x27;, &#x27;6&#x27;, &#x27;4&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;outputVideo.open("TEST.avi", CV_FOURCC(&#x27;P&#x27;,&#x27;I&#x27;,&#x27;M&#x27;,&#x27;1&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;outputVideo.open("TEST.avi", CV_FOURCC(&#x27;M&#x27;, &#x27;P&#x27;, &#x27;4&#x27;, &#x27;2&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;etc.&#xA;

    &#xA;&#xA;

    all have same problem.

    &#xA;&#xA;

    If I set

    &#xA;&#xA;

    outputVideo.open("TEST.avi", CV_FOURCC(&#x27;i&#x27;, &#x27;Y&#x27;, &#x27;U&#x27;, &#x27;V&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;

    &#xA;&#xA;

    I have error as Opencv: FFMPEG iYUV is not supported with codec id 14

    &#xA;&#xA;

    For

    &#xA;&#xA;

    outputVideo.open("TEST.avi", CV_FOURCC(&#x27;M&#x27;, &#x27;J&#x27;, &#x27;P&#x27;, &#x27;G&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;&#xA;&#xA;OpenCV Error: Assertion failed (img.cols == width &amp;&amp; img.rows == height &amp;&amp; chann&#xA;els == 3) in write, file /home/Softwares/opencv/opencv/modules/videoio/src/&#xA;cap_mjpeg_encoder.cpp, line 829&#xA;terminate called after throwing an instance of &#x27;cv::Exception&#x27;&#xA;  what():  /home/Softwares/opencv/opencv/modules/videoio/src/cap_mjpeg_enco&#xA;der.cpp:829: error: (-215) img.cols == width &amp;&amp; img.rows == height &amp;&amp; channels =&#xA;= 3 in function write&#xA;

    &#xA;&#xA;

    What could be wrong ? Is that my FFMPEG has problem ?

    &#xA;

  • "Could not demultiplex stream" in loading Video recorded by Opencv's VideoWriter

    16 juin 2016, par batuman

    My program is

    int main(){
       cout &lt;&lt; "Start the process" &lt;&lt; endl;
       cv::VideoCapture vcap("rtsp://root:pass@192.168.0.90/axis-media/media.amp?camera=1");
       cout &lt;&lt; "Camera connection done!" &lt;&lt; endl;
       cv::Mat image, small;
       //Output video
       cv::Size S = cv::Size((int) vcap.get(CV_CAP_PROP_FRAME_WIDTH), (int) vcap.get(CV_CAP_PROP_FRAME_HEIGHT));
       int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));
       int fps = vcap.get(CV_CAP_PROP_FPS);
       cout &lt;&lt; "fps " &lt;&lt; fps &lt;&lt; " ex " &lt;&lt; ex &lt;&lt; endl;
       cv::VideoWriter outputVideo;
       outputVideo.open("TEST.avi", ex/*CV_FOURCC('X', '2', '6', '4')*/, vcap.get(CV_CAP_PROP_FPS), S, true);
       if(!outputVideo.isOpened()){
           cout &lt;&lt; "Could not open the output video for write" &lt;&lt; endl;
           return -1;
       }

       for(;;){
           if(!vcap.read(image)){
               std::cout &lt;&lt; "No frame" &lt;&lt; std::endl;
               cv::waitKey(0);
           }

           cv::resize(image, small, image.size()/2, 0, 0 , cv::INTER_LINEAR);
           cv::imshow("Display", small);
           cv::waitKey(1);
           outputVideo.write(small);
           if(getkey() == '\n')
               break;
       }
       cout &lt;&lt; "Camera release" &lt;&lt; endl;
       outputVideo.release();
       vcap.release();
       image.release();
       small.release();
       return 0;
    }
    </int>

    int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));</int> ex is 0 here.

    I can record the TEST.avi, but can’t be read by cv::VideoCapture vcap("TEST.avi") ; or VLC player or Videos in Ubuntu.
    The error is "Could not demultiplex stream".

    If I changed to

    outputVideo.open("TEST.avi", CV_FOURCC('X', '2', '6', '4'), vcap.get(CV_CAP_PROP_FPS), S, true);
    outputVideo.open("TEST.avi", CV_FOURCC('P','I','M','1'), vcap.get(CV_CAP_PROP_FPS), S, true);
    outputVideo.open("TEST.avi", CV_FOURCC('M', 'P', '4', '2'), vcap.get(CV_CAP_PROP_FPS), S, true);
    etc.

    all have same problem.

    If I set

    outputVideo.open("TEST.avi", CV_FOURCC('i', 'Y', 'U', 'V'), vcap.get(CV_CAP_PROP_FPS), S, true);

    I have error as Opencv: FFMPEG iYUV is not supported with codec id 14

    For

    outputVideo.open("TEST.avi", CV_FOURCC('M', 'J', 'P', 'G'), vcap.get(CV_CAP_PROP_FPS), S, true);


    OpenCV Error: Assertion failed (img.cols == width &amp;&amp; img.rows == height &amp;&amp; chann
    els == 3) in write, file /home/Softwares/opencv/opencv/modules/videoio/src/
    cap_mjpeg_encoder.cpp, line 829
    terminate called after throwing an instance of 'cv::Exception'
     what():  /home/Softwares/opencv/opencv/modules/videoio/src/cap_mjpeg_enco
    der.cpp:829: error: (-215) img.cols == width &amp;&amp; img.rows == height &amp;&amp; channels =
    = 3 in function write

    What could be wrong ? Is that my FFMPEG has problem ?