Advanced search

Medias (1)

Tag: - Tags -/epub

Other articles (42)

  • List of compatible distributions

    26 April 2011, by

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Contribute to a better visual interface

    13 April 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Problèmes fréquents

    10 March 2010, by

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

On other websites (6957)

  • VideoWriter OpenCV - cannot put pipeline to play in function CvVideoWriter_GStreamer::open

    24 October 2019, by 021

    Almost exactly the same question : OpenCV error - cannot put pipeline to play in function CvVideoWriter_GStreamer::open

    Context : I’m trying to create a video and save it in a .avi file with OpenCV 3.3.0 and Python 2.7.

    Problem : This code :

    fourcc = cv2.VideoWriter_fourcc(*'XVID')
    out = cv2.VideoWriter('data/out/output.avi', fourcc, 30, (800, 600))

    Raises :

    (python2.7:12345): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed

    ** (python2.7:12345): CRITICAL **: gst_ffmpeg_cfg_set_property: assertion 'qdata->size == sizeof (gint64)' failed
    OpenCV Error: Unspecified error (GStreamer: cannot put pipeline to play ) in CvVideoWriter_GStreamer::open, file /soft/OpenCV3.3/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp, line 1690
    VIDEOIO(cvCreateVideoWriter_GStreamer (filename, fourcc, fps, frameSize, is_color)): raised OpenCV exception:

    cap_gstreamer.cpp:1690: error: (-2) GStreamer: cannot put pipeline to play
    in function CvVideoWriter_GStreamer::open

    Question : How do I solve this problem so I can write video files with OpenCV ?

  • How can I create a c++ console application which makes use of an open source c project

    2 October 2018, by Bogdan Daniel

    I’ve been playing around with a compiled version of https://github.com/FFmpeg/FFmpeg. But it has some problems, during the closing of an opened stream using avio_close(it takes a really long time to close it).

    I’ve been trying to understand what could go wrong by reading through the implementation, but couldn’t find anything.

    What I would like to do, is to actually have a C++ console application which uses the c files and to debug them while running the code(using breakpoints and so on).

    Unfortunately I cannot find any information on how to set it up. Simply copying the files in a new console application is not enough.

    Thanks in advance for any suggestions.

    Edit: I can already see a closing vote. If this question is not appropriate for this website, I will delete it. But please point me in the right direction of where to post it.Although it is quite a general question, I believe that it is clear and enough information has been provided.

    Edit2: Yes, I was a bit unclear about what I’m using.

    I’m using Visual Studio Community 2017 on Windows 10 for creating the C++ console application.

    Edit3:

    Steps that I’ve taken into using the source files into my console application which was using the DLLs.

    1. Copy all of the contents of the FFmpeg-master to my console application
    2. Include all of them in the c++ console application project
    3. Run a build - takes forever and has infinite build errors( > 1000) - probably compiler related

    Edit4:

    I have no actual errors with avio_close, it just takes too long to close the stream. What I found out when playing around with the settings is that when the fifo_size parameter is set, closing the stream is a lot faster depending on how small the set value is. And it sort of makes sense since fifo_size is related to the packet size, but I haven’t found out where in the code this size has an impact.

    fifo_size=units
    Set the UDP receiving circular buffer size, expressed as a number of packets with size of 188 bytes. If not specified defaults to 7*4096.

    Edit5: I still haven’t found a way to compile the open source ffmpeg project into libs, dlls and pdbs. Am I the first one needing such files(seems unrealistic)?
    The only tool capable of delivering those so far is vcpkg. The only problem is that it compiles the 3.3.3 version and the latest is 4.0.2 .

    I tried to modify the vcpkg\ports\ffmpeg\portfile.cmake file to include the latest version of ffmpeg, but it doesn’t build it.

    Are there any other suggestions?

  • Ubuntu 16.04 + OpenCV + FFMPEG + CUDA don't open default camera

    20 July 2018, by Newton Pasqualini Filho

    I am trying to work with accelerated OpenCV using my own build of FFMPEG with CUDA support for GPU video processing using Python.

    My application must support any kind of video devices, including USB and IP cameras.

    I have a config file parsed with ConfigParser that loads the camera device path, as described in OpenCV documentation we can access usb camera by index number and for IP camera we use RTSP protocol so the path could be sometimes 0 or rtsp://192.168.1.2/0.

    To force the use of FFMPEG behind OpenCV I am trying to open the video capture stream like bellow:

    video_capture = cv.VideoCapture()
    stream_opened = video_capture.open(camera_path, cv.CAP_FFMPEG)

    The problem is when I try to open the default USB camera camera_path = 0 the video_capture.open method always returns false, but when it is a RTSP like camera_path = "rtsp://192.168.1.2/1" it open the video capture stream ok.

    When I let OpenCV decide what backend will be used it calls to GStreammer and it opens the capture stream like this:

    video_capture = cv.VideoCapture(camera_path)

    I suspect that FFMPEG does not have any support for capture video from a USB camera, does it? Is there some missing feature to my ffmpeg build?

    ffmpeg version N-91487-g1809f1c Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
    configuration: --prefix=/usr --pkg-config-flags=--static --enable-cuda-sdk --enable-cuvid --enable-libnpp --extra-cflags=-I/usr/local/cuda/include/ --extra-ldflags=-L/usr/local/cuda/lib64/ --nvccflags='-gencode arch=compute_61,code=sm_61 -O2' --enable-gpl --enable-libass --enable-libfdk-aac --enable-libx264 --extra-libs=-lpthread --enable-libx265 --enable-nvenc --enable-nonfree
    libavutil      56. 18.102 / 56. 18.102
    libavcodec     58. 21.105 / 58. 21.105
    libavformat    58. 17.101 / 58. 17.101
    libavdevice    58.  4.101 / 58.  4.101
    libavfilter     7. 26.100 /  7. 26.100
    libswscale      5.  2.100 /  5.  2.100
    libswresample   3.  2.100 /  3.  2.100
    libpostproc    55.  2.100 / 55.  2.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...