Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (26)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (5423)

  • using ffmpeg/ffprobe to create a waveform json using php

    7 mai 2022, par edwardsmarkf

    I have many ogg & opus files on my server and need to generate json-waveform numeric arrays on an as-needed basis (example below).

    



    recently i discovered the node based waveform-util which uses ffmpeg/ffprobe for rendering a JSON waveform and it works perfectly. i am undecided if having a node process constantly running is the optimum solution to my issue.

    



    since ffmpeg seems to be able to handle anything i can throw at it, i wish to stick with an ffmpeg solution.

    



    i have three questions :

    



    1) is there a php equivalent ? i have found a couple that generate PNG images but not one that generates JSON-waveform numeric arrays

    



    2) are there any significant advantages of going with the node-based solution rather than a php based solution (assuming there is a php based solution) ?

    



    3) is there a way using CLI ffmpeg/ffprobe to generate a json-waveform ? i saw all the -show_ options (-show_data, -show_streams, -show_frames) but nothing looked like it produced what i am looking for.

    



    the json-waveform needs to be in this format :

    



    [ 0.0002, 0.001, 0.15, 0.14, 0.356 .... ]

    



    thank you all.

    


  • avcodec/libsvtav1 : give svtav1-params priority over avctx values

    27 mars 2022, par James Almer
    avcodec/libsvtav1 : give svtav1-params priority over avctx values
    

    If the svt equivalent option to an avctx AVOption is passed by the user
    then it should have priority. The exception are fields like dimensions, bitdepth
    and pixel format, which must match what lavc will feed the encoder after init.

    This addresses libsvt-av1 issue #1858.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/libsvtav1.c
  • Obtaining frames from IP Camera with low latency

    5 février 2023, par Russ1337

    I am currently using this command to get frames from my RTSP stream and reading frames from stdout :

    &#xA;

    ffmpeg -nostdin -rtsp_transport tcp -i  -pix_fmt bgr24 -an -vcodec rawvideo -f rawvideo -&#xA;

    &#xA;

    However, I would like to get the same latency as when I see it via ffplay :

    &#xA;

    ffplay -fflags nobuffer -flags low_delay -tune zerolatency -framedrop -rtsp_transport tcp &#xA;

    &#xA;

    or when I play it via VLC Media > Open Network Stream with :network_caching=300ms.

    &#xA;

    I would like to know what other parameters I can use with my ffmpeg command to get an equivalent (or better) result compared to the ffplay command.

    &#xA;

    I have made references from : How to dump raw RTSP stream to file ?, Open CV RTSP camera buffer lag, How to pipe output from ffmpeg using python ?, bad ffmpeg performace compared to ffplay and VLC, How to minimize the delay in a live streaming with ffmpeg

    &#xA;

    My current implmentation :

    &#xA;

    FFMPEG_CMD = "ffmpeg -nostdin -rtsp_transport tcp -i  -pix_fmt bgr24 -an -vcodec rawvideo -f rawvideo -".split(" ")&#xA;WIDTH = 2560&#xA;HEIGHT = 1440&#xA;&#xA;process = subprocess.Popen(FFMPEG_CMD, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)&#xA;&#xA;while True:&#xA;    raw_frame = process.stdout.read(WIDTH*HEIGHT*3)&#xA;    frame = np.frombuffer(raw_frame, np.uint8) &#xA;    frame = frame.reshape((HEIGHT, WIDTH, 3))&#xA;&#xA;    <do stuff="stuff" with="with" frame="frame"></do> show frame etc.>&#xA;

    &#xA;

    Thanks for reading.

    &#xA;


    &#xA;

    ffmpeg command I am now using for < 1s latency.

    &#xA;

    ffmpeg -nostdin -flags low_delay -rtsp_transport tcp -i  -pix_fmt bgr24 -an -vcodec rawvideo -f rawvideo -&#xA;

    &#xA;


    &#xA;

    Implementation with suggestion(s) from Answers :

    &#xA;

    import subprocess&#xA;import numpy as np&#xA;&#xA;FFMPEG_CMD = "ffmpeg -nostdin -flags low_delay -rtsp_transport tcp -i  -pix_fmt bgr24 -an -vcodec rawvideo -f rawvideo -".split(" ")&#xA;WIDTH = 2560&#xA;HEIGHT = 1440&#xA;&#xA;process = subprocess.Popen(FFMPEG_CMD, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)&#xA;&#xA;raw_frame = np.empty((HEIGHT, WIDTH, 3), np.uint8) &#xA;frame_bytes = memoryview(raw_frame).cast("B")&#xA;&#xA;while process.poll() is None:&#xA;    process.stdout.readinto(frame_bytes)&#xA;    frame = raw_frame.reshape((HEIGHT, WIDTH, 3))&#xA;&#xA;    <do stuff="stuff" with="with" frame="frame"></do> show frame etc.>&#xA;

    &#xA;