Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (63)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (9376)

  • PHP and ffmpeg - Converting to H.264 on the fly for JW Player

    10 mai 2012, par vertigoelectric

    So the project I'm working on has tons of MP4 files already on the server that need to be played in an embedded player. Ideally we'd like to use the JW Player which is already set up for most of the videos. Unfortunately, a lot of the older videos are MPEG-4 encoded and require additional plugins to play in the browser.

    What I'd like to do is be able to transcode these videos on the fly to a format that JW Player supports, such as H.264. Now, I'm part way there because I can get it to convert the old MP4 files, but I'm having difficulty passing the data directly to the player.

    This is my current script doing the converting (this is media_converted.php) :

    <?php
       error_reporting(0);
       if (!isset($_GET["MediaName"])) {
           $_GET["MediaName"] = "GSX238";
       }      
       require_once("php/media_center_functions.php");
       $MediaURL = ConstructVideoURLInternap($_GET["MediaName"]);  
       header("Content-Transfer-Encoding: binary");
       //header('Content-type: video/mp4');
       //$calculatedFileSize = filesize($MediaURL);
       //header("Content-Length: {$calculatedFileSize}");

       $cmd = 'ffmpeg -i "'.$MediaURL.'"  -vcodec libx264 -acodec copy -f mp4  -moov_size 32000 "_temp/'.time().'_temp.mp4"  2> _temp/media_converter_output.txt';
       passthru($cmd);

    ?>

    I'm trying to take the above file and pass it to the JW Player as the video source : in the JW Player's variable scripting, like so :

    so.addVariable('file','media_converted.php?MediaName=12345');

    While I believe this should work, it's just not.

    Even when the conversion seems to work and be sending to the player, it's hard to tell because I think the browser is trying to download the entire file before playing anything. Obviously I can't make the user wait like that.

    I've looked into qt-faststart, and I was able to use it on my computer to modify the file so that it can start playing while it's being loaded. Unfortunately, this requires two steps. I first have to completely convert the file, then when it's done I have to use qt-faststart.exe on it. Again, this doesn't isn't really an on-the-fly solution. I'm sure there has to be some way to do produce similar results in a single command to be output to the player... right ?

    There is more video data on the server than I currently have space for on my hard drive, so to permanently re-encode each video, even in batches, would be troublesome, because I'd have to download some, convert, reupload, download more, etc. If I have to do that, I will, but I would prefer to leave them as is and be able to transcode on the fly.

    Any ideas ?

  • ftp: reconnect on read

    27 mai 2013, par Lukasz Marek
    ftp: reconnect on read
    

    FTP server may disconnect after some period of time when no transfer is done.

    FTP protocol should reconnect and seek to last position.

    • [DH] libavformat/ftp.c
  • how to set up a streaming media server with the h.264 RTP packets as input-stream

    29 septembre 2013, par chenakira

    As beginning there may be some confusion,however the destination is
    setting up a RTP stream-sever to transfer the real-time monitoring
    video to other systems over internet.

    While my input is not a local file or some other URL input streams.
    My program just gets the RTP h.264 packets,and want to use my setting-up RTP server to transfer this video.

    I've considered about using the ffmpeg+ffserver ,but ffserver.config
    file need to use the local file to configure the input source. Hope
    some guys give me some hint or any other resolution to implement my
    streaming-media server.