Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (21)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (5184)

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

  • VOD HTTP Live Streaming in addition to video delivery using (flash) player

    29 mai 2012, par Luuk D. Jansen

    I have created a delivery system for HTTP Live Streaming using the Play ! framework and FFMPEG. Files are encoded on different bandwidths and subsequent segmented for delivery, current, to iOS devices.

    However, I would like to extend to embedded players (cross platform) on websites and in the future Android devices. What would be the best approach, without having too much hard drive space overhead. I could encode the MP4 files for the different bitrates, and leave them as one file.

    Is there a way that the segmented files (using the FFMPEG segment function) could be used in a Flash player and on Android devices ? It would keep the system simple, as FFMPEG seems to do a good job on creating the segments (taking in account keyframes etc.)

    I could use JWPlayer, but I don't have pseudo-live-streaming, so don't think it could switch and searching would prove difficult. It could also mean that I would need to segment on the fly when a request from an iOS device comes, which adds a small delay and also some hard-drive/processor activity. To overcome the pseudo-live-streaming issue I could redact any request to an Apache server with it enabled, but will add further complexity. Not having pseudo-live streaming for the segmented files doesn't seem that much of an issue as they are only 10 minutes each.

    Anybody who has any thoughts on moving forward.

  • How to change sample rate in FFMPEG

    23 décembre 2016, par John_D

    I use FFMPEG since few moments now and after asking for help here a first time about that, i was able to discover this command line that i use since then, for the conversion of .MP4 video to .FLV : ffmpeg -i namefile.mp4 -c:v libx264 -crf 19 destinationfile.flv .

    The results was simply amazing ! Perfect video and a lot less space needed. But i’ve try this same line for a new video and didn’t work.

    This is what appears to me :

    [libmp3lame @ 03eaf5a0] flv does not support that sample rate, choose from (44100, 22050, 11025).

    After that, i’ve try theses commands lines

    ffmpeg -i in.mp4 -c:v libx264 -b:v 500k -c:a copy out.flv
    ffmpeg -i in.mp4 -c:v libx264 -ar 22050 -crf 19 out.flv

    Without succes. So right now i just dont know what to do else to be able to convert this MP4 file to a FLV one, who is smaller in size and keep a perfect image, just like the others conversions made with the first code line before.

    Thanks for your help !