Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (90)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (13717)

  • Anomalie #3332 : Message d’erreur erroné : le nombre d’erreur n’est pas le bon

    21 janvier 2015, par Valéry -
  • develop with ffmpeg link failed [duplicate]

    13 mai 2021, par Turing Zhu

    I write to test ffmpeg and call ffmpeg function, but it alwasy tell me link err : can not found ffmpeg function :
this is my code :

    


    #ifdef __STDC_CONSTANT_MACROS&#xA;#define __STDC_CONSTANT_MACROS&#xA;#endif&#xA;#ifndef INT64_C&#xA;#define INT64_C(c) (c ## LL)&#xA;#define UINT64_C(c) (c ## ULL)&#xA;#endif&#xA;#include <libavutil></libavutil>imgutils.h>&#xA;#include <libavutil></libavutil>samplefmt.h>&#xA;#include <libavutil></libavutil>timestamp.h>&#xA;#include <libavformat></libavformat>avformat.h>&#xA;static const char *src_filename = NULL;&#xA;static const char *video_dst_filename = NULL;&#xA;static const char *audio_dst_filename = NULL;&#xA;static AVFormatContext *fmt_ctx = NULL;&#xA;int main(int argc, char **argv) {&#xA;    int ret = 0;&#xA;    if (argc != 4) {&#xA;        fprintf(stderr, "usage: %s  input_file video_output_file audio_output_file\n"&#xA;                    "API example program to show how to read frames from an input file.\n"&#xA;                    "This program reads frames from a file, decodes them, and writes decoded\n"&#xA;                    "video frames to a rawvideo file named video_output_file, and decoded\n"&#xA;                    "audio frames to a rawaudio file named audio_output_file.\n",&#xA;            argv[0]);&#xA;        exit(1);&#xA;    }&#xA;    // src_filename = argv[1];&#xA;    src_filename = "/tmp/a.mp4";&#xA;    video_dst_filename = argv[2];&#xA;    audio_dst_filename = argv[3];&#xA;&#xA;    /* open input file, and allocate format context */&#xA;    if (avformat_open_input(&amp;fmt_ctx, src_filename, NULL, NULL) &lt; 0) {&#xA;        fprintf(stderr, "Could not open source file %s\n", src_filename);&#xA;        exit(1);&#xA;    }&#xA;    avformat_close_input(&amp;fmt_ctx);&#xA;}&#xA;

    &#xA;

    the follow is build command :

    &#xA;

    clang&#x2B;&#x2B; -I /usr/local/apps/homebrew/Cellar/ffmpeg/4.4_1/include/ -L/usr/local/apps/homebrew/Cellar/ffmpeg/4.4_1/lib -lavformat main.cpp&#xA;

    &#xA;

    and the terminal output :

    &#xA;

    Undefined symbols for architecture x86_64:&#xA;  "avformat_open_input(AVFormatContext**, char const*, AVInputFormat*, AVDictionary**)", referenced from:&#xA;      _main in main-f2a6f0.o&#xA;  "avformat_close_input(AVFormatContext**)", referenced from:&#xA;      _main in main-f2a6f0.o&#xA;ld: symbol(s) not found for architecture x86_64&#xA;clang: error: linker command failed with exit code 1 (use -v to see invocation)&#xA;&#xA;

    &#xA;

    then Who can tell me why.

    &#xA;

  • How can I develop Image recognition program

    18 juillet 2017, par SeongHyun Lee

    My program will recognize the advertisement between each TV Programs.
    But I don’t know how to recognize the ads.
    I had Sound Recognition in mind but It’s so difficult.
    I’m using FFmpeg Library.
    There is VideoState struct Reference.

    typedef struct VideoState {
    SDL_Thread *read_tid;
    SDL_Thread *video_tid;
    SDL_Thread *refresh_tid;
    AVInputFormat *iformat;
    int no_background;
    int abort_request;
    int force_refresh;
    int paused;
    int last_paused;
    int que_attachments_req;
    int seek_req;
    int seek_flags;
    int64_t seek_pos;
    int64_t seek_rel;
    int read_pause_return;
    AVFormatContext *ic;

    int audio_stream;

    int av_sync_type;
    double external_clock; /* external clock base */
    int64_t external_clock_time;

    double audio_clock;
    double audio_diff_cum; /* used for AV difference average computation */
    double audio_diff_avg_coef;
    double audio_diff_threshold;
    int audio_diff_avg_count;
    AVStream *audio_st;
    PacketQueue audioq;
    int audio_hw_buf_size;
    DECLARE_ALIGNED(16,uint8_t,audio_buf2)[AVCODEC_MAX_AUDIO_FRAME_SIZE * 4];
    uint8_t silence_buf[SDL_AUDIO_BUFFER_SIZE];
    uint8_t *audio_buf;
    uint8_t *audio_buf1;
    unsigned int audio_buf_size; /* in bytes */
    int audio_buf_index; /* in bytes */
    int audio_write_buf_size;
    AVPacket audio_pkt_temp;
    AVPacket audio_pkt;
    struct AudioParams audio_src;
    struct AudioParams audio_tgt;
    struct SwrContext *swr_ctx;
    double audio_current_pts;
    double audio_current_pts_drift;
    int frame_drops_early;
    int frame_drops_late;
    AVFrame *frame;

    enum ShowMode {
       SHOW_MODE_NONE = -1, SHOW_MODE_VIDEO = 0, SHOW_MODE_WAVES,
    SHOW_MODE_RDFT, SHOW_MODE_NB
    } show_mode;
    int16_t sample_array[SAMPLE_ARRAY_SIZE];
    int sample_array_index;
    int last_i_start;
    RDFTContext *rdft;
    int rdft_bits;
    FFTSample *rdft_data;
    int xpos;

    SDL_Thread *subtitle_tid;
    int subtitle_stream;
    int subtitle_stream_changed;
    AVStream *subtitle_st;
    PacketQueue subtitleq;
    SubPicture subpq[SUBPICTURE_QUEUE_SIZE];
    int subpq_size, subpq_rindex, subpq_windex;
    SDL_mutex *subpq_mutex;
    SDL_cond *subpq_cond;

    double frame_timer;
    double frame_last_pts;
    double frame_last_duration;
    double frame_last_dropped_pts;
    double frame_last_returned_time;
    double frame_last_filter_delay;
    int64_t frame_last_dropped_pos;
    double video_clock;                          ///&lt; pts of last decoded frame
    / predicted pts of next decoded frame
    int video_stream;
    AVStream *video_st;
    PacketQueue videoq;
    double video_current_pts;                    ///&lt; current displayed pts
    (different from video_clock if frame fifos are used)
    double video_current_pts_drift;              ///&lt; video_current_pts - time
    (av_gettime) at which we updated video_current_pts - used to have running
    video pts
    int64_t video_current_pos;                   ///&lt; current displayed file pos
    VideoPicture pictq[VIDEO_PICTURE_QUEUE_SIZE];
    int pictq_size, pictq_rindex, pictq_windex;
    SDL_mutex *pictq_mutex;
    SDL_cond *pictq_cond;
    #if !CONFIG_AVFILTER
    struct SwsContext *img_convert_ctx;
    #endif

    char filename[1024];
    int width, height, xleft, ytop;
    int step;

    #if CONFIG_AVFILTER
    AVFilterContext *in_video_filter;           ///&lt; the first filter in the
    video chain
    AVFilterContext *out_video_filter;          ///&lt; the last filter in the
    video chain
    int use_dr1;
    FrameBuffer *buffer_pool;
    #endif

    int refresh;
    int last_video_stream, last_audio_stream, last_subtitle_stream;

    SDL_cond *continue_read_thread;

    enum V_Show_Mode v_show_mode;
    } VideoState;

    What can I use for My Program.... I really need your help.. Thank you !!!