Recherche avancée

Médias (0)

Mot : - Tags -/tags

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (10366)

  • How give information about file with binary path /usr/bin/ffmpeg ? [closed]

    19 septembre 2012, par John Smith

    How give information about file with binary path /usr/bin/ffmpeg ?

    Peoples its not answer - its code for help all peoples-)

    Long time i search the correct code, now i write here. Washes it be useful to someone.

    1) get duration file

    ob_start();
    passthru("ffmpeg-9260.exe -i \"". $videofile . "\" 2>&1");
    $duration = ob_get_contents();
    ob_end_clean();


    preg_match('/Duration: (.*?),/', $duration, $matches);
    $duration = $matches[1];
    $duration_array = split(':', $duration);
    $duration = $duration_array[0] * 3600 + $duration_array[1] * 60 + $duration_array[2];
    $time = $duration * $percent / 100;
    $time = intval($time/3600) . ":" . intval(($time-(intval($time/3600)*3600))/60) . ":" . sprintf("%01.3f", ($time-(intval($time/60)*60)));

    2) get a picture of a particular frame of the video (flv or avi or another)

    ffmpeg -i video.avi -an -ss 00:01:30 -r 1 -vframes 1 -s 320×240 -y -f mjpeg screenshot.jpg

    3) how to convert video file to format .ogg

    a) ffmpeg -an -deinterlace -s 400×300 -r 20.00 -i CapeCodMarsh.avi -vcodec rawvideo -pix_fmt yuv420p -f rawvideo – |  ffmpeg -an -f rawvideo -s 400×300 -r 20.00 -i – -f yuv4mpegpipe – |  libtheora-1.0/lt-encoder_example –video-rate-target 512k – -o tmp.ogv

    b)ffmpeg -y -i CapeCodMarsh.avi -vn -acodec libvorbis -ac 2 -ab 128k -ar 44100 audio.ogg

    4) How I can get this value for the buffer ?

    var v = document.getElementById('file_id');
    var r = v.buffered.end(0);

    Enjoy=)

  • avformat/img2dec : add option to provide metadata fields related to input path

    1er janvier 2020, par Alexandre Heitor Schmidt
    avformat/img2dec : add option to provide metadata fields related to input path
    

    libavformat/img2.h : New field export_path_metadata to
    VideoDemuxData to only allow the use of the extra metadata
    upon explicit user request, for security reasons.

    libavformat/img2dec.c : Modify image2 demuxer to make available
    two special metadata entries called lavf.image2dec.source_path
    and lavf.image2dec.source_basename, which represents, respectively,
    the complete path to the source image for the current frame and
    the basename i.e. the file name related to the current frame.
    These can then be used by filters like drawtext and others. The
    metadata fields will only be available when explicitly enabled
    with image2 option -export_path_metadata 1.

    doc/demuxers.texi : Documented the new metadata fields available
    for image2 and how to use them.

    doc/filters.texi : Added an example on how to use the new metadata
    fields with drawtext filter, in order to plot the input file path
    to each output frame.

    Usage example :

    ffmpeg -f image2 -export_path_metadata 1 -pattern_type glob
    -framerate 18 -i '/path/to/input/files/*.jpg'
    -filter_complex drawtext="fontsize=40:fontcolor=white :
    fontfile=FreeSans.ttf:borderw=2:bordercolor=black :
    text='%metadata\:lavf.image2dec.source_basename\:NA':x=5:y=50"
    output.avi

    Fixes #2874.

    Signed-off-by : Alexandre Heitor Schmidt <alexandre.schmidt@gmail.com>
    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] doc/demuxers.texi
    • [DH] doc/filters.texi
    • [DH] libavformat/img2.h
    • [DH] libavformat/img2dec.c
    • [DH] libavformat/version.h
  • PHP ffmpeg how give information about video file if binary path /usr/bin/ffmpeg ? [closed]

    19 septembre 2012, par John Smith

    Tell me please how give information about video file if binary path /usr/bin/ffmpeg ? me need code on php. Found not give results for this question...