Recherche avancée

Médias (91)

Autres articles (76)

  • 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 (7665)

  • How to correctly detect window with xdotool in bash script

    24 mai 2020, par wasd

    I'm trying to record screen and also input from my webcam. To show image from a webcam I use ffplay. However I want it to be placed in a specific location of my screen. To do so I use xdotool and following bash script :

    



     #!/bin/bash                                                                                                                                                                                                                                   
 ffplay -i /dev/video0 &                                                                                                                                                                                       
 res=$!                                                                                                                  
 echo $res                                                                                                               
 window_pid=$(xdotool search --pid $res)                                                                                       
 echo $window_pid
 xdotool windowmove $window_pid 1200 200                                                                                                       
 wait


    



    For some reason I get correct process id res but nothing for the window_pid. If I run similar commands in terminal it works correctly (I run ffplay in one terminal instance and the rest of commands in another). What am I missing here ?

    


  • Bash Script to get info from ffprobe

    14 novembre 2016, par Alan

    I am trying to create a script to process videos, but I was hoping to get bit_rate, width, and height info from the incoming files so I could better tune the output. The script works when I do the files one at a time, but when I put it into a loop all of a sudden I don’t get any info.

    So this works :

    #!/bin/bash
    eval $(ffprobe -v quiet -show_format -of flat=s=_ -show_entries stream=height,width,nb_frames,duration,codec_name input.mp4);
    width=${streams_stream_0_width};
    height=${streams_stream_0_height};
    bitrate=$((${format_bit_rate}/1000));
    echo $width,$height,$bitrate;

    This doesn’t when executed from find ./ -type f -regex ".*\.\(mkv\|mp4\|wmv\|flv\|webm\|mov\|avi\)" -print0 | xargs -0 /root/newbatch.sh

    for i; do
    eval '$(ffprobe -v quiet -show_format -of flat=s=_ -show_entries stream=height,width,nb_frames,duration,codec_name $i)';
    width=${streams_stream_0_width};
    height=${streams_stream_0_height};
    bitrate=${format_bit_rate};
    kbitrate=$((bitrate/1000));
    echo $i,$width,$height,$kbitrate;

    done

    I also get an error with the math of bitrate in the loop, but even when I comment it out I still get no results. Since it works one at a time, I am assuming the problem is a bash scripting and nothing to do with ffmpeg / ffprobe.

    That being said, I can do this :

    echo $i,$width,$height,$bitrate;

    and get back

    ./file1.mkv,,,
    ./file2.mkv,,,
    ./file3.mkv,,,
    ./file4.mkv,,,

    So it does get some info back, but it loses the info from the eval statement.

  • ffmpeg video slideshow script with vertical stack transition ?

    11 mai 2019, par Trần Công Trường

    I have cmd : ffmpeg -y -r 1/5 -i "C :\test\a\%0d.jpg" -r 24 "C :\test\out.mp4"
    I want slideshow script with vertical stack transition. Similar to the video below : https://www.youtube.com/watch?v=3G47V5EDJZw . Thanks