
Recherche avancée
Autres articles (102)
-
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (10063)
-
ffmpeg - make video for online web players (flowplayer, jw player) [on hold]
7 janvier 2016, par Ba TaIm restreaming a link in ffmpeg using this command line
-vcodec copy -c:a libmp3lame -ab 48k -ar 22050
so if i play in flowplayer (web PLayer) i just listen audio perfect and video has problems "so i just see images insteand of video" its very slow and it blocks
When i play same video link on pc on vlc player its working perfect and in video codec i see
H264 - MPEG-4 AVC (avc1) MPEG Audyo layer 3 (mp3)
so how to convert this stream so i can watch on web players like flowplayer or jw player
-
PHP and ffmpeg - Converting to H.264 on the fly for JW Player
10 mai 2012, par vertigoelectricSo 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 ?
-
avutil/rational : Check that av_reduce() returns values within the requested max
29 décembre 2014, par Michael Niedermayer