Recherche avancée

Médias (91)

Autres articles (53)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

Sur d’autres sites (7257)

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


    


  • unable ti decode video using h264_cuvid

    1er novembre 2017, par aymen

    I am using nvidia GTX 1080Ti, Driver Version : 387.12 .

    I am using the below command :

    ffmpeg -c:v h264_cuvid -i http://stream:port/channel output.mkv

    And getting the following output :

    ffmpeg version 3.3.4 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-cflags=-I/usr/local/cuda-8.0/include --extra-ldflags=-L/usr/local/cuda-8.0/lib64 --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-cuda --enable-cuvid --enable-nvenc --enable-libnpp
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    [h264 @ 0x24d2f60] non-existing PPS 2 referenced
    [h264 @ 0x24d2f60] non-existing PPS 1 referenced
    [h264 @ 0x24d2f60] Invalid NAL unit 0, skipping.
       Last message repeated 2 times
    [h264 @ 0x24d2f60] slice type 12 too large at 1
    [h264 @ 0x24d2f60] decode_slice_header error
    [h264 @ 0x24d2f60] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
    [h264 @ 0x24d2f60] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
    [h264 @ 0x24d2f60] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
    [h264 @ 0x24d2f60] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
    [h264 @ 0x24d2f60] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
    [h264 @ 0x24d2f60] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
    [h264 @ 0x24d2f60] no frame!
    [h264 @ 0x24d2f60] non-existing PPS 1 referenced
    [h264 @ 0x24d2f60] decode_slice_header error
    [h264 @ 0x24d2f60] no frame!
    [h264 @ 0x24d2f60] SEI type 66 size 1104 truncated at 400
    [h264 @ 0x24d2f60] sps_id 1 out of range
    [h264 @ 0x24d2f60] non-existing PPS 3 referenced
    [h264 @ 0x24d2f60] non-existing PPS 2 referenced
    [h264 @ 0x24d2f60] non-existing PPS 1 referenced
    [h264 @ 0x24d2f60] SEI type 87 size 1264 truncated at 1224
    [h264 @ 0x24d2f60] sps_id 1 out of range
    [h264 @ 0x24d2f60] non-existing PPS 3 referenced
    [h264 @ 0x24d2f60] Invalid NAL unit 0, skipping.
    ........

    [h264 @ 0x24d2f60] non-existing PPS 0 referenced
    [h264 @ 0x24d2f60] decode_slice_header error
    [h264 @ 0x24d2f60] no frame!
    [mpegts @ 0x24c4640] decoding for stream 0 failed
    Input #0, mpegts, from 'http://stream:port/channel':
     Duration: N/A, start: 27359.989822, bitrate: N/A
     Program 1108
       Stream #0:0[0x3f2]: Video: h264 ([2][0][0][0] / 0x0002), yuv420p(bottom first), 46x24, 0.69 fps, 25 tbr, 90k tbn, 1.38 tbc
       Stream #0:1[0x3f3](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
    File 'output.mkv' already exists. Overwrite ? [y/N]

    Do you have any idea about this problem ?