Recherche avancée

Médias (91)

Autres articles (52)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • 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

Sur d’autres sites (9438)

  • cv::cudacodec::VideoReader unable to Play rtsp stream

    22 février 2018, par Pawan

    System information

    • OpenCV => 3.3.0
    • Operating System / Platform => Ubuntu 16.04, x86_64
    • Compiler => gcc version 5.4.1 20160904
    • Cuda => 8.0
    • Nvidia card => GTX 1080 Ti
    • ffmpeg details
      • libavutil 55. 74.100 / 55. 74.100
      • libavcodec 57.103.100 / 57.103.100
      • libavformat 57. 77.100 / 57. 77.100
      • libavdevice 57. 7.101 / 57. 7.101
      • libavfilter 6.100.100 / 6.100.100
      • libswscale 4. 7.103 / 4. 7.103
      • libswresample 2. 8.100 / 2. 8.100

    Detailed description

    i am trying to play a rtsp stream using cudacodec::VideoReader

    Rtsp Stream Details ( from vlc )

    stream_details

    this stream plays fine in vlc and cv::VideoCapture but when i try to play it in cudacodec::VideoReader i get a error saying :

    OpenCV Error: Gpu API call (CUDA_ERROR_FILE_NOT_FOUND [Code = 301]) in CuvidVideoSource, file /home/deep/Development/libraries/opencv/opencv/modules/cudacodec/src/cuvid_video_source.cpp, line 66

    OpenCV Error: Assertion failed (init_MediaStream_FFMPEG()) in FFmpegVideoSource, file /home/deep/Development/libraries/opencv/opencv/modules/cudacodec/src/ffmpeg_video_source.cpp, line 101

    Steps to reproduce

    #include <iostream>
    #include "opencv2/opencv_modules.hpp"

    #if defined(HAVE_OPENCV_CUDACODEC)

    #include <opencv2></opencv2>core.hpp>
    #include <opencv2></opencv2>cudacodec.hpp>
    #include <opencv2></opencv2>highgui.hpp>

    int main(int argc, const char* argv[])
    {
       const std::string fname = "rtsp://admin:admin@192.168.1.13/media/video2";

       cv::namedWindow("GPU", cv::WINDOW_NORMAL);

       cv::cuda::GpuMat d_frame;
       cv::Ptr d_reader = cv::cudacodec::createVideoReader(fname);

       for (;;)
       {

           if (!d_reader->nextFrame(d_frame))
               break;

           cv::Mat frame;
           d_frame.download(frame);
           cv::imshow("GPU", frame);

           if (cv::waitKey(3) > 0)
               break;
       }
       return 0;
    }

    #else
    int main()
    {
       std::cout &lt;&lt; "OpenCV was built without CUDA Video decoding support\n" &lt;&lt; std::endl;
       return 0;
    }
    #endif
    </iostream>

    I tried debugging it using GDB and saw that in ffmpeg_video_source.cpp bool init_MediaStream_FFMPEG() directly returns without checking the if condition.

    GDB output

    cv::cudacodec::detail::FFmpegVideoSource::FFmpegVideoSource
    (this=0x402a20 &lt;_start>, fname=...) at /home/deep/Development/libraries/opencv/opencv/modules/cudacodec/src/ffmpeg_video_source.cpp:98
    98      cv::cudacodec::detail::FFmpegVideoSource::FFmpegVideoSource(const String&amp; fname) :
    (gdb) n
    99          stream_(0)
    (gdb) n
    101         CV_Assert( init_MediaStream_FFMPEG() );
    (gdb) s
    (anonymous namespace)::init_MediaStream_FFMPEG () at /home/deep/Development/libraries/opencv/opencv/modules/cudacodec/src/ffmpeg_video_source.cpp:94
    94              return initialized;
    (gdb) display initialized
    4: initialized = false
    (gdb) s
    95          }

    UPDATE :

    I have solved the problem. solution link

  • How can i merge two videos using ffmpeg ?

    10 novembre 2017, par hasib prince

    I am using writingminds:FFmpegAndroid:0.3.2 library.and facing this permission denied issue.

    D/Video merging :: progress: /storage/emulated/0/DCIM/Camera/VID_20171109_070248.mp4: Permission denied

    11-10 17:35:09.905 10592-10592/com.example.hasib.vjoiner D/Video merging: : failure : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 4.8 (GCC)

                                                                            libavutil      55. 17.103 / 55. 17.103
                                                                            libavcodec     57. 24.102 / 57. 24.102
                                                                            libavformat    57. 25.100 / 57. 25.100
                                                                            libavdevice    57.  0.101 / 57.  0.101
                                                                            libavfilter     6. 31.100 /  6. 31.100
                                                                            libswscale      4.  0.100 /  4.  0.100
                                                                            libswresample   2.  0.101 /  2.  0.101
                                                                            libpostproc    54.  0.100 / 54.  0.100
                                                                          /storage/emulated/0/DCIM/Camera/VID_20171109_070248.mp4: Permission denied

    11-10 17:35:09.905 10592-10592/com.example.hasib.vjoiner D/Video merging: : finished

    and this is the command i was going to execute.

    String[] command = new String[]{"-y", "-i", videoPaths.get(0), "-i", videoPaths.get(1).toString(), "-strict", "experimental", "-filter_complex",
               "[0:v]scale=iw*min(1920/iw\\,1080/ih):ih*min(1920/iw\\,1080/ih), pad=1920:1080:(1920-iw*min(1920/iw\\,1080/ih))/2:(1080-ih*min(1920/iw\\,1080/ih))/2,setsar=1:1[v0];[1:v] scale=iw*min(1920/iw\\,1080/ih):ih*min(1920/iw\\,1080/ih), pad=1920:1080:(1920-iw*min(1920/iw\\,1080/ih))/2:(1080-ih*min(1920/iw\\,1080/ih))/2,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1",
               "-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "1920x1080", "-vcodec", "libx264", "-crf", "27", "-q", "4", "-preset", "ultrafast", outputPath + "/output.mp4"};
  • Problems with video playback using the ffplay

    7 octobre 2023, par Anzor Gergov

    everyone. I have problems with video playback using the ffplay. Used the following command

    &#xA;&#xA;

    ffplay -i input.avi&#xA;

    &#xA;&#xA;

    But the following error occurred.

    &#xA;&#xA;

    ffplay version N-87353-g183fd30 Copyright (c) 2003-2017 the FFmpeg developers&#xA;  built with gcc 7.2.0 (GCC)&#xA;  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib&#xA;  libavutil      55. 76.100 / 55. 76.100&#xA;  libavcodec     57.106.101 / 57.106.101&#xA;  libavformat    57. 82.101 / 57. 82.101&#xA;  libavdevice    57.  8.101 / 57.  8.101&#xA;  libavfilter     6.105.100 /  6.105.100&#xA;  libswscale      4.  7.103 /  4.  7.103&#xA;  libswresample   2.  8.100 /  2.  8.100&#xA;  libpostproc    54.  6.100 / 54.  6.100&#xA;[avi @ 00000000024bd9e0] Could not find codec parameters for stream 0 (Video: none (HEVC / 0x43564548), none, 1920x1080, 1697 kb/s): unknown codec&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;Input #0, avi, from &#x27;c:\problem.avi&#x27;:&#xA;  Duration: 00:00:25.00, start: 0.000000, bitrate: 1701 kb/s&#xA;    Stream #0:0: Video: none (HEVC / 0x43564548), none, 1920x1080, 1697 kb/s, 30.92 fps, 30.92 tbr, 30.92 tbn, 30.92 tbc&#xA;No codec could be found with id 0&#xA;Failed to open file &#x27;c:\problem.avi&#x27; or configure filtergraph&#xA;

    &#xA;&#xA;

    This video is playable without any problems via the VLC, Media Player Classic. &#xA;After trying to find out more information about the video file, I used ffprobe command

    &#xA;&#xA;

    ffprobe -v 0  c:\problem.avi -print_format json -show_format -show_streams&#xA;&#xA;{&#xA;    "streams": [&#xA;        {&#xA;            "index": 0,&#xA;            "codec_type": "video",&#xA;            "codec_tag_string": "HEVC",&#xA;            "codec_tag": "0x43564548",&#xA;            "width": 1920,&#xA;            "height": 1080,&#xA;            "has_b_frames": 0,&#xA;            "sample_aspect_ratio": "0:1",&#xA;            "display_aspect_ratio": "0:1",&#xA;            "level": -99,&#xA;            "r_frame_rate": "773/25",&#xA;            "avg_frame_rate": "773/25",&#xA;            "time_base": "25/773",&#xA;            "start_pts": 0,&#xA;            "start_time": "0.000000",&#xA;            "duration_ts": 773,&#xA;            "duration": "25.000000",&#xA;            "bit_rate": "1697304",&#xA;            "nb_frames": "773",&#xA;            "disposition": {&#xA;                "default": 0,&#xA;                "dub": 0,&#xA;                "original": 0,&#xA;                "comment": 0,&#xA;                "lyrics": 0,&#xA;                "karaoke": 0,&#xA;                "forced": 0,&#xA;                "hearing_impaired": 0,&#xA;                "visual_impaired": 0,&#xA;                "clean_effects": 0,&#xA;                "attached_pic": 0,&#xA;                "timed_thumbnails": 0&#xA;            }&#xA;        }&#xA;    ],&#xA;    "format": {&#xA;        "filename": "c:\\bin\\Virtual\\problem\\problem.avi",&#xA;        "nb_streams": 1,&#xA;        "nb_programs": 0,&#xA;        "format_name": "avi",&#xA;        "format_long_name": "AVI (Audio Video Interleaved)",&#xA;        "start_time": "0.000000",&#xA;        "duration": "25.000000",&#xA;        "size": "5318210",&#xA;        "bit_rate": "1701827",&#xA;        "probe_score": 100&#xA;    }&#xA;}&#xA;

    &#xA;&#xA;

    What could be the problem with this videofile ?

    &#xA;