
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (71)
-
Amélioration de la version de base
13 septembre 2013Jolie 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, parExplications 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, parLe 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 (9310)
-
how to update ffmpeg password in Config.php
15 décembre 2014, par Ray Martin BaliloI have successfully installed PHP FFMPEG on my laptop which is windows 8 (I was using xampp) following this guide
http://myownhomeserver.com/2012/12/how-to-install-ffmpeg-php-php-5-4-on-windows-8-xampp-1-8-1/
after installing it, the test file is working just right. Then after that i try the video conversion guide following this
http://myownhomeserver.com/2012/12/how-to-run-execute-ffmpeg-with-php-on-windows-pc/
my problem is that when i try to click the convert it button. It says that "The page at localhost:8080 says : Request failed !"
according to the comment in the guide the solution is i need to update the password of ffmpeg in config.php
this is the code of config.php :
<?php
/**
* Configuration File
*
* @ver 0.1
*/
define('DS', DIRECTORY_SEPARATOR);
define('BASE_PATH', realpath(dirname(__FILE__)) . DS);
$_protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != "off") ? "https" : "http";
define('BASE_URL', $_protocol ."://". $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']) .'/');
// Videos to convert path
define('SOURCE_PATH', BASE_PATH . 'source'. DS);
// Converted videos output path
define('OUTPUT_PATH', BASE_PATH .'output'. DS);
// Logs Path
define('LOG_PATH', BASE_PATH .'logs'. DS);
// POST URL for Javascript Queries
define('POST_URL', BASE_URL .'process.php');
// Execution Script URL (Where the ffmpeg command will be posted to)
define('EXEC_URL', BASE_URL .'ffmpegExec.php');
// FFMPEG Path (ffmpeg.exe)
define('FFMPEG_PATH', BASE_PATH .'ffmpeg\bin\ffmpeg.exe');
// FFMPEG Password (Change the value 't^$bG1c4=9u63yyKLmW7Q71tu17p5q' with something new!)
define('FFMPEG_PW', sha1('sdfdfe'));
if( !file_exists(SOURCE_PATH) )
mkdir(SOURCE_PATH, 0755, true);
if( !file_exists(OUTPUT_PATH) )
mkdir(OUTPUT_PATH, 0755, true);
if( !file_exists(LOG_PATH) )
mkdir(LOG_PATH, 0755, true);My problem is I dont know how to locate the password of ffmpeg in my windows 8 laptop. Can someone tell me how can I locate the password of ffmpeg ?
I know I need to make some minor changes in config.php, mainly setting the FFMPEG_PATH constant to the correct location for my Windows computer. But I dont know how... please someone help me pleaseThanks for the help in advance
-
How to setup ffmpeg for CentOS release 6.5 server
23 juillet 2015, par hiteshI need to create a screen shot from video,
I have followed this tutorial to do the intial setup in window 8, php 5.3
1) I downloaded the ffmpeg from here -[
http://ffmpeg.zeranoe.com/builds/ ] for 64 bit operating system.2) I followed the https://www.youtube.com/watch?v=gU49GiWGGAI , video and did all configuration successfully and
phpinfo()
shows thatffmpeg
has been installed.3) Then I tried this to find out whether it is working or not,
It worked successfully
4) Next I followed this video tutorial here and thumbnails were created successfully.
below is my code
/**
* FFMPEG-PHP Test Script
*
* Special thanks to http://www.sajithmr.me/ffmpeg-sample-code for this code example!
* See the tutorial at http://myownhomeserver.com on how to install ffmpeg-php.
*/
error_reporting(1);
error_reporting(E_ALL ^ E_NOTICE);
// Check if the ffmpeg-php extension is loaded first
extension_loaded('ffmpeg') or die('Error in loading ffmpeg');
// Determine the full path for our video
$vid = realpath('./videos/myvideo.mp4');
$videosize = filesize($vid);
$remoteVideo = 'http://video-js.zencoder.com/oceans-clip.mp4';
//ffmpeg
$ffmpeg = dirname(__FILE__) . "\\ffmpeg\\bin\\ffmpeg";
$imageFile = "1.png";
$image2 = "2.png";
$size = "120x90";
$getfromsecond = 7;
$cmd = "$ffmpeg -i $vid -an -ss $getfromsecond -s $size $imageFile";
$cmd2 = "$ffmpeg -i $remoteVideo -an -ss $getfromsecond -s $size $image2";
if(!shell_exec($cmd)){
echo "Thumbnail created";
}else{
echo "Error Creating thumbnail";
}
if(!shell_exec($cmd2)){
echo "Thumbnail for remote url was created";
}else{
echo "Error Creating thumbnail for remote url ";
}OUTPUT
Thumbnail created
Thumbnail for remote url was createdNow above code works as expected in my local, in window machine , I need to do it in my server environment(Linux server) with php 5.5. How do I do the configuration for ffmpeg in CentOS release 6.5 server with php 5.5.
I have followed this tutorial to install it in server
1.http://supportlobby.com/blog/ffmpeg-installation-on-centos-6-5/
2.http://tecadmin.net/install-ffmpeg-on-linux/
OUTPUT IN CONSOLE
[root@BRANDWEB01D ~]# ffmpeg -version
ffmpeg version 2.2.1
built on Apr 13 2014 13:00:18 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
[root@BRANDWEB01D ~]# which ffmpeg
/usr/bin/ffmpeg
[root@BRANDWEB01D ~]# ffmpeg -formats
ffmpeg version 2.2.1 Copyright (coffee) 2000-2014 the FFmpeg developers
built on Apr 13 2014 13:00:18 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
File formats:
D. = Demuxing supported
.E = Muxing supportedBut in server when I open my php file I am getting this error
Error in loading ffmpeg
Also I have checked phpinfo(), It shows ffmpeg installed in my local but not in server.
What else I need to do to configure ffmpeg in Cent Os 6.5 php 5.5.
-
Matplotlib animation won't save
17 décembre 2014, par abe678I am trying to learn how to create matplotlib animations by using Jake Vanderplas’s basic example, but I’m having trouble getting the figure to save. I installed ffmpeg on my Mac via homebrew.
The only changes that I have made are to add :
import matplotlib
matplotlib.use('TKAgg')When I run this script I receive the following error :
anim.save('basic_animation.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
TypeError: save() got an unexpected keyword argument 'extra_args'Based on the many other similar questions, I’ve tried setting the ffmpeg path with
plt.rcParams['animation.ffmpeg_path']
but that also gives me an error :
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/__init__.py", line 660, in __setitem__
See rcParams.keys() for a list of valid parameters.' % (key,))
KeyError: 'animation.ffmpeg_path is not a valid rc parameter.See rcParams.keys() for a list of valid parameters.'After removing the rcParams setting, I also tried adjusting the save command to avoid the aforementioned TypeError :
try:
anim.save('basic_animation.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
except TypeError:
anim.save('basic_animation.mp4', fps=30)This runs with no error, but the mp4 file is not created. I have read over every thread and tried every solution I can find, but nothing changes. The plt.show() call works just fine. Can anyone please point me in the right direction ? Thanks !
Update : I’m using matplotlib version 1.1.1