Recherche avancée

Médias (91)

Autres articles (102)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (8056)

  • HTML5 Video tag switcher for multiple resolutions

    20 avril 2016, par somecalmetim

    I have a Rails 4 app setup as a video upload/sharing site. I am using paperclip to upload videos and ffmpeg for processing 2 sizes of video into Mp4, ogg and webm.

    I want to show the smaller 240p video to mobile devices. I can do that now with media queries or Bootstraps adaptive tags but I would prefer a "resolution switcher" button similar to what I see on various other sites showing "240, 480, 720, 1080" Is this possible to do automatically within the HTML5 video tag similar to the "CC Closed Captioning" button that appears when you add subtitle files ?

    I was trying to avoid using a custom player.

    This was my quick bootstrap solution but would prefer a button/switcher.

    <div class="hidden-xs">
       <video style="width:100%" autobuffer="autobuffer" controls="controls" poster="&lt;%= @video.attachment.url(:preview) %>"><source label="720" type="video/mp4" default="default"><source label="ogg" type="video/ogg"><source label="webm" type="video/webm"><track label="English" kind="subtitles" srclang="en" src="/assets/subtitles.vtt" default="default"><p>Your Browser does not support the video tag.</p></track></source></source></source></video>
    </div>
    <div class="visible-xs">
       <video style="width:100%" autobuffer="autobuffer" controls="controls" poster="&lt;%= @video.attachment.url(:preview) %>"><source label="360" type="video/mp4" default="default"><source label="ogg mobile" type="video/ogg"><source label="webm mobile" type="video/webm"><track label="English" kind="subtitles" srclang="en" src="/assets/subtitles.vtt" default="default"><p>Your Browser does not support the video tag.</p></track></source></source></source></video>
    </div>
  • AVFormatContext with alsa,v4l2 to output AVFormatContext

    8 mars 2017, par GeneralN00bs

    Read first : I’m a new guy with Stack Overflow, and poor English, so please excuse my English, which is really bad.

    I’m trying to do web streaming with open input device ; audio, video devices to HTML5 video.

    for example, this project using ffmpeg command to like this :

    ffmpeg -f v4l2 -i <video devices="devices"> -f alsa -i <audio devices="devices"> -f mpegts -codec:v mpeg1video -b:v 800k -framerate 24 -codec:a mp2 -b:a 128k http://localhost:8082/secret
    </audio></video>

    Here’s the main question : I can open 2 avformatcontext with C language like this :

    AVFormatContext* get_ctx(const char* dev,const char* driver,AVDictionary *options)
    {
         AVFormatContext *ictx = avformat_alloc_context();
         AVInputFormat *fmt = NULL;

         //get input format.
         fmt = av_find_input_format(driver);
         //if have options
         if(options){
             //open device with options
             if(avformat_open_input(&amp;ictx,dev,fmt,&amp;options)&lt;0){
                 printf("get device with options failed.\n");
                 return NULL;
             }
             //find stream info.
             if(avformat_find_stream_info(ictx,&amp;options)&lt;0){
                 printf("get stream info with options failed.\n");
                 return NULL;
             }
         //not have options.
         }else{
             if(avformat_open_input(&amp;ictx,dev,fmt,NULL)&lt;0){
                 printf("get device failed.\n");
                 return NULL;
             }
             if(avformat_find_stream_info(ictx,NULL)&lt;0){
                 printf("get stream info failed.\n");
                 return NULL;
             }
         }
         av_dump_format(ictx,0,adev,0);
         return ictx;
     }

    Well, get v4l2 and alsa devices successfully using function above. but
    I can’t figure it out (2 input avformatcontext) to output avformatcontext.
    Any idea how can I am muxing 2 avformatcontext to output avformatcontext ?

  • Ignore Connection Error on Multiple Rtsp Stream in FFmpeg

    17 décembre 2022, par Onur Külekci

    Sorry for my bad English. My problem is ;&#xA;ffmpeg command closes completely when one of the streams cannot be reached while multicasting. when it can't reach a single rtsp address, how can it ignore it and continue broadcasting from the others ?

    &#xA;

    Example ;

    &#xA;

    ffmpeg -i rtsp://5.63.151.4:443/atv/atv2 -map 0 c:\atv.flv -i rtsp://live.sabah.com.tr:443/ahaber/ahaber3 -map 1 c:\ahaber.flv&#xA;

    &#xA;

    if it can't reach the 2nd link, keep playing the first one

    &#xA;

    Thank you !

    &#xA;