Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (39)

  • 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

  • Prérequis à l’installation

    31 janvier 2010, par

    Préambule
    Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
    Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
    Il (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (7979)

  • dnn_backend_native_layer_mathunary : add atanh support

    29 juin 2020, par Ting Fu
    dnn_backend_native_layer_mathunary : add atanh support
    

    It can be tested with the model generated with below python script :

    import tensorflow as tf
    import numpy as np
    import imageio

    in_img = imageio.imread('input.jpeg')
    in_img = in_img.astype(np.float32)/255.0
    in_data = in_img[np.newaxis, :]

    x = tf.placeholder(tf.float32, shape=[1, None, None, 3], name='dnn_in')

    please uncomment the part you want to test

    x_sinh_1 = tf.sinh(x)
    x_out = tf.divide(x_sinh_1, 1.176) # sinh(1.0)

    x_cosh_1 = tf.cosh(x)
    x_out = tf.divide(x_cosh_1, 1.55) # cosh(1.0)

    x_tanh_1 = tf.tanh(x)
    x__out = tf.divide(x_tanh_1, 0.77) # tanh(1.0)

    x_asinh_1 = tf.asinh(x)
    x_out = tf.divide(x_asinh_1, 0.89) # asinh(1.0/1.1)

    x_acosh_1 = tf.add(x, 1.1)
    x_acosh_2 = tf.acosh(x_acosh_1) # accept (1, inf)
    x_out = tf.divide(x_acosh_2, 1.4) # acosh(2.1)

    x_atanh_1 = tf.divide(x, 1.1)
    x_atanh_2 = tf.atanh(x_atanh_1) # accept (-1, 1)
    x_out = tf.divide(x_atanh_2, 1.55) # atanhh(1.0/1.1)

    y = tf.identity(x_out, name='dnn_out') #please only preserve the x_out you want to test

    sess=tf.Session()
    sess.run(tf.global_variables_initializer())

    graph_def = tf.graph_util.convert_variables_to_constants(sess, sess.graph_def, ['dnn_out'])
    tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)

    print("image_process.pb generated, please use \
    path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")

    output = sess.run(y, feed_dict=x : in_data)
    imageio.imsave("out.jpg", np.squeeze(output))

    Signed-off-by : Ting Fu <ting.fu@intel.com>

    • [DH] libavfilter/dnn/dnn_backend_native_layer_mathunary.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_mathunary.h
    • [DH] tools/python/convert_from_tensorflow.py
    • [DH] tools/python/convert_header.py
  • download video by ffmpeg access denied [closed]

    14 septembre 2021, par Vĩnh Hội
  • gcc : Undefined Reference Error

    26 octobre 2024, par jamie_y

    I would like to use a function 'ff_load_image' defined in ffmpeg/libavfilter/lavfutils.h.

    &#xA;&#xA;

    program.c

    &#xA;&#xA;

    #include "../ffmpeg/libavfilter/lavfutils.h"&#xA;&#xA;int main ()&#xA;{&#xA;  uint8_t* data;&#xA;&#xA;  int linesize, width, height, log_ctx;&#xA;&#xA;  int i = ff_load_image(&amp;data, &amp;linesize, &amp;width, &amp;height, AV_PIX_FMT_RGB24, "blue.jpg", &amp;log_ctx);&#xA;}&#xA;

    &#xA;&#xA;

    Running

    &#xA;&#xA;

    gcc -I$HOME/ffmpeg/include program.c -L$HOME/ffmpeg/lib -lavfilter -lavcodec -lavutil&#xA;

    &#xA;&#xA;

    gives undefined reference errors.

    &#xA;&#xA;

    program.c: In function \u2018main\u2019:&#xA;program.c:9: warning: passing argument 1 of \u2018ff_load_image\u2019 from incompatible pointer type&#xA;../ffmpeg/libavfilter/lavfutils.h:39: note: expected \u2018uint8_t **\u2019 but argument is of type \u2018uint8_t *\u2019&#xA;program.c:9: warning: passing argument 2 of \u2018ff_load_image\u2019 makes pointer from integer without a cast&#xA;../ffmpeg/libavfilter/lavfutils.h:39: note: expected \u2018int *\u2019 but argument is of type \u2018int\u2019&#xA;program.c:9: warning: passing argument 3 of \u2018ff_load_image\u2019 makes pointer from integer without a cast&#xA;../ffmpeg/libavfilter/lavfutils.h:39: note: expected \u2018int *\u2019 but argument is of type \u2018int\u2019&#xA;program.c:9: warning: passing argument 4 of \u2018ff_load_image\u2019 makes pointer from integer without a cast&#xA;../ffmpeg/libavfilter/lavfutils.h:39: note: expected \u2018int *\u2019 but argument is of type \u2018int\u2019&#xA;program.c:9: warning: passing argument 5 of \u2018ff_load_image\u2019 makes pointer from integer without a cast&#xA;../ffmpeg/libavfilter/lavfutils.h:39: note: expected \u2018enum AVPixelFormat *\u2019 but argument is of type \u2018int\u2019&#xA;program.c:9: warning: passing argument 7 of \u2018ff_load_image\u2019 makes pointer from integer without a cast&#xA;../ffmpeg/libavfilter/lavfutils.h:39: note: expected \u2018void *\u2019 but argument is of type \u2018int\u2019&#xA;/home/jamiey/ffmpeg/lib/libavfilter.a(lavfutils.o): In function `ff_load_image&#x27;:&#xA;/home/jamiey/ffmpeg/libavfilter/lavfutils.c:38: undefined reference to `av_register_all&#x27;&#xA;/home/jamiey/ffmpeg/libavfilter/lavfutils.c:40: undefined reference to `av_find_input_format&#x27;&#xA;/home/jamiey/ffmpeg/libavfilter/lavfutils.c:41: undefined reference to `avformat_open_input&#x27;&#xA;/home/jamiey/ffmpeg/libavfilter/lavfutils.c:66: undefined reference to `av_read_frame&#x27;&#xA;/home/jamiey/ffmpeg/libavfilter/lavfutils.c:92: undefined reference to `avformat_close_input&#x27;&#xA;/home/jamiey/ffmpeg/libavfilter/lavfutils.c:92: undefined reference to `avformat_close_input&#x27;&#xA;/home/jamiey/ffmpeg/libavfilter/lavfutils.c:92: undefined reference to `avformat_close_input&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavcodec.a(frame_thread_encoder.o): In function `ff_frame_thread_encoder_free&#x27;:&#xA;/home/jamiey/ffmpeg/libavcodec/frame_thread_encoder.c:225: undefined reference to `pthread_join&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavcodec.a(frame_thread_encoder.o): In function `ff_frame_thread_encoder_init&#x27;:&#xA;/home/jamiey/ffmpeg/libavcodec/frame_thread_encoder.c:200: undefined reference to `pthread_create&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavcodec.a(pthread_frame.o): In function `ff_frame_thread_free&#x27;:&#xA;/home/jamiey/ffmpeg/libavcodec/pthread_frame.c:575: undefined reference to `pthread_join&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavcodec.a(pthread_frame.o): In function `ff_frame_thread_init&#x27;:&#xA;/home/jamiey/ffmpeg/libavcodec/pthread_frame.c:705: undefined reference to `pthread_create&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavcodec.a(pthread_slice.o): In function `ff_slice_thread_init&#x27;:&#xA;/home/jamiey/ffmpeg/libavcodec/pthread_slice.c:220: undefined reference to `pthread_create&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavcodec.a(pthread_slice.o): In function `ff_slice_thread_free&#x27;:&#xA;/home/jamiey/ffmpeg/libavcodec/pthread_slice.c:118: undefined reference to `pthread_join&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavutil.a(rational.o): In function `av_d2q&#x27;:&#xA;/home/jamiey/ffmpeg/libavutil/rational.c:115: undefined reference to `log&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/rational.c:118: undefined reference to `floor&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavutil.a(eval.o): In function `eval_expr&#x27;:&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:183: undefined reference to `trunc&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:182: undefined reference to `ceil&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:181: undefined reference to `floor&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:241: undefined reference to `pow&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:177: undefined reference to `exp&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:176: undefined reference to `exp&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:287: undefined reference to `pow&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:278: undefined reference to `floor&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavutil.a(eval.o): In function `av_strtod&#x27;:&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:112: undefined reference to `pow&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:103: undefined reference to `pow&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:109: undefined reference to `pow&#x27;&#xA;/home/jamiey/ffmpeg/lib/libavutil.a(eval.o): In function `parse_primary&#x27;:&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:394: undefined reference to `sinh&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:395: undefined reference to `cosh&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:396: undefined reference to `tanh&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:397: undefined reference to `sin&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:398: undefined reference to `cos&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:399: undefined reference to `tan&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:400: undefined reference to `atan&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:401: undefined reference to `asin&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:402: undefined reference to `acos&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:403: undefined reference to `exp&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:404: undefined reference to `log&#x27;&#xA;/home/jamiey/ffmpeg/libavutil/eval.c:405: undefined reference to `fabs&#x27;&#xA;collect2: ld returned 1 exit status&#xA;

    &#xA;&#xA;

    However, I was successful in running functions in other library, such as the ones in "ffmpeg/libavcodec/avcodec.h". Why is this happening to "ffmpeg/libavfilter/lavfutils.h" ?

    &#xA;