Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (76)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (3774)

  • Detect rotation angle and rotate final video using ffmpeg version 2.8

    3 février 2016, par Hemant Kumar

    I used to work on ffmpeg 2.2 until now and was detecting rotation angle of video uploaded from android / iPhone mobiles and rotate the resulting video so that it run perfectly on a correct angle.

    But since I have updated the ffmpeg to version 2.8 I am getting this rotation problem. My queries are not rotating the videos as they were earlier.

    Here’r the commands I was using :

    To check rotation angle :

    ffprobe -of json -show_streams {$input} | grep rotate

    below is my final command to convert a video to mp4

    "ffmpeg -i {$input} -strict -2 -vcodec libx264 -preset slow -vb 500k -maxrate 500k -bufsize 1000k -vf 'scale=-1:480 ".fix_video_orientation($input)."' -threads 0 -ab 64k -s {$resolution}  -movflags faststart -metadata:s:v:0 rotate=0 {$output}";

    "fix_video_orientation" function is given below. It detect the angle of rotation of the initial video and output optimal option for rotating the final video.

    function fix_video_orientation($input){

    $return= ", transpose=1 ";

    $dd= exec("ffprobe -of json -show_streams  {$input}   | grep rotate");

    if(!empty($dd)){

    $dd=explode(":",$dd);
    $rotate=str_replace(",","",str_replace('"',"",$dd[1]));

    if($rotate=="90")return $return;

    else if ($rotate=="180") return ", transpose=2,transpose=2 ";

    else if($rotate == "270") return ", transpose=2 ";
    }

    Currently above script is supporting "flv","avi","mp4","mkv","mpg","wmv","asf","webm","mov","3gp","3gpp" extensions, also the script is supporting the resulting .mp4 file to play on all browsers and devices.

    Now the ffprobe command is not returning rotation angle and so a portrait video if uploaded from iphone is showing as landscape on the website.

    Output console of ffprobe command :

    ffprobe version N-77455-g4707497 Copyright (c) 2007-2015 the FFmpeg developers
    built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
    configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
    libavutil 55. 11.100 / 55. 11.100
    libavcodec 57. 20.100 / 57. 20.100
    libavformat 57. 20.100 / 57. 20.100
    libavdevice 57. 0.100 / 57. 0.100
    libavfilter 6. 21.101 / 6. 21.101
    libavresample 3. 0. 0 / 3. 0. 0
    libswscale 4. 0.100 / 4. 0.100
    libswresample 2. 0.101 / 2. 0.101
    libpostproc 54. 0.100 / 54. 0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/standard/PORTRAIT.m4v':
    Metadata:
    major_brand : qt

    minor_version : 0
    compatible_brands: qt

    creation_time : 2016-02-03 05:25:18
    com.apple.quicktime.make: Apple
    com.apple.quicktime.model: iPhone 4S
    com.apple.quicktime.software: 9.2.1
    com.apple.quicktime.creationdate: 2016-02-03T10:52:11+0530
    Duration: 00:00:03.34, start: 0.000000, bitrate: 7910 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s (default)
    Metadata:
    creation_time : 2016-02-03 05:25:18
    handler_name : Core Media Data Handler
    Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 720x1280 [SAR 1:1 DAR 9:16], 7832 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 50 tbc (default)
    Metadata:
    creation_time : 2016-02-03 05:25:18
    handler_name : Core Media Data Handler
    encoder : H.264
    Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
    Metadata:
    creation_time : 2016-02-03 05:25:18
    handler_name : Core Media Data Handler
    Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
    Metadata:
    creation_time : 2016-02-03 05:25:18
    handler_name : Core Media Data Handler
    Unsupported codec with id 0 for input stream 2
    Unsupported codec with id 0 for input stream 3

    If latest version of ffmpeg (2.8) is used to auto rotate the video, can you please suggest me what option I need to add or remove from my final command.

  • ffmpeg : Invalid argument, [NULL @ 0x22e2240] Unable to find a suitable output format for 'ffmpeg'

    14 février 2016, par user3788285

    I am trying to convert video from images wit the music in background

    command is working fine in the terminal but while using into php it’s giving error :

    this is the command i am trying :

    /usr/local/bin/ffmpeg ffmpeg -framerate 1/5 -i image%01d.png -i song.mp3 -c:v libx264 -c:a aac -strict experimental -b:a 192k  -r 30 -pix_fmt yuv420p -t 10 output.mp4 2>&1

    array(21) {

     [0]=>
     string(83) "ffmpeg version git-2016-02-13-588e2e3 Copyright (c) 2000-2016 the FFmpeg developers"

     [1]=>
     string(56) "  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)"

     [2]=>
     string(369) "  configuration: --enable-shared --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-ffplay --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC"

     [3]=>
     string(40) "  libavutil      55. 17.100 / 55. 17.100"

     [4]=>
     string(40) "  libavcodec     57. 24.102 / 57. 24.102"

     [5]=>
     string(40) "  libavformat    57. 25.100 / 57. 25.100"

     [6]=>
     string(40) "  libavdevice    57.  0.101 / 57.  0.101"

     [7]=>
     string(40) "  libavfilter     6. 31.100 /  6. 31.100"

     [8]=>
     string(40) "  libswscale      4.  0.100 /  4.  0.100"

     [9]=>
     string(40) "  libswresample   2.  0.101 /  2.  0.101"

     [10]=>
     string(40) "  libpostproc    54.  0.100 / 54.  0.100"

     [11]=>
     string(39) "Input #0, image2, from 'image%01d.png':"

     [12]=>
     string(54) "  Duration: 00:00:10.00, start: 0.000000, bitrate: N/A"

     [13]=>
     string(101) "    Stream #0:0: Video: png, gray(pc), 1080x494 [SAR 72:72 DAR 540:247], 0.20 tbr, 0.20 tbn, 0.20 tbc"

     [14]=>
     string(48) "[mp3 @ 0x22dfb00] Skipping 0 bytes of junk at 0."

     [15]=>
     string(74) "[mp3 @ 0x22dfb00] Estimating duration from bitrate, this may be inaccurate"

     [16]=>
     string(31) "Input #1, mp3, from 'song.mp3':"

     [17]=>
     string(59) "  Duration: 00:01:45.80, start: 0.000000, bitrate: 127 kb/s"

     [18]=>
     string(61) "    Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s"

     [19]=>
     string(71) "[NULL @ 0x22e2240] Unable to find a suitable output format for 'ffmpeg'"

     [20]=>
     string(24) "ffmpeg: Invalid argument"

    }
    int(1)
  • Anomalie #3840 : Mots Clés liste des objets liés retourne tous les objets

    18 octobre 2016, par Rainer Müller

    Comme je n’arrive pas à me loguer (inacccesible), je tente la réponse par
    mail. Effectivement ce n’est pas mots qui est en cause. Ça fonctionne
    parfaitement. Apparemment c’est Contacts qui est fautive. Désolé pour le
    bruit

    Le 16 octobre 2016 à 09:17, <> a écrit :

    La demande #3840 a été mise à jour par erational %