Recherche avancée

Médias (91)

Autres articles (70)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7158)

  • How can I determine video rotation/orientation in PHP/FFMPEG/PhoneGap ?

    14 juin 2014, par SomethingOn

    Once I upload videos to my server I’m creating a screencap using FFMPEG. Problem is, if the user takes a video in portrait mode the screencap is rotated 90º. The ridiculous things is that PhoneGap and FFMEG-php and FFMPEG don’t seem to offer a mechanism for reading the video rotation/orientation value.

    I found another library called mediainfo that will provide the info, but not in an easy to read/digest manner and I’m trying to avoid having to use another library.

    Am I wrong about PhoneGap/FFMPEG ? Is there a direct way to determine video orienation ?


    Here’s my solution as a PHP function :

    function get_video_orientation($video_path) {
       $cmd = FFMPEG_PATH . "ffprobe " . $video_path . " -show_streams 2>/dev/null";
       $result = shell_exec($cmd);

       $orientation = 0;
       if(strpos($result, 'TAG:rotate') !== FALSE) {
           $result = explode("\n", $result);
           foreach($result as $line) {
               if(strpos($line, 'TAG:rotate') !== FALSE) {
                   $stream_info = explode("=", $line);
                   $orientation = $stream_info[1];
               }
           }
       }

       return $orientation;
    }
  • How to merge audio and images with ffmpeg ? [closed]

    25 octobre 2012, par Ello

    I'm trying to merge an audio file and some images file to video with ffmpeg.

    If the audio's time is shorter than the video(which is merged by images),i want to loop the audio to fit the video.but how should i do ,i'm trying many times,but fail.

    Any pointer for the solution ?

    If the video's time is shorter than the audio,i want to cut the audio to fit the video.

    First i get the video's time,(e.g., 10 seconds).

    Then i use ffmpeg -i input.mp3 -t 10 output.mp3 to make a shorter audio.

    At last i use ffmpeg -i %d.jpg -i a2.mp3 -strict -2 test.mp4 to merge the audio and images.

    The second question is that is there any beter way to do this ?

  • Playing and recording a live stream from another computer webcam using VLC/FFmpeg [closed]

    22 octobre 2012, par user573014

    I was trying lately to set a video server on one machine and play it in a differen machine, it works with me.. but the problem is that it always stuck and become jammed in the middle .. and it is very slow comparing to the original stream.. something like 5 seconds delay which is not acceptable at all !
    The warning messages I get usually includes something like that :
    in the client side, which is the one which is jammed

    [0x24d1ab0] ts demux warning: discontinuity received 0x5 instead of 0xe (pid=68)
    [0x7f4340015e50] rtp demux warning: 2 packet(s) lost
    reference picture missing during reorder
    Missing reference picture
    mmco: unref short failure
    Reference 4 >= 4 (H264 - MPEG-4 AVC (part 10)) stopped
    error while decoding MB 34 14, bytestream (575)

    and that is the picture of the streaming when it is jammed

    jammed stream

    and that is what it looks like when it is running smoothly

    smooth stream

    This is the error message I got on the server

    [0x2513820] main generic debug: auto hidding mouse
    [0x2296230] main mux warning: late buffer for mux input (1840085)

    and Finally here is my command line that I am using >
    on the server :

    vlc -vvv v4l2:///dev/video1:v4l2-width=640:v4l2-height=480 --sout
    '#duplicate{dst=display,dst="transcode{vcodec=h264,vb=800,ab=128}
    :duplicate{dst=rtp{mux=ts,dst=172.22.2.87,port=50004}'

    on the client :

    vlc -vvv rtp://@:50004

    I thought that it might be from VLC or from my command .. I tried different protocol for transmission, with no luck I also tried FFmpeg and I got similar results + warning messages .. I thought then that both of them are using the same libraries in Linux

    here is the command using FFMpeg :

    ffmpeg -f video4linux2 -i /dev/video1 -vcodec libx264 -s 320x240 -pix_fmt
    yuv420p -vb 200000 -minrate 200000 -maxrate 200000 -bufsize 2000000 -acodec
    libmp3lame -ab 128k -ar 44100 -ac 2 -f mpegts udp://172.22.2.87:5544

    In conclusion, I would like to find a solution for the latency of the streaming (which is very high) and the jamming problem
    I appreciate anyone's input, thank you