Recherche avancée

Médias (3)

Mot : - Tags -/spip

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 (14998)

  • PHP exec() function command finished but last function not execute

    12 juin 2018, par Noeeka

    The PHP file should execute FFmpeg command after this command finished it should take data into the database. However, I found that the exec($command--FFmpeg) has been completed and it run pretty well but the data is not in the database.

    I have set php.ini ignore_user_abort = On

    It could run the PHP process in the background

    my could is as follows

    set_time_limit(0);
    $tumbfileName = time();
    $filepath = dirname(dirname(dirname(__FILE__))) . "/files/video/";
    $cmd = 'ffmpeg -i ' . dirname(dirname(dirname(__FILE__))).$content . ' -c:v libx264 -strict -2 ' . $filepath . "post_" . $tumbfileName . '.mp4';
    exec($cmd, $output, $error);

    $cmdImg="ffmpeg -y -ss 2 -i ".dirname(dirname(dirname(__FILE__))).$content." -vframes 1 -f image2 -s 400*300 ".$filepath . "notice_thumb_" . $tumbfileName . '.jpg';
    //$cmdImg = "ffmpeg -i " . dirname(dirname(dirname(__FILE__))).$content . " -f image2 -ss 10 -s 400*300 -vframes 10 " . $filepath . "notice_thumb_" . $tumbfileName . '.jpg';
    exec($cmdImg, $outputImg, $errorImg);
    $data = array(
           'content' => "/files/video/"."post_" . $tumbfileName . '.mp4',
           'author' => 'management',
           'deadline' => $deadline,
           'type' => $type,
           'datetime' => time(),
           'thumb' => "/files/video/"."notice_thumb_" . $tumbfileName . '.jpg'
    );                                                          
    $flag = $this->db->insert('notice_info', $data);
  • How to stream RPI a RPI Cam with ffmpeg for 24/7 to youtube stable and reliable

    6 mai 2021, par John Paden

    As a part of a project to bird-watch, I use RPICam
(https://github.com/silvanmelchior/RPi_Cam_Web_Interface)
on an Pi4. Resolution is 854x480, 25 fps. Works fine, stable 24/7.

    


    To share the videos not only in the intranet but on youtube, I use ffmpeg.
Other infrastructure : 1GBLAN, high speed extenal network connection, pi has stable power supply (no yellow flashes).

    


    After a lot of reading and testing, this command line produces a bitrate of about 2500 kbits and a speed of 1.

    


    ffmpeg -hide_banner -i http://xx.xx.xx.xx/cam_pic_new.php -deinterlace -re -acodec pcm_s16le -ac 2 -f s16le -i /dev/zero -f h264_omx -c:a aac -ar 48000 -ac 2 -b:a 384k -c:v h264_omx -b:v 2.5M -profile:v high -force_key_frames "expr:gte(t,n_forced/2)" -s 854x480 -pix_fmt yuv420p -strict experimental -use_editlist 0 -movflags +faststart -f flv rtmp ://a.rtmp.youtube.com/live2/xxx-xxx-xxx-xxx-xxx

    


    IF it starts correctly. As Youtube rules suggest to limit streams to under 24h to keep them, a regular reset of the tream - or the pi - is required.
On the youtube side this is controlled by
Often a restart (no matter of a "sudo restart" or just a restart of the ffmpeg command) results in youtube studio showing a green button (Stream status very good) and a second green button (Very good connection). But instead, the circle turns around ongoingly and it states 'Streaming Software can be connected now, viewers can find the stream once it has started'.
In short - how does youtube understand to start the transmission, or to reset if it still some sort of busy ?

    


  • vf_libplacebo : switch to newer libplacebo helpers

    14 décembre 2021, par Niklas Haas
    vf_libplacebo : switch to newer libplacebo helpers
    

    Support for mapping/unmapping hardware frames has been added into
    libplacebo itself, so we can scrap this code in favor of using the new
    functions. This has the additional benefit of being forwards-compatible
    as support for more complicated frame-related state management is added
    to libplacebo (e.g. mapping dolby vision metadata).

    It's worth pointing out that, technically, this would also allow
    `vf_libplacebo` to accept, practically unmodified, other frame types
    (e.g. vaapi or drm), or even software input formats. (Although we still
    need a vulkan *device* to be available)

    To keep things simple, though, retain the current restriction to vulkan
    frames. It's possible we could rethink this in a future commit, but for
    now I don't want to introduce any more potentially breaking changes.

    • [DH] configure
    • [DH] libavfilter/vf_libplacebo.c