Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (61)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (6951)

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

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