
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (13)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Déploiements possibles
31 janvier 2010, parDeux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
Version mono serveur
La version mono serveur consiste à n’utiliser qu’une (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (4031)
-
php ming flash swf slideshow to mp4/avi
19 août 2013, par StefanAfter hours of searching and trying i finally got a nice script together that generates a good looking Flash .swf file with a nice transaction in between de images.
It works great if you access the swf file directly in a browser, depending on the amount of images the flash created takes anywhere between 10 and 60 seconds.
But when uploading to Youtube the movie created flashed by in one second.
Because swf isnt really a accepted fileformat for Youtube we decided to convert the flash file to mp4 or avi using ffmpeg.
Unfortunally that didnt work, it had the same effect as the youtube movie.
We had a old version of ffmpeg and updated that to a recent version and tried to convert again with the same result.
The main thing i see is that ffmpeg cant see the swf file duration and bitrate, they are both 'N/A' while were do set them in the php script.
I thought it looked like the Metadata doesnt get written and i cant find anything on that regarding Ming.
But i downloaded a phpclass that extracts the metadata from the swf and that tells me the framerate etc is getting set.Now i have to admit i havent really tested with the new version because the commandline options are a little different but ill work on that after i post this.
In the previous version we tried setting the framerate of the source swf file, but that didnt work either.Anyone here that can has a idea ? it would be greatly appriciated.
PHP Ming Script :
$fps = 30;
foreach($objects as $objectId => $images){
// START FLASH MOVIE
$m = new SWFMovie();
$m->setDimension($width, $height);
$m->setBackground(0, 0, 0);
$m->setRate($fps);
$m->setFrames(count($images)*202); //count(images)* 2 breaks *($fps*$breakTime)+22(fadeOut))
$i = 0;
foreach($images as $image){
// REMOVE THE BACKGROUND IMAGE
if($behind){
$m->remove($behind);
}
// # REMOVE
// LOAD NEW IMAGE
$img = new SWFBitmap(fopen($image,"rb"));
$pic = $m->add($img);
$pic->setdepth(3);
// # LOAD
// BREAK TIME
for($j=1;$j<=($fps*$breakTime);$j++){
$m->nextFrame();
}
$m->remove($pic);
// # BREAK
// LOAD THE NEXT IMAGE AS BACKGROUND, IF LAST IMAGE, LOAD FIRST
$nextBackgrondImage =($images[$i+1]) ? $images[$i+1] : $images[0] ;
$img = new SWFBitmap(fopen($nextBackgrondImage,"rb"));
$behind = $m->add($img);
$behind->setdepth(2);
// # LOAD
// AND FADE OUT AGAIN
$img = fadeOut($image, $width, $height);
$pic = $m->add($img);
$pic->setdepth(3);
// # FADE OUT
// BREAK TIME
for($j=1;$j<=($fps*$breakTime);$j++){
$m->nextFrame();
}
$m->remove($pic);
# BREAK
$i++;
}
$m->save('./flash/'.$nvmId.'_'.$objectId.'.swf');
unset($m);
}
}FFMPEG version :
root@server:~# ffmpeg -version
\FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 15 2013 20:43:21 with gcc 4.4.5
configuration: --enable-libmp3lame --enable-libtheora --enable-libx264
--enable-libgsm --enable-postproc --enable-libxvid --enable-libfaac --enable-pthreads
--enable-libvorbis --enable-gpl --enable-x11grab --enable-nonfree
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
FFmpeg SVN-r26402
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0FFMPEG command
root@server:~# ffmpeg -r 30 -i /pathTo/flash/73003_8962011.swf -r 30 -ar 22050 -b 2048k /pathTo/flash/output.avi
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 15 2013 20:43:21 with gcc 4.4.5
configuration: --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libgsm --enable-postproc --enable-libxvid
--enable-libfaac --enable-pthreads --enable-libvorbis --enable-gpl --enable-x11grab --enable-nonfree
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[swf @ 0x1ca1510] Estimating duration from bitrate, this may be inaccurate
Input #0, swf, from '/pathTo/flash/73003_8962011.swf':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 360x480, 30 fps, 30 tbr, 30 tbn, 30 tbc
File '/pathTo/output.avi' already exists. Overwrite ? [y/N] y
[buffer @ 0x1cb42d0] w:360 h:480 pixfmt:yuvj420p
[ffsink @ 0x1cb4570] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x1cb4870] w:360 h:480 fmt:yuvj420p -> w:360 h:480 fmt:yuv420p flags:0xa0000004
Output #0, avi, to '/pathTo/flash/output.avi':
Metadata:
ISFT : Lavf52.93.0
Stream #0.0: Video: mpeg4, yuv420p, 360x480, q=2-31, 2048 kb/s, 30 tbn, 30 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
Input Stream #0.0 frame size changed to 640x480, yuvj420p
frame= 39 fps= 0 q=17.5 Lsize= 524kB time=1.30 bitrate=3304.9kbits/s
video:518kB audio:0kB global headers:0kB muxing overhead 1.250735%Metadata :
DEBUG: Data values initialized
DEBUG: Opened ./flash/98701_8965910.swf
DEBUG: Read MAGIC signature: FWS
DEBUG: Read VERSION: 9
DEBUG: Partial SIZE read: 225
DEBUG: Partial SIZE read: 28928
DEBUG: Partial SIZE read: 1441792
DEBUG: Partial SIZE read: 0
DEBUG: Total SIZE: 1470945
DEBUG: RECT field size: 15 bits
DEBUG: RECT binary value: 000000000000000 (0)
DEBUG: RECT binary value: 011001000000000 (640)
DEBUG: RECT binary value: 000000000000000 (0)
DEBUG: RECT binary value: 010010110000000 (480)
DEBUG: Frame rate: 30.0
DEBUG: Frames: 2222
DEBUG: Finished processing ./flash/98701_8965910.swf
FILE: ./flash/98701_8965910.swf
MAGIC: FWS
VERSION: 9
SIZE: 1470945 bytes
WIDHT: 640
HEIGHT: 480
FPS: 30.0 Frames/s
FRAMES: 2222 FRAME -
how to install ffmpeg in cpanel
30 janvier 2012, par Ajay Chthrii'm using dedicated server(linux) so i need to install ffmpeg in cpanel so here ffmpeg i found in Main >> Software >> Install a Perl Module but i writing script in php so how can i install ffmpeg phpperl
when i'am trying to install ffmpeg in perl module i get this response
Checking C compiler....C compiler (/usr/bin/cc) OK (cached Tue Jan 17 19:16:31 2012)....Done
CPAN fallback is disabled since /var/cpanel/conserve_memory exists, and cpanm is available.
Method: Using Perl Expect, Installer: cpanm
You have make /usr/bin/make
Falling back to HTTP::Tiny 0.009
You have /bin/tar: tar (GNU tar) 1.15.1
You have /usr/bin/unzip
You have Cpanel::HttpRequest 2.1
Testing connection speed...(using fast method)...Done
Ping:2 (ticks) Testing connection speed to cpan.knowledgematters.net using pureperl...(28800.00 bytes/s)...Done
Ping:2 (ticks) Testing connection speed to cpan.develooper.com using pureperl...(22233.33 bytes/s)...Done
Ping:2 (ticks) Testing connection speed to cpan.schatt.com using pureperl...(32750.00 bytes/s)...Done
Ping:3 (ticks) Testing connection speed to cpan.mirror.facebook.net using pureperl...(14050.00 bytes/s)...Done
Ping:2 (ticks) Testing connection speed to cpan.mirrors.hoobly.com using pureperl...(5150.00 bytes/s)...Done
Five usable mirrors located
Ping:0 (ticks) Testing connection speed to 208.109.109.239 using pureperl...(28950.00 bytes/s)...Done
Ping:2 (ticks) Testing connection speed to 208.82.118.100 using pureperl...(19300.00 bytes/s)...Done
Ping:1 (ticks) Testing connection speed to 69.50.192.73 using pureperl...(19300.00 bytes/s)...Done
Three usable fallback mirrors located
Mirror Check passed for cpan.schatt.com (/index.html)
Searching on cpanmetadb ...
Fetching http://cpanmetadb.cpanel.net/v1.0/package/Video::FFmpeg?cpanel_version=11.30.5.6&cpanel_tier=release (connected:0).......(request attempt 1/12)...Using dns cache file /root/.HttpRequest/cpanmetadb.cpanel.net......searching for mirrors (mirror search attempt 1/3)......5 usable mirrors located. (less then expected)......mirror search success......connecting to 208.74.123.82...@208.74.123.82......connected......receiving...100%......request success......Done
Searching Video::FFmpeg on cpanmetadb (http://cpanmetadb.cpanel.net/v1.0/package/Video::FFmpeg?cpanel_version=11.30.5.6&cpanel_tier=release) ...
Fetching http://cpanmetadb.cpanel.net/v1.0/package/Video::FFmpeg?cpanel_version=11.30.5.6&cpanel_tier=release (connected:1).......(request attempt 1/12)...@208.74.123.82......connected......receiving...100%......request success......Done
Source: fastest CPAN mirror ... --> Working on Video::FFmpeg
Fetching http://cpan.schatt.com//authors/id/R/RA/RANDOMMAN/Video-FFmpeg-0.47.tar.gz ... Fetching http://cpan.schatt.com/authors/id/R/RA/RANDOMMAN/Video-FFmpeg-0.47.tar.gz (connected:1).......(request attempt 1/12)...Resolving cpan.schatt.com...(resolve attempt 1/65)......connecting to 66.249.128.125...@66.249.128.125......connected......receiving...25%...50%...75%...100%......request success......Done
OK
Unpacking Video-FFmpeg-0.47.tar.gz
Video-FFmpeg-0.47/
Video-FFmpeg-0.47/Changes
Video-FFmpeg-0.47/FFmpeg.xs
Video-FFmpeg-0.47/MANIFEST
Video-FFmpeg-0.47/META.yml
Video-FFmpeg-0.47/Makefile.PL
Video-FFmpeg-0.47/README
Video-FFmpeg-0.47/lib/
Video-FFmpeg-0.47/lib/Video/
Video-FFmpeg-0.47/lib/Video/FFmpeg/
Video-FFmpeg-0.47/lib/Video/FFmpeg/AVFormat.pm
Video-FFmpeg-0.47/lib/Video/FFmpeg/AVStream/
Video-FFmpeg-0.47/lib/Video/FFmpeg/AVStream/Audio.pm
Video-FFmpeg-0.47/lib/Video/FFmpeg/AVStream/Subtitle.pm
Video-FFmpeg-0.47/lib/Video/FFmpeg/AVStream/Video.pm
Video-FFmpeg-0.47/lib/Video/FFmpeg/AVStream.pm
Video-FFmpeg-0.47/lib/Video/FFmpeg.pm
Video-FFmpeg-0.47/ppport.h
Video-FFmpeg-0.47/t/
Video-FFmpeg-0.47/t/Video-FFmpeg.t
Video-FFmpeg-0.47/test
Video-FFmpeg-0.47/test.mp4
Video-FFmpeg-0.47/typemap
Entering Video-FFmpeg-0.47
Checking configure dependencies from META.yml
META.yml not found or unparsable. Fetching META.yml from search.cpan.org
Fetching http://search.cpan.org/meta/Video-FFmpeg-0.47/META.yml (connected:1).......(request attempt 1/12)...Resolving search.cpan.org...(resolve attempt 1/65)......connecting to 199.15.176.161...@199.15.176.161......connected......receiving...100%......request success......Done
Configuring Video-FFmpeg-0.47 ... Running Makefile.PL
Perl v5.10.0 required--this is only v5.8.8, stopped at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.
N/A
! Configure failed for Video-FFmpeg-0.47. See /home/.cpanm/build.log for details.
Perl Expect failed with non-zero exit status: 256
All available perl module install methods have failedguide me how can i install ffmpeg in cPanel
Thanks for advance.
-
Compiling tutorial programs on FFMPEG
29 janvier 2012, par iwant2learnHow do i compile the sample programs given in FFMPEG. i am not able to compile as i get
error as CODEC_TYPE_VIDEO undeclared. Can any one please suggest me how to compile the programs. I am using ubuntu 11.This is the first example :
$ gcc -o tutorial01 tutorial01.c -lavutil -lavformat -lavcodec -lz
This is the output I got :
tutorial01.c: In function ‘main’: tutorial01.c:77:3: warning: ‘dump_format’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1462)
tutorial01.c:82:51: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
tutorial01.c:82:51: note: each undeclared identifier is reported only once for each function it appears inVersion info :
ffmpeg version git-N-30430-ga52f598, Copyright (c) 2000-2011 the FFmpeg developers
built on May 31 2011 14:21:08 with gcc 4.5.2
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 51. 3. 0 / 51. 3. 0
libavcodec 53. 6. 1 / 53. 6. 1
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 1. 0 / 53. 1. 0
libavfilter 2. 11. 0 / 2. 11. 0
libswscale 0. 14. 0 / 0. 14. 0
libpostproc 51. 2. 0 / 51. 2. 0