Recherche avancée

Médias (91)

Autres articles (17)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (2799)

  • php rename of ffmpeg deleted/reduced my video files to 20Kb

    29 octobre 2018, par ax.falcon

    I’m not sure what I did but somehow when I ran my code it deleted my video files, that is, it reduced each video file to a mere 20-40Kb.

    I’m using a directory tree iterator to go through the selected folder and iterate all the files and subfolders in there, with commands for each. I’m only doing the files at this stage, and the code simply

    1. renames the video file so that it has no spaces in it’s name
    2. extracts a thumbnail using ffmpeg and places it in the videos directory
    3. inserts data in to database for displaying on a website.

    Now I was able to use it once, and it worked save for 2 video files that I had been using for testing. For some reason those files were deleted. I tried running it again and it deleted all the videos.

    What might be the problem ?

    $mysqli = new mysqli("localhost", "refit_2_admin", "asd123", "refit_2");
    if($mysqli->connect_error)
    {
       exit('Error db');
    }
    mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
    $mysqli->set_charset("utf8mb4");
    $_SESSION['mysqli'] = $mysqli;

    // DIRECTORY

    $dir = 'videos';

    $it = new RecursiveTreeIterator(new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS));
    foreach($it as $path => $branch)
    {
       if(is_dir($path)) // if is a directory
       {
           // echo something
       }
       if(is_file($path)) // if is a file
       {
           $schism = pathinfo($path);
           $string = str_replace(' ', '_', $schism['filename']);

           //$string = str_replace($replace, $with, $string);
           rename($path, $dir.'\\'.$string.'.mp4');

           $ffmpeg = 'ffmpeg.exe';

           $video = dirname(__FILE__) . '\\'.$dir.'\\'.$string.'.mp4';
           //echo ''.$video.'<br />';

           $image = dirname(__FILE__) . '\\'.$dir.'\\'.$string.'.jpg';
           //echo ''.$image.'<br />';

           $second = 1;

           /*$cmd = "$ffmpeg -i $video 2>&amp;1";
           if (preg_match('/Duration: ((\d+):(\d+):(\d+))/s', `$cmd`, $time)) {
               $total = ($time[2] * 3600) + ($time[3] * 60) + $time[4];
               $second = rand(1, ($total - 1));
           }*/

           $cmd = "$ffmpeg -i $video -deinterlace -an -ss $second -t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg $image 2>&amp;1";
           $return = `$cmd`;

           $video_title = substr($schism['filename'], 0, -5);
           $video_filename = $schism['filename'].'.mp4';
           $video_thumbnail = $schism['filename'].'.jpg';
           $video_include = basename(__DIR__);
           // Insert
           $stmt = $mysqli->prepare("INSERT INTO videos (video_title, video_filename, video_include, video_tags, video_thumbnail) VALUES (?, ?, ?, ?, ?)");
           $stmt->bind_param("sssss", $video_title, $video_filename, $dir, $video_title, $video_thumbnail);
           $stmt->execute();
           $stmt->close();
       }

    }
  • build : Store library version numbers in .version files

    17 décembre 2016, par Diego Biurrun
    build : Store library version numbers in .version files
    

    This moves work from the configure to the Make stage where it can
    be parallelized and ensures that shared libraries are built with
    the right version number in the filename.

    • [DBH] Makefile
    • [DBH] avbuild/common.mak
    • [DBH] avbuild/library.mak
    • [DBH] avbuild/libversion.sh
    • [DBH] configure
  • Piwik Analytics becomes Matomo to reflect Users’ Privacy Focus

    10 janvier 2018, par Matomo Core Team

    One of the world’s leading analytics software platforms is changing its name. Piwik is the sixth most-used web and mobile analytics computer solution worldwide. It is now changing its name to Matomo.

    The name change comes after 10 years of Piwik building its top analytics software, with great success. It is already used on over one million websites in more than 170 countries. Matomo will build on that success, and focus even more on privacy.

    ‘Privacy has become a huge concern worldwide’, says Matomo’s creator, Matthieu Aubry. ‘Privacy legislation is being developed in Europe, and we will be ahead of the game in being ready for those changes. We’ll grow in line with the law and regulation changes.’

    Matomo will lead the way in openness and transparency for its users. Its new name means honesty in Japanese.
    ‘Matomo will always be free and community-driven, just as Piwik was’, says Matthieu Aubry. ‘We have worked with hundreds of people to create the best open digital analytics solution in the world. We’re committed to giving every user full control of their data.’

    The change of name is appropriate as the Matomo platform moves into a new stage of growth. But for its community, little will obviously change. The same people will still be involved, and users will still get useful data to improve their own website. That data includes who visits their site, what they do there, how long they stay, and what they buy.
    Matomo is an all-in-one analytics solution that gives companies a 360 degree view of their users.

    ‘They can grow their business while still keeping 100% ownership of their data, and being fully compliant with privacy laws’, says Matthieu Aubry. ‘We’re more motivated than ever to building on that, so that Matomo stays ahead of the pack.’

    The platform can be fully customised with hundreds of plug-ins, integrations and configurations.

    Matomo’s updated website and new logo is now available on https://matomo.org.
    For further information, please contact the Matomo Team on hello@matomo.org

    The post Piwik Analytics becomes Matomo to reflect Users’ Privacy Focus appeared first on Analytics Platform - Matomo.