Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (36)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (4696)

  • Ubuntu - Compile only ffmpeg.c from ffmpeg source

    29 août 2016, par Arlind

    I’m experimenting with the ffmpeg.c file from the ffmpeg source code but every time I want to test what I’ve changed it takes about 15-20 mins to compile the whole thing. Is there a way to compile only the ffmpeg.c file (which is the only file I’m making changes) ?

  • Start service with start-stop-daemon on Ubuntu 16.04 with timeout

    26 février 2018, par Topper

    I have /etc/init.d/stream proces with start/stop/restart options.
    It’s run ffmpeg with daemon options taken from /etc/default/stream DAEMON_OPTIONS.
    Start at background (-b) crate pid (/var/run/stream/stream.pid) etc.

    How could I add timeout 60 seconds to be sure that stream will be forcebly stopped if exceed 60 sek. timeout ?

    Can’t run "—exec timeout 60 ffmpeg" because service runs only timeout command.

    I’m I missing something or try to use wrong command ?

  • Ffmpeg library compilation .(without pkg-config) in linux ubuntu

    2 novembre 2023, par Mohideen Irfan

    I have been trying to use ffmpeg libraries in my C code. But when i compile those libraries using pkg-config tool in linux terminal it works. But when i directly linked all the necessary libraries , it won't work. I even specified the library path in -L flag and LD_LIBRARY_PATH. even included the -I flag correctly. But when i use pkg-config it works, if i use directly it wont work. I also export LD_LIBRARY_PATH.

    


    here is my C program Sample.c :

    


    #include &#xA;#include <libavformat></libavformat>avformat.h>&#xA;&#xA;&#xA;int main(int argc, char *argv[]) {&#xA;    if (argc &lt; 2) {&#xA;        printf("Please provide a video file as an argument.\n");&#xA;        return -1;&#xA;    }&#xA;&#xA;//    av_register_all();&#xA;&#xA;    AVFormatContext *pFormatCtx = NULL;&#xA;    if (avformat_open_input(&amp;pFormatCtx, argv[1], NULL, NULL) != 0) {&#xA;        printf("Could not open the file.\n");&#xA;        return -1;&#xA;    }&#xA;&#xA;    if (avformat_find_stream_info(pFormatCtx, NULL) &lt; 0) {&#xA;        printf("Could not find stream information.\n");&#xA;        return -1;&#xA;    }&#xA;&#xA;    av_dump_format(pFormatCtx, 0, argv[1], 0);&#xA;&#xA;    avformat_close_input(&amp;pFormatCtx);&#xA;&#xA;    return 0;&#xA;}&#xA;

    &#xA;

    here is the package file of libavformat.pc :

    &#xA;

    prefix=/home/mohideen-ts205/ffmpeg_build&#xA;exec_prefix=${prefix}&#xA;libdir=/home/mohideen-ts205/ffmpeg_build/lib&#xA;includedir=/home/mohideen-ts205/ffmpeg_build/include&#xA;&#xA;Name: libavformat&#xA;Description: FFmpeg container format library&#xA;Version: 60.17.100&#xA;Requires: libavcodec >= 60.32.102, libswresample >= 4.13.100, libavutil >= 58.30.100&#xA;Requires.private: &#xA;Conflicts:&#xA;Libs: -L${libdir}  -lavformat -lm -latomic -lz -lgnutls -pthread -lgmp -lunistring -lidn2     -latomic -lhogweed -lgmp -lnettle -ltasn1 -lp11-kit&#xA;Libs.private: &#xA;Cflags: -I${includedir}&#xA;

    &#xA;

    libavutil.pc :

    &#xA;

    prefix=/home/mohideen-ts205/ffmpeg_build&#xA;exec_prefix=${prefix}&#xA;libdir=/home/mohideen-ts205/ffmpeg_build/lib&#xA;includedir=/home/mohideen-ts205/ffmpeg_build/include&#xA;&#xA;Name: libavutil&#xA;Description: FFmpeg utility library&#xA;Version: 58.30.100&#xA;Requires: &#xA;Requires.private: &#xA;Conflicts:&#xA;Libs: -L${libdir}  -lavutil -pthread -lva-drm -lva -lva-x11 -lva -lvdpau -lX11 -lm -lva -latomic -lX11 -lpthread -lxcb -lXau -lXdmcp&#xA;Libs.private: &#xA;Cflags: -I${includedir}&#xA;

    &#xA;

    And here the command :&#xA;with pkg config- working one :

    &#xA;

    gcc -o sample sample.c $(pkg-config --libs libavutil libavformat libavcodec)&#xA;

    &#xA;

    without it directly linking :

    &#xA;

    gcc -o my_program -I/home/mohideen-ts205/ffmpeg_build/include -L/home/mohideen-ts205/ffmpeg_build/lib -lavformat&#xA;

    &#xA;

    NOTE : I even tried to copy all the library files mentioned in libavutil.pc and libavformat.pc, but still i am getting this undefined reference error. what kind of problem it is.

    &#xA;

    /usr/bin/ld: /tmp/ccoCfZjA.o: in function `main&#x27;:&#xA;sample.c:(.text&#x2B;0x63): undefined reference to `avformat_open_input&#x27;&#xA;/usr/bin/ld: sample.c:(.text&#x2B;0x8b): undefined reference to `avformat_find_stream_info&#x27;&#xA;/usr/bin/ld: sample.c:(.text&#x2B;0xc3): undefined reference to `av_dump_format&#x27;&#xA;/usr/bin/ld: sample.c:(.text&#x2B;0xcf): undefined reference to `avformat_close_input&#x27;&#xA;collect2: error: ld returned 1 exit status&#xA;

    &#xA;