Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (77)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9015)

  • 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
  • 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 ?

  • 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
    •