Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (83)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (11083)

  • How give information about file with binary path /usr/bin/ffmpeg ? [closed]

    19 septembre 2012, par John Smith

    How give information about file with binary path /usr/bin/ffmpeg ?

    Peoples its not answer - its code for help all peoples-)

    Long time i search the correct code, now i write here. Washes it be useful to someone.

    1) get duration file

    ob_start();
    passthru("ffmpeg-9260.exe -i \"". $videofile . "\" 2>&1");
    $duration = ob_get_contents();
    ob_end_clean();


    preg_match('/Duration: (.*?),/', $duration, $matches);
    $duration = $matches[1];
    $duration_array = split(':', $duration);
    $duration = $duration_array[0] * 3600 + $duration_array[1] * 60 + $duration_array[2];
    $time = $duration * $percent / 100;
    $time = intval($time/3600) . ":" . intval(($time-(intval($time/3600)*3600))/60) . ":" . sprintf("%01.3f", ($time-(intval($time/60)*60)));

    2) get a picture of a particular frame of the video (flv or avi or another)

    ffmpeg -i video.avi -an -ss 00:01:30 -r 1 -vframes 1 -s 320×240 -y -f mjpeg screenshot.jpg

    3) how to convert video file to format .ogg

    a) ffmpeg -an -deinterlace -s 400×300 -r 20.00 -i CapeCodMarsh.avi -vcodec rawvideo -pix_fmt yuv420p -f rawvideo – |  ffmpeg -an -f rawvideo -s 400×300 -r 20.00 -i – -f yuv4mpegpipe – |  libtheora-1.0/lt-encoder_example –video-rate-target 512k – -o tmp.ogv

    b)ffmpeg -y -i CapeCodMarsh.avi -vn -acodec libvorbis -ac 2 -ab 128k -ar 44100 audio.ogg

    4) How I can get this value for the buffer ?

    var v = document.getElementById('file_id');
    var r = v.buffered.end(0);

    Enjoy=)

  • Give IDCT matrix transpose macro a more descriptive name

    18 février 2014, par Diego Biurrun
    Give IDCT matrix transpose macro a more descriptive name
    

    This also avoids a macro name clash and related warning on ARM.

    • [DH] libavcodec/h264.c
    • [DH] libavcodec/vp3.c
    • [DH] libavcodec/vp56.c
  • React Video Player failing to read RTSP stream

    20 octobre 2023, par hotmeatballsoup

    I have an RTSP server running local on localhost:8554 and can verify its up and running multiple ways. Its definitely running !

    


    I can stream/publish an MP4 file to it and make that feed available from rtsp://localhost:8554/mystream, and can read from it and do cool stuff with it via ffmpeg :

    


    # this works: it appends frames read from the RTSP server to the fp-copy-2.mp4 file
ffmpeg -rtsp_transport tcp -i rtsp://localhost:8554/mystream -c copy fp-copy-2.mp4


    


    I am now trying to play that stream/feed from inside my toy React app. I have a VideoPlayer component that looks like :

    


    import React from &#x27;react&#x27;;&#xA;import ReactPlayer from &#x27;react-player&#x27;;&#xA;&#xA;const VideoPlayer = () => {&#xA;  const rtspUrl = &#x27;rtsp://localhost:8554/mystream&#x27;;&#xA;&#xA;  return (&#xA;    <div>&#xA;      <h1>Feed</h1>&#xA;      &#xA;    </div>&#xA;  );&#xA;};&#xA;&#xA;export default VideoPlayer;&#xA;&#xA;

    &#xA;

    And I am loading it on a dashboard page like so :

    &#xA;

    import React from &#x27;react&#x27;;&#xA;import VideoPlayer from &#x27;../../utils/player/VideoPlayer&#x27;;&#xA;&#xA;const DashboardPage = () => {&#xA;  return (&#xA;    <div>&#xA;      <h1>Dashboard</h1>&#xA;      <videoplayer></videoplayer>      &#xA;    </div>&#xA;  );&#xA;};&#xA;&#xA;export default DashboardPage;&#xA;

    &#xA;

    When I run npm start and go to the dashboard page, I see the video player loaded but it is displaying a blank screen and is not playing the content that should be available on the feed. Any ideas where I'm going awry ? Does the react-player not handle RTSP perhaps ?

    &#xA;