Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (48)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6529)

  • 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 ?

  • OpenShift — installing ffmpeg

    2 juillet 2016, par aweeeezy

    I’m new to deploying web apps — I just started looking into hosting plans yesterday morning when I settled on OpenShift. I have my app running, but it depends on node-youtube-dl which returns this error when trying to download a video from a link :

    Error: Command failed: WARNING: m_djk1RQ2Ew: writing DASH m4a. Only some players support this container. Install ffmpeg or avconv to fix this automatically.
    ERROR: ffprobe or avprobe not found. Please install one.

    So I searched around for awhile and kept returning to the same list instructions for how to install ffmpeg on OpenShift :

    cd $OPENSHIFT_DATA_DIR
    mkdir bin
    wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
    wget http://ffmpeg.org/releases/ffmpeg-2.0.1.tar.gz

    tar -xvf yasm-1.2.0.tar.gz
    cd yasm-1.2.0
    ./configure --prefix=$OPENSHIFT_DATA_DIR/bin --bindir=$OPENSHIFT_DATA_DIR/bin
    make
    make install
    export PATH=$OPENSHIFT_DATA_DIR/bin:$PATH

    cd $OPENSHIFT_DATA_DIR
    tar -xvf ffmpeg-2.0.1.tar.gz
    cd ffmpeg-2.0.1
    ./configure --prefix=$OPENSHIFT_DATA_DIR/bin --bindir=$OPENSHIFT_DATA_DIR/bin
    make
    make install

    Now my ~/app-root/data has ffprobe in it as well as some other codec related things, but node-youtube-dl still returns the same error saying I don’t have the necessary codecs installed. Here’s a listing of the contents of my data directory on OpenShift :

    -rwxr-xr-x.  1  11024048 Jul  2 01:51 ffmpeg
    -rwxr-xr-x.  1  10967408 Jul  2 01:51 ffprobe
    -rwxr-xr-x.  1  10611184 Jul  2 01:51 ffserver
    drwx------. 10      4096 Jul  2 01:51 include
    drwx------.  3      4096 Jul  2 01:51 lib
    drwx------.  4        29 Jul  2 01:51 share
    -rwxr-xr-x.  1   2116650 Jul  2 01:15 vsyasm
    -rwxr-xr-x.  1   2115479 Jul  2 01:15 yasm
    -rwxr-xr-x.  1   2102821 Jul  2 01:15 ytasm

    I really want OpenShift to work because it’s the last step to finishing off this one app before I move onto new projects — I don’t want to switch to paid hosting that will allow me to install stuff because I won’t be ready to determine an appropriate plan until a few months from now. That leaves me with trying to get ffmpeg to compile properly on OpenShift...so either a) I’m ignorant and it has long since been determined to be impossible by the OpenShift community or b) I’m ignorant and there’s a simple thing I’m doing wrong when building my codec libraries.

    Anybody out there know what’s wrong or had success installing these codecs before ? I’d greatly appreciate some guidance !