Recherche avancée

Médias (91)

Autres articles (38)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (3748)

  • 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