Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (59)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (7357)

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