Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (10486)

  • Video width is different in different devices

    8 novembre 2017, par David

    I have a special video when i want to get this video’s width code returns different value for Samsung galaxy s6 and Samsung note 3. I tested many different codes and libraries, but result is the same.
    in Samsung galaxy s6 : 640x480
    in Samsung note 3 : 853x480
    when I open this video with Gspot program it shows :

    Recommended Display Size : 853x480

    and this is the same value is returned by our IOS app tested in Iphone 7. aspect radio is not the same and this is big problem.

    here is some of codes I tested :

    (1)

       MediaMetadataRetriever metaRetriever = new MediaMetadataRetriever();
       metaRetriever.setDataSource(path);
       Bitmap bmp = metaRetriever.getFrameAtTime(-1);

       int height = bmp.getHeight();
       int width = bmp.getWidth();

    (2)

       MediaPlayer myMediaPlayer= MediaPlayer.create(ApplicationLoader.applicationContext,
                                        Uri.fromFile(new File(path)));

       width = myMediaPlayer.getVideoWidth();
       height = myMediaPlayer.getVideoHeight();

    (3)

    MediaMetadataRetriever metaRetriever = new MediaMetadataRetriever();
           metaRetriever.setDataSource(path);
    String heights = metaRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT);
           String widths = metaRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH);
       int height = Integer.valueOf(heights);
           int width = Integer.valueOf(widths);

    (4)

     MediaPlayer myMediaPlayer= MediaPlayer.create(ApplicationLoader.applicationContext, Uri.fromFile(new File(path)));
               myMediaPlayer.setOnVideoSizeChangedListener((mp, width, height) -> {
           int videoWidth = width;
           int videoHeight = height;
       );
               myMediaPlayer.setDataSource(path);
               myMediaPlayer.prepare();

    FFmpegMediaMetadataRetriever, FFmpeg Java, ExoPlayer and some other libraries returns the same result.

  • Libvpx unknown encoder with php exec

    5 juin 2016, par Justin Tullock

    I have centos7 with ffmpeg compiled with libvpx. I can run

    ffmpeg -i gif.gif -c:v libvpx -crf 12 -b:v 500K webm.webm

    which works perfectly but when I try the same command with php exec() it returns this :

    {array(16) { [0]=> string(66) "ffmpeg version 2.6.8 Copyright (c) 2000-2016
    the FFmpeg developers" [1]=> string(55) " built with gcc 4.8.5 (GCC)
    20150623 (Red Hat 4.8.5-4)" [2]=> string(1053) " configuration: --
    refix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --
    incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --
    arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -
    fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-
    switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-
    gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 -
    -enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-nonfree --
    disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame
    --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --
    enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
    --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --
    enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --
    enable-postproc --enable-pthreads --disable-static --enable-shared --enable-
    gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-
    runtime-cpudetect" [3]=> string(40) " libavutil 54. 20.100 / 54. 20.100"
    [4]=> string(40) " libavcodec 56. 26.100 / 56. 26.100" [5]=> string(40) "
    libavformat 56. 25.101 / 56. 25.101" [6]=> string(40) " libavdevice 56.
    4.100 / 56. 4.100" [7]=> string(40) " libavfilter 5. 11.102 / 5. 11.102"
    [8]=> string(40) " libavresample 2. 1. 0 / 2. 1. 0" [9]=> string(40) "
    libswscale 3. 1.101 / 3. 1.101" [10]=> string(40) " libswresample 1. 1.100 /
    1. 1.100" [11]=> string(40) " libpostproc 53. 3.100 / 53. 3.100" [12]=>
    string(30) "Input #0, gif, from 'gif.gif':" [13]=> string(29) " Duration:
    N/A, bitrate: N/A" [14]=> string(76) " Stream #0:0: Video: gif, bgra,
    563x307, 25 fps, 25 tbr, 100 tbn, 100 tbc" [15]=> string(24) "Unknown
    encoder 'libvpx'" } int(1)

    ffmpeg -v returns this

    ffmpeg version N-80161-g7e0623b Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
     configuration: --enable-libvpx
     libavutil      55. 24.100 / 55. 24.100
     libavcodec     57. 44.100 / 57. 44.100
     libavformat    57. 37.101 / 57. 37.101
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 46.100 /  6. 46.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  0.101 /  2.  0.101

    What am I missing ?

  • ffmpeg doesn't recognize after adding to path

    26 janvier 2021, par Gurgen Hovakimyan

    I installed ffmpeg, added it to path and I can find it in command line, but in jupyter notebook when I try to use bcr.bar_chart_race function it returns me this error message
**Exception : You do not have ffmpeg installed on your machine. Download
ffmpeg from here : https://www.ffmpeg.org/download.html.

    


                            Matplotlib's original error message below:
                        Requested MovieWriter (ffmpeg) not available**