Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (14984)

  • Bug while recording Axis camera stream with FFMPEG

    27 février 2015, par Mathieu Rodic

    I am using FFMPEG to record the video stream (h264 / AAC in MP4) provided by an AXIS camera (P1346).

    I need to make recordings at specific times. To achieve this, I use a PHP script which is executed every minute (with cron), checks in the database whether a recording should be started or not.

    To record the stream, I use proc_open with the following command line :

    /usr/local/bin/ffmpeg -i 'rtsp://192.168.0.103:554/axis-media/media.amp?udp&buffer_size=65535' -vcodec copy -acodec copy -t 3600 -y '/path/to/video/folder/file.mp4'

    Problem is, it works in most cases, but the recording fails every now and then. Have anyone ever tried to record AXIS streams in command line, and faced bugs while doing it ?

    Thank you in advance.

    Regards,

    Mathieu

    N.B. : I have encountered the same difficulties using VLC.

    EDIT : Network errors can be a good explanation on why the recordings sometimes suddenly interrupt ; however, I still don’t understand why the whole video file is corrupted after that.

  • Camera Integration with laravel 5.2

    9 décembre 2016, par Amit

    I have searched for the implementation of camera with laravel 5.2.Finally I get following code which works well if I add existing video in my server, but when I use rtsp link rtsp://admin:12388@192.168.1.3/MPEG-4ch1/main/av_stream then it gives error

    $ffmpeg = FFMpeg::create();

       $video = $ffmpeg->open('rtsp://admin:12388@192.168.1.3/MPEG-4ch1/main/av_stream');

       $video
           ->filters()
           ->resize(new \FFMpeg\Coordinate\Dimension(320, 240))
           ->synchronize();
       $video
           ->frame(\FFMpeg\Coordinate\TimeCode::fromSeconds(10))
           ->save('frame1.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');

    I am getting following error

    Unable to probe rtsp://admin:12388@192.168.1.3/MPEG-4ch1/main/av_stream
    ffprobe failed to execute command '/usr/bin/avprobe' 'rtsp://admin:12388@192.168.1.3/MPEG-4ch1/main/av_stream' '-show_streams' '-of' 'json'

    Thanks in advance

  • Trying to emulate a hardware camera with a stream from a raspberry pi/picam ?

    19 avril 2021, par John Doe

    I have a raspberry pi and pi cam v2 connected to wifi. I am trying to stream the camera feed to a laptop over wifi, then make that stream appear as if it were a hardware camera on the laptop. I want to do this in order to get it into some other software that requires a hardware camera (can't rewrite this software, just have to work around it).

    


    I am running ubuntu 18.04 on the laptop. From my research, this should be very possible using some combination of ffmpeg and vfl2loopback. I started out by installing this library to stream the camera to a webserver : https://github.com/silvanmelchior/RPi_Cam_Web_Interface This works, and I am able to access the camera stream in my browser at http://10.0.0.47/http I set it up with no username/password for simplicity. I believe the camera port is 80 based on nmap output.

    


    I am now trying to redirect the stream on my ubuntu laptop. Based on my research and experimentation, this command is the closest I've come :

    


    ffmpeg -re -i http://10.0.0.47/html -map 0:v -f v4l2 /dev/video0

    


    (or also the same with port 80 instead of /html, not sure if this matters) :
ffmpeg -re -i http://10.0.0.47:80 -map 0:v -f v4l2 dev/video0

    


    This seems to work at first, but then produces the following error :

    


    http://10.0.0.47:80 : Invalid data found when processing input

    


    From googling, this may be due to the wrong kind of stream coming out of the rpi_cam_web interface, but I am not sure if this is true and if so how to fix it. I also investigated the html code of the page that accesses the webserver, and I can see that it is sending a series of jpgs, that change constantly with timestamps in the file name. So maybe this the issue, but again, unsure.

    


    Any ideas ? Help would be much appreciated.

    


    Edit : I tried another method, which seems to get a little further on, but am still running into issues :

    


    (on the pi) : raspivid -o - -t 0 -n -w 320 -h 240 -fps 30| cvlc -vvv stream :///dev/stdin —sout '#rtpsdp=rtsp ://:8000/' :demux=h264

    


    —>this starts a stream that I am able to succesfully view in VLC media player

    


    (then on the host system) : gst-launch-1.0 -v rtspsrc location=rtsp ://10.0.0.47:8000/ ! v4l2sink device=/dev/video4

    


    I tried various devices, like /dev/video0, /dev/video1, etc. They all produce '"/dev/videoX" is not a output device', except for video4, which seems to be working at first, but then errors out with :

    


    ERROR : from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1 : Internal data stream error.
Additional debug info :
gstbasesrc.c(3072) : gst_base_src_loop () : /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1 :
streaming stopped, reason not-linked (-1)
Execution ended after 0:00:00.082360368

    


    Any idea what might be going wrong there ?

    


    Edit 2 :

    


    I may have it working with the following sequence of commands :

    


    (on pi) : raspivid -o - -t 0 -n -w 320 -h 240 -fps 30| cvlc -vvv stream :///dev/stdin —sout '#rtpsdp=rtsp ://:8000/' :demux=h264

    


    (on host computer) : ffmpeg -f h264 -i tcp ://10.0.0.47:8000/ -f v4l2 -pix_fmt yuv420p /dev/video0

    


    This doesn't throw any errors, but I'm not 100% sure it's working cause I haven't been able to load the stream in software I'm trying to get the camera feed into yet. I tried testing it with this website tool :

    


    https://test.webrtc.org/

    


    and the tool allows me to select "Dummy Video Device 0x0000", which I'm pretty sure is it, but it then tells me "no video device detected", fails to find any camera in its testing, and then the same Dummy Video Device doesn't show up as an option on subsequent page reloads. So I think there's something wrong about how I'm passing the stream