Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (69)

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

  • a command in a script doesn't work when the script is launched by cron

    5 mai 2023, par a k

    When I launch the script manually both as a not-root user (with sudo) and as the root, everything work correctly.
When Cron (Cron of the root) launches it, ffmpeg doesn't work (but the others lines of the script work correctly).

    


    #!/bin/bash
log=/var/log/log2/log2.txt

echo ______________ $(date) >> "$log"
echo -n whoami '         ' >> "$log" ; whoami >> "$log"
echo -n pwd '            ' >> "$log" ; pwd >> "$log"
echo "$""USER" = '        ' "$USER" >> "$log"
echo PATH '          ' $PATH >> "$log"
echo -n which ffmpeg '   ' >> "$log" ; which ffmpeg >> "$log"
echo -n whereis ffmpeg ' ' >> "$log" ; whereis ffmpeg >> "$log"

echo "" >> "$log"
echo ls -l "/bin/* | grep ffmpeg" '        ' >> "$log"
ls -l /bin/* | grep ffmpeg >> "$log"

echo "" >> "$log"
echo ls -l "/usr/bin/* | grep ffmpeg" ' '>> "$log"
ls -l /usr/bin/* | grep ffmpeg >> "$log"

echo "" >> "$log"
echo ls -l "/var/log | grep log2" ' '>> "$log"
ls -l /var/log | grep log2 >> "$log"

echo "" >> "$log"
echo ls -l "/var | grep log" ' '>> "$log"
ls -l /var | grep log >> "$log"

ffmpeg -y -f x11grab -s 1366x768 -i :0.0 /var/log/log2/test.mp4 2>/dev/null &
echo "$!"
sleep 5
kill "$!"
exit


    


    The script puts in the file /var/log/log2/log2.txt :

    


    whoami          root
pwd             /root
$USER =          
PATH            /usr/bin:/bin
which ffmpeg    /usr/bin/ffmpeg
whereis ffmpeg  ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz

ls -l /bin/* | grep ffmpeg         
-rwxr-xr-x 1 root   root      284976 mai   18  2022 /bin/ffmpeg

ls -l /usr/bin/* | grep ffmpeg  
-rwxr-xr-x 1 root   root      284976 mai   18  2022 /usr/bin/ffmpeg

ls -l /var/log | grep log2  
drwxrwxrwx  2 root              root               4096 mai    5 03:22 log2

ls -l /var | grep log  
drwxrwxr-x 16 root syslog   36864 mai    5 00:00 log


    


    I have tried to verify :

    


      

    • the permissions of the file ffmpeg
    • 


    • the permissions of the folder where ffmpeg writes to
    • 


    • the $PATH
    • 


    • the path of ffmpeg
    • 


    • the path of the file where ffmpeg should write to
    • 


    


  • Linux C Makefile (FFmpeg) undefined reference to `curl_easy_init'

    23 juillet 2015, par hoschi111

    I did some changes to /libavformat/concat.c in the FFmpeg source.
    There I included libcurl.

    Internet says I have to add the following code to ’Makefile’.

    INCLUDE = -I/usr/local/include
    LDFLAGS = -L/usr/local/lib
    LDLIBS = -lcurl

    That did not work.
    I use this to build FFmpeg :

    make clean && ./configure --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libx264 && make -j 4

    Error :

    /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib/libavformat.a(concat.o): In function `concat_read':
    /root/ffmpeg_sources/ffmpeg/libavformat/concat.c:151: undefined reference to `curl_easy_init'
    /root/ffmpeg_sources/ffmpeg/libavformat/concat.c:155: undefined reference to `curl_easy_setopt'
    /root/ffmpeg_sources/ffmpeg/libavformat/concat.c:156: undefined reference to `curl_easy_perform'
    /root/ffmpeg_sources/ffmpeg/libavformat/concat.c:158: undefined reference to `curl_easy_getinfo'

    original Makefile :
    https://github.com/FFmpeg/FFmpeg/blob/master/Makefile

    Can you help me ?

  • FFMPEG Converting a bunch of PNG images to a video

    7 février 2017, par user2419553

    I have a folder full of 600 .png’s that I’d like to convert to a video using FFMPEG. The .png filenames are as follows :

    f_001.png

    f_002.png

    f_003.png

    ...

    f_600.png

    I’ve been trying to use the following command to try to convert them :

    ffmpeg -r 10 -i root/Record/frames/f_%03d.png -vcodec libx264 -crf 0 /root/Record/"$(date +"%Y_%m_%d %I.%M %p")".mkv

    But I keep getting the error :

    Could find no file with path 'root/Record/frames/f_%03d.png' and index in the range 0-4
    root/Record/frames/f_%03d.png: No such file or directory