Recherche avancée

Médias (91)

Autres articles (110)

  • 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 ;

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (10208)

  • Recursively convert media directory from HEVC to h.264 with ffmpeg

    8 avril 2016, par chuckcastle

    I have media server with two directories : Movies and TV Shows. Within each of those directories, each entry exists in a sub-directory which contains the video file and subtitle files.

    I’ve scoured the web and have found an excellent perl script from Michelle Sullivan, posted here :

       #!/usr/bin/perl

    use strict;
    use warnings;

    open DIR, "ls -1 |";
    while (<dir>)
    {
           chomp;
           next if ( -d "$_"); # skip directories
           next unless ( -r "$_"); # if it's not readable skip it!
           my $file = $_;
           open PROBE, "ffprobe -show_streams -of csv '$file' 2>/dev/null|" or die ("Unable to launch ffmpeg for $file! ($!)");
           my ($v, $a, $s, @c) = (0,0,0);
           while (<probe>)
           {
                   my @streaminfo = split(/,/, $_);
                   push(@c, $streaminfo[2]) if ($streaminfo[5] eq "video");
                   $a++ if ($streaminfo[5] eq "audio");
                   $s++ if ($streaminfo[5] eq "subtitle");
           }
           close PROBE;
           $v = scalar @c;
           if (scalar @c eq 1 and $c[0] eq "ansi")
           {
                   warn("Text file detected, skipping...\n");
                   next;
           }
           warn("$file: Video Streams: $v, Audio Streams: $a, Subtitle Streams: $s, Video Codec(s): " . join (", ", @c) . "\n");
           if (scalar @c > 1)
           {
                   warn("$file has more than one video stream, bailing!\n");
                   next;
           }
           if ($c[0] eq "hevc")
           {
                   warn("HEVC detected for $file ...converting to AVC...\n");
                   system("mkdir -p h265");
                   my @params = ("-hide_banner", "-threads 2");
                   push(@params, "-map 0") if ($a > 1 or $s > 1 or $v > 1);
                   push(@params, "-c:a copy") if ($a);
                   push(@params, "-c:s copy") if ($s);
                   push(@params, "-c:v libx264 -pix_fmt yuv420p") if ($v);
                   if (system("mv '$file' 'h265/$file'"))
                   {
                           warn("Error moving $file -> h265/$file\n");
                           next;
                   }
                   if (system("ffmpeg -xerror -i 'h265/$file' " . join(" ", @params) . " '$file' 2>/dev/null"))
                   {
                           warn("FFMPEG ERROR.  Cannot convert $file restoring original...\n");
                           system("mv 'h265/$file' '$file'");
                           next;
                   }
           } else {
                   warn("$file doesn't appear to need converting... Skipping...\n");
           }
    }
    close DIR;
    </probe></dir>

    The script performs perfectly - as long as it is run from within the directory containing the media.

    My question : Can this script be modified to run recursively from the root directory ? How ?

    Thanks in advance.

    (Michelle’s script can be seen here : http://www.michellesullivan.org/blog/1636)

  • why node-media-server not creating sub folders in server while implementing Live video with RTMP ?

    10 mars 2020, par Kadam Saikumar
    I tried this configuration in local it got works and it creates **./media/live/STREAM KEY** folder and storing video data (MP4 file).
       If i push the same code in server it doesnot create sub folders **live/STREAMKEY** and i am using node version 8 and linux server and ffmpeg 4.


    const nodeMediaServerConfig = {
         // logType: 3,
         rtmp: {
           port: 1935,
           chunk_size: 60000,
           gop_cache: true,
           ping: 60,
           ping_timeout: 30
         },
         http: {
           port: 8000,
           mediaroot: './media',
           allow_origin: '*'
         },
         trans: {
           ffmpeg: '/usr/bin/ffmpeg',
           tasks: [
             {
               app: 'live',
               ac: 'aac',
               mp4: true,
               mp4Flags: '[movflags=faststart]'
             }
           ]
         }
       };

       var nms = new NodeMediaServer(nodeMediaServerConfig);
       nms.run();

    ===============================================================================================
    If i create manually folders will it be useful in server ?

  • Vitamio Media Player License Requirements

    27 mai 2015, par Amanda Fernandez

    I have successfully integrated vitamio project in my app and it works perfectly. But I’m not clear about its licence. I found the project in github. It uses ffmpeg library and some of the files have apache license. So can I use, vitamio for enterprise app without the license ? Or license is mandatory. ?