Snippets tagged "video ffmpeg"
classés par date
get by popularity
Replier tout
Récupérer la taille d'une vidéo en PHP avec ffmpeg
On a besoin de http://ffmpeg-php.sourceforge.net/, puis :
extension_loaded('ffmpeg') or die('ffmpeg extension not loaded'); $ffmpegInstance = new ffmpeg_movie('/path/to/movie.avi'); $ffmpegInstance->getDuration(); // Gets the duration in secs. $ffmpegInstance->getVideoCodec(); // What type of compression/codec used
Faire un screencast sous Ubuntu Edgy
Pas facile vu que ffmpeg nécessite un patch. Heureusement, y'a un .deb de la version patchée :
$ wget -c http://erunar.co.uk/debs/ubuntu_dapper/ffmpeg-0.4.9-p20051216_i386.deb
$ dpkg -i ffmpeg-0.4.9-p20051216_i386.deb
Pour lancer une capture :
$ ffmpeg -vcodec mpeg4 -b 1000 -r 10 -g 300 -vd x11:0,0 -s 1400x1050 ~/Desktop/test.avi
Il faut adapter 1400x1050 à la résolution de l'écran, oeuf corse.
