
Recherche avancée
Autres articles (72)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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. -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (11619)
-
Container does not reflect MediaReader setting
8 mars 2014, par MondainI would like my reader to be able to handle audio, when it does not start with the video ; hence the setting of "AddDynamicStreams". How do I get the container to recognize the setting of the reader from which it originated ? Is there a flag or some other property that I need to set ?
String inputUrl = "rtmp://127.0.0.1:1935/myapp/mystream live=1 buffer=1";
IMediaReader reader = ToolFactory.makeReader(inputUrl);
reader.setCloseOnEofOnly(false);
reader.setQueryMetaData(false);
// we want dynamic addition of streams
reader.setAddDynamicStreams(true);
// this shows "true"
log.debug("Reader can dynamically add streams: {}", reader.canAddDynamicStreams());
// get the container
IContainer container = reader.getContainer();
// this shows "false"
log.debug("Container can dynamically add streams: {}", container.canStreamsBeAddedDynamically()); -
Getting video metadata in ruby script using ffmpeg, ffprobe or rvideo
24 janvier 2013, par alexI want to get metadata of videos referenced by a URL using Ruby. At this point, I found many related posts, but could not find out how to solve my problem.
I tried to use RVideo, but when I do :
file = RVideo::Inspector.new(:file => 'http://www.agreatsite.com/avideo.mp4' ;)
It throws
'ArgumentError : File not found (http://www.agreatsite.com/avideo.mp4)...
So I can't get the information using RVideo (but it works well when I have the file hosted on my local computer).
I then tried to use ffprobe, but I don't know how to read the output.
So far, I have the following method, which "shows" the information I want when I run it in the console, but it actually returns "true" and I can't find out how to capture the output I need...def media_info
source = self
command = <<-end_command
ffprobe -v quiet -print_format json -show_format -show_streams #{source}
end_command
command.gsub!(/\s+/, " ")
system(command)
endWould love some help, to make this work with either ffprobe or RVideo !
UPDATE :
I found a way to get what I needed. Not sure this is the best way to do it :def get_media_duration
source = self.media[0][:url]
command = <<-end_command
ffprobe -v quiet -show_streams #{source}
end_command
command.gsub!(/\s+/, " ")
duration = ""
IO.popen(command) { |io| while (line = io.gets) do
puts "++ "+line.inspect
duration = line.split("duration=")[1].gsub("\n", "") if line.split("duration=").length > 1
end
}
durationend
I guess I could make it work that way, but doesn't seem very elegant to me. Better suggestions would be greatly appreciated !
-
Securely using the PHP exec function
19 janvier 2012, par siberiantigerI am writing a PHP script designed to run an executable file (ffmpeg.exe) via the exec() function. The problem is that I have read that using the exec() function can be a security risk and should be avoided if possible. I have been doing some research into how to run the exec() function securely, and the only thing that I keep coming across is to filter the command string with escapeshellcmd or escapeshellarg. What I want to know is if it is possible to further increase security when using the exec() function or if there is a secure alternative to exec(). Any help would be appreciated.
Here is my code ;
define('FFMPEG_LIBRARY', 'c:\\ffmpeg7\\ffmpeg\\bin\\ffmpeg ');
$transcode_string = FFMPEG_LIBRARY." -i " . $srcFile . " -acodec libmp3lame -ab 64k -ar 22050 -ac 1 -vcodec libx264 -b:v 250k -r 30 -f flv -y " . $destFile;
$transcode_string = escapeshellcmd($transcode_string);
exec($transcode_string);$srcFile is basically the video for transcoding while $destFile is the output file I wish to create.