Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (111)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (9828)

  • Capture & save MJPG CCTV stream to file w. FFMPEG

    21 juin 2021, par GBano

    I've been trying to record an IP-cam stream (Foscam, mjpg) via http with ffmpeg.
Can't get the rtsp stream for some reason, but the http/mjpg works fine (VLC IDed it as mjpg).

    


    The stream URL looks like this :
http://192.168.1.123:456/videostream.cgi?user=USERNAME&pwd=PWD

    


    So I created the string (w.o line wrap) :
ffmpeg -i -loglevel debug http://192.168.1.123:456/videostream.cgi?user=USERNAME&pwd=PWD /home/user/Videos/camera.mp4

    


    Some examples I saw are using -c copy and map 0 options as well but I left this out since I defined source and destination clearly and this is just a video, no audio.
segment_time and segment_format I also left out for now (I'd like segments later though- when it's working).

    


    FFMPEG returns : "bash: /home/user/Videos/camera.mp4: No such file or directory"

    


    So I tried a random mjpg stream from the net (Insecam is a nice source for this...) : http://58.69.178.54:80/mjpg/video.mjpg

    


    Leading to :
ffmpeg copy -i -loglevel debug -hide_banner http://58.69.178.54:80/mjpg/video.mjpg /home/user/Videos/camera.mp4

    


    Returns : -loglevel: "No such file or directory" (the same with segment options included, copy excluded).

    


    Shouldn't FFMPEG create the destination file ?

    


    One example mixed FFMPEG with CVLC (Save continuous RTSP stream to 5-10 minute long mp4 files) so I just tried with cvlc.
cvlc http://58.69.178.54:80/mjpg/video.mjpg copy /home/user/Videos/camera.mp4
This opens the stream in a VLC window (despite that I use Cvlc) but does not create a destination file.

    


    I suspect I must have missed something simple & silly, but what ?

    


  • How to save (record) rtsp stream to the disk storage without artifacts and missing seconds ?

    20 septembre 2019, par Bogdan Rudnytskyi

    I need to save (record) rtsp stream to the disk storage.
    I am using nginx-module and ffmpeg for it.
    Here the config for enable recording :

    rtmp {
       live on;
       hls on;
       hls_fragment 5s;
       server {
           listen 1935;
           application cam1 {
               hls_path /tmp/cam1;
           }
           exec_static ffmpeg -rtsp_transport tcp -i rtsp://... -c copy -f flv rtmp://.../cam1/stream;
       }
    }

    Config is creating the flv files, each duration of 5 second.
    Then we need to merge all got files in one file by command :

    ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.flv

    After concated files we are got a problem. When previous 5 seconds end and start next 5 seconds we have artifacts and missing 0.5-1 second.

    Please, get me help with saving rtsp stream without artifacts and missing seconds.

  • Save MJPEG video stream to a raw file

    6 septembre 2014, par user824963

    I’ve a cheap IP cam, and i need to save the video stream inside a single file.

    i’ve tried to execute the wget command towards the stream’ url and the result was a file with this syntax :

    --object-ipcamera
    Content-Type:image/jpeg
    Content-Length:8012

    ÿØÿà [JPEG IMAGE CHARACTERS]  ÿÙ
    --object-ipcamera
    Content-Type:image/jpeg
    Content-Length:8012

    ÿØÿàÆÿ [JPEG IMAGE CHARACTERS]  ÿÿÿÙ
    --object-ipcamera
    Content-Type:image/jpeg
    Content-Length:8036

    Since i need to store the video stream, is mp4 a proper format to do that ? What if mp4 file being truncated ?

    I tried with ffmpeg :

    ffmpeg -i http://<auth params="params" local="local" url="url">:99/vieostream.cgi out.mp4
    </auth>

    the output was

    [ingenient @ 0x1f51600] Could not find codec parameters for stream 0 (Video: mjpeg): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [ingenient @ 0x1f51600] Estimating duration from bitrate, this may be inaccurate
    http://aaa@192.168.0.104:99/vieostream.cgi: could not find codec parameters

    and even setting these parameter to the max allowed value there is still the some output.

    I want also say that if i open the video url using VLC GUI, the video stream immediately comes out, so there is a way to auto-detect the video parameters ?

    Note : my server has a small CPU