Recherche avancée

Médias (91)

Autres articles (58)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12734)

  • How To create mosaic with live stream with ffmpeg ( or with xuggle )

    20 septembre 2013, par Emre Karataşoğlu

    For a thousand minutes I try to find a way that stream multiple video and combine them into a one output . I wanna do that with ffmpeg or xuggler with ffmpeg cmd.
    VirtualDub and avis couldn't meet my needs. Actually I couldn't find a way stream in avis . I can only make 4 8 16 videos in a screen on virtualdub but they are local videos and not my issue .

    >cd c:\f\bin

    ffmpeg -i rtmp ://localhost/live/me -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left] ; movie=other stream, scale=iw/4:ih/4 [right] ; [left][right] overlay=main_w/2:0 [out]" -b:v 768k output

    anyway join two stream side by side , but I want more .
    Is it possible with ffmpeg ? Also
    I cant use the program like spycam ,vlc etc . Don't say to me vlc , console vlc can easily do it .

  • FFmpeg converted mp4 file fails to load in Quicktime

    21 décembre 2015, par wonea

    I’ve been using FFmpeg to convert a movie I need to play in MP4, however in Quicktime the following error is presented ;

    FFmpeg file produces this Quicktime error

    (Error -2041 : an invalid sample description was found in the movie (output.mp4)).

    I used the following FFmpeg command parameters to convert the file ;

    C :\Temp\EOBTemp>ffmpeg -i input.mp4 -y
    -acodec libmp3lame -ab 96k -vcodec libx264 -vpre lossless_slow -crf 22
    -threads 0 output.mp4

    Now this file plays absolutely fine, in Windows Media Player, and VideoLAN (FFmpeg based, so no surprise here. I using the latest build from HawkEye’s FFmpeg Windows Builds
    (FFmpeg git-a304071 32-bit Static (Latest)).

    I really hope this isn’t a AAC problem, as I’ve been trying to get FFmpeg to use the libfaac.dll library (in the same folder as the FFmpeg.exe) with the command ;

    -acodec libfaac

    Help ! I’m at a loss !

  • FFmpegPHP get thumbnail from external URL

    22 janvier 2013, par jValdron

    I'm trying to create thumbnails from external videos, mostly MP4s and FLVs. I'm using FFmpegPHP. I already have the thumbnail generation working fine, however, I need to load the video entirely on my server first. Would it be possible to stream only a small part of the video then extract the thumbnail from that ?

    Here's the code I have so far :

    require_once PRIV . 'Vendor/FFmpegPHP/FFmpegAutoloader.php';

    // Download the whole video.
    $video = file_get_contents($_PUT['video']);
    $file = 'path_to_cache';
    file_put_contents($file, $video);

    $movie = new FFmpegMovie($file);

    // Generate the thumbnail.
    $thumb = $movie->getFrame($movie->getFrameCount() / 2);
    $thumb->resize(320, 240);
    imagejpeg($thumb->toGDImage(), 'path_to_thumb');

    Anyone has a suggestion ?

    EDIT

    As Brad suggested, here is the updated code :

    $file = CACHE . 'moodboard_video_' . rand();
    $fh = fopen($file, 'w');
    $size = 0;

    curl_setopt($ch, CURLOPT_URL, $_PUT['video']);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_WRITEFUNCTION, function($ch, $data) use($fh, &$size){
       $length = fwrite($fh, $data);

       if($length === FALSE) {
           return 0;
       } else {
           $size += $length;
       }

       // Downloads 1MB.
       return $size < 1024 * 1024 * XXXXXX ? $length : 0;
    });

    curl_exec($ch);

    fclose($fh);
    curl_close($ch);

    // Create the thumbnail.
    $thumb = $movie->getFrame(XXXXXX);
    $thumb->resize(static::DEFAULT_THUMBNAIL_WIDTH, $thumb->getHeight() / $thumb->getWidth() * static::DEFAULT_THUMBNAIL_WIDTH);
    $image = $thumb->toGDImage();
    imagejpeg($image, PRIV . static::THUMBNAILS_PATH . $item->getLastInsertIdentifier() . '_' . static::DEFAULT_THUMBNAIL_WIDTH);