Recherche avancée

Médias (91)

Autres articles (75)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par 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 ;

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette 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.

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (10323)

  • Calculate PSNR and MSE for individual frames using ffmpeg

    26 juin 2015, par Mayank Agarwal

    I have an avi file.i am converting avi file to .mp4 codec H.264 and ain second case to .mp4 file codec H.265.Now i want to calculate the PSNR/MSE/MSAD between the ref file(avi file) and the converted mp4 file using ffmpeg.Came across ffmpeg command line filters for PSNR and SSIM calculation but it gives the average PSNR value not the PSNR value frame by frame.Also i want to do it using code and not using command line.Read several examples in demuxing.c it is separating the whole file into frames in av_read_frame before calling decode
    but how can i convert pkt to frame and able to calculate PSNR or MSE values.

    Regards
    Mayank

  • ffmpeg-php installation shows error in centos

    23 juillet 2015, par mehedi

    I am a newbie in Centos. I installed ffmpeg in my server using yum command. I want to install ffmpeg-php. I downloaded the source file from :

    http://ffmpeg-php.svn.sourceforge.net/viewvc/ffmpeg-php/trunk/ffmpeg-php/?view=tar

    After extraction I use the following commands :

    1. phpize
    2. ./configure —enable-shared

    But when I try to make the build it gets the following error :

    /bin/sh /usr/local/src/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/usr/local

    /src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo
    libtool: compile:  cc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c  -fPIC -DPIC -o .libs/ffmpeg-php.o
    In file included from /usr/include/sys/stat.h:107,
                    from /usr/include/php/main/php_streams.h:28,
                    from /usr/include/php/main/php.h:405,
                    from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
    /usr/include/bits/stat.h:73: error: field ‘st_atim’ has incomplete type
    /usr/include/bits/stat.h:74: error: field ‘st_mtim’ has incomplete type
    /usr/include/bits/stat.h:75: error: field ‘st_ctim’ has incomplete type
    /usr/include/bits/stat.h:119: error: field ‘st_atim’ has incomplete type
    /usr/include/bits/stat.h:120: error: field ‘st_mtim’ has incomplete type
    /usr/include/bits/stat.h:121: error: field ‘st_ctim’ has incomplete type
    In file included from /usr/include/php/main/php_streams.h:28,
                    from /usr/include/php/main/php.h:405,
                    from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
    /usr/include/sys/stat.h:367: error: array type has incomplete element type
    /usr/include/sys/stat.h:374: error: array type has incomplete element type
    In file included from /usr/include/php/main/php.h:411,
                    from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
    /usr/include/php/TSRM/tsrm_virtual_cwd.h:212: error: expected specifier-qualifier-list before ‘time_t’
    /usr/include/php/TSRM/tsrm_virtual_cwd.h:240: error: expected declaration specifiers or ‘...’ before ‘time_t’
    In file included from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:46:
    /usr/local/include/libswscale/swscale.h:140: warning: ‘enum AVPixelFormat’ declared inside parameter list
    /usr/local/include/libswscale/swscale.h:146: warning: ‘enum AVPixelFormat’ declared inside parameter list
    /usr/local/include/libswscale/swscale.h:189: warning: ‘enum AVPixelFormat’ declared inside parameter list
    /usr/local/include/libswscale/swscale.h:316: warning: ‘enum AVPixelFormat’ declared inside parameter list
    make: *** [ffmpeg-php.lo] Error 1

    Please help !!!

  • For WMV files avformat_find_stream_info() shows "Extra data : 8 bits left, value : 0" message

    15 avril 2013, par Mike

    When I call avformat_find_stream_info() for wmv files, the following message is always seen :
    [wmv3 00FAEAE0] Extra data : 8 bits left, value : 0

    After that the program works as expected but anyway I would like to know what does that message mean ? Thank you !

    File info (by ffmpeg -i) :

    Duration: 00:00:06.92, start: 0.000000, bitrate: 1514 kb/s
    Stream #0:0(rus): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 128 kb/s
    Stream #0:1(rus): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 720x576, 1368 kb/s, SAR 16:15 DAR 4:3, 25 tbr, 1k tbn, 1k tbc

    Code :

    AVFormatContext*    pFormatCtx = avformat_alloc_context();
    if (avformat_open_input(&pFormatCtx, "file.wmv", NULL, NULL) < 0)
       return 0;
    if (avformat_find_stream_info(pFormatCtx, NULL) < 0) // HERE WE HAVE GOT THAT MESSAGE
       return 0;