Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (84)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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 (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (11409)

  • avformat/mxf : add platform local tag

    2 février 2021, par Limin Wang
    avformat/mxf : add platform local tag
    

    Please check the string of platform with below command :
    ./ffmpeg -i ../fate-suite/mxf/Sony-00001.mxf -c:v copy -c:a copy out.mxf
    ./ffmpeg -i out.mxf
    ....
    application_platform : Lavf (linux)

    Reviewed-by : Tomas Härdin <tjoppen@acc.umu.se>
    Signed-off-by : Limin Wang <lance.lmwang@gmail.com>

    • [DH] configure
    • [DH] libavformat/mxfenc.c
    • [DH] tests/ref/fate/copy-trac4914
    • [DH] tests/ref/fate/mxf-d10-user-comments
    • [DH] tests/ref/fate/mxf-opatom-user-comments
    • [DH] tests/ref/fate/mxf-reel_name
    • [DH] tests/ref/fate/mxf-user-comments
    • [DH] tests/ref/fate/time_base
    • [DH] tests/ref/lavf/mxf
    • [DH] tests/ref/lavf/mxf_d10
    • [DH] tests/ref/lavf/mxf_dv25
    • [DH] tests/ref/lavf/mxf_dvcpro50
    • [DH] tests/ref/lavf/mxf_opatom
    • [DH] tests/ref/lavf/mxf_opatom_audio
  • Matplotlib use Ffmpeg to save plot to be mp4 not include full step

    21 décembre 2020, par 昌翰余

    I use ffmpeg to store the dynamic graph drawn on matplotlib, but the output file is only 2 seconds&#xA;but It should have been 30 seconds.&#xA;I set a graph to run three curves, a total of 30 seconds of data,&#xA;the graph that ran on the py file is normal,&#xA;but the output is only the first two seconds of the output.&#xA;May I ask if I missed something

    &#xA;

    Below is my code

    &#xA;

    import matplotlib.pyplot as plt&#xA;from matplotlib import animation&#xA;from numpy import random &#xA;import pandas as pd&#xA;from matplotlib.animation import FFMpegWriter&#xA;&#xA;FFwriter=animation.FFMpegWriter(fps=30, extra_args=[&#x27;-vcodec&#x27;, &#x27;libx264&#x27;])&#xA;data = pd.read_csv(&#x27;apple1.csv&#x27;, delimiter = &#x27;,&#x27;, dtype = None)&#xA;data = data.values&#xA;AccX1=[]&#xA;AccY1=[]&#xA;AccZ1=[]&#xA;AccX2=[]&#xA;AccY2=[]&#xA;AccZ2=[]&#xA;&#xA;time = []&#xA;&#xA;for i in range(600):&#xA;        AccX1.append(data[i][8])&#xA;        AccY1.append(data[i][9])&#xA;        AccZ1.append(data[i][10])&#xA;        AccX2.append(data[i][24])&#xA;        AccY2.append(data[i][25])&#xA;        AccZ2.append(data[i][26])&#xA;        &#xA;        time.append(data[i][0])&#xA;        &#xA;fig = plt.figure()&#xA;ax1 = plt.axes(xlim=(0,3000), ylim=(6,-6))&#xA;line, = ax1.plot([], [], lw=2)&#xA;plt.xlabel(&#x27;ACC&#x27;)&#xA;plt.ylabel(&#x27;Time&#x27;)&#xA;&#xA;plotlays, plotcols = [3], ["r","g","b"]&#xA;lines = []&#xA;for index in range(3):&#xA;    lobj = ax1.plot([],[],lw=2,color=plotcols[index])[0]&#xA;    lines.append(lobj)&#xA;&#xA;&#xA;def init():&#xA;    for line in lines:&#xA;        line.set_data([],[])&#xA;    return lines&#xA;&#xA;x1,y1 = [],[]&#xA;x2,y2 = [],[]&#xA;x3,y3 = [],[]&#xA;&#xA;&#xA;&#xA;i=0&#xA;&#xA;def animate(frame):&#xA;    global i&#xA;    &#xA;    i&#x2B;=1&#xA;    x = i&#xA;    y = AccX1[i]&#xA;&#xA;    x1.append(x)&#xA;    y1.append(y)&#xA;&#xA;    x = i&#xA;    y = AccY1[i]&#xA;    x2.append(x)&#xA;    y2.append(y)&#xA;&#xA;    x = i&#xA;    y = AccZ1[i]&#xA;    x3.append(x)&#xA;    y3.append(y)&#xA;    &#xA;&#xA;    xlist = [x1, x2,x3]&#xA;    ylist = [y1, y2,y3]&#xA;&#xA;&#xA;    for lnum,line in enumerate(lines):&#xA;        line.set_data(xlist[lnum], ylist[lnum]) &#xA;&#xA;&#xA;    return lines&#xA;&#xA;&#xA;anim = animation.FuncAnimation(fig, animate,&#xA;                    init_func=init, blit=True,interval=10)&#xA;anim.save(&#x27;test.mp4&#x27;,writer=FFwriter)&#xA;plt.show()&#xA;

    &#xA;

    The dynamic picture ran out using plt.show is correct.&#xA;And I don't think I have set the length of storage. Did I add something ?

    &#xA;

  • Error in compiling x264 on ARM 64-bit platform

    2 septembre 2021, par yanzhang.guo

    The same x264 source code I compiled on Debian 10 (Buster) system has no problem, but I can't compile it on an ARM 64-bit platform. Why ?

    &#xA;

    Maybe there is something wrong with the Makefile, but I don't know where it is.

    &#xA;

      &#xA;
    1. Configure

      &#xA;

      ./configure --disable-asm --enable-shared  --host=aarch64-linux&#xA;&#xA;platform:      AARCH64&#xA;byte order:    little-endian&#xA;system:        LINUX&#xA;cli:           yes&#xA;libx264:       internal&#xA;shared:        yes&#xA;static:        no&#xA;asm:           no&#xA;interlaced:    yes&#xA;avs:           avxsynth&#xA;lavf:          no&#xA;ffms:          no&#xA;mp4:           no&#xA;gpl:           yes&#xA;thread:        posix&#xA;opencl:        yes&#xA;filters:       crop select_every&#xA;lto:           no&#xA;debug:         no&#xA;gprof:         no&#xA;strip:         no&#xA;PIC:           yes&#xA;bit depth:     all&#xA;chroma format: all&#xA;

      &#xA;

    2. &#xA;

    3. Edit file config.mak,

      &#xA;

      SRCPATH=.&#xA;prefix=/usr/local&#xA;exec_prefix=${prefix}&#xA;bindir=${exec_prefix}/bin&#xA;libdir=${exec_prefix}/lib&#xA;includedir=${prefix}/include&#xA;SYS_ARCH=AARCH64&#xA;SYS=LINUX&#xA;CC=aarch64-linux-gnu-gcc&#xA;CFLAGS=-Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I$(SRCPATH) -std=gnu99 -&#xA;D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize&#xA;COMPILER=GNU&#xA;COMPILER_STYLE=GNU&#xA;DEPMM=-MM -g0&#xA;DEPMT=-MT&#xA;LD=aarch64-linux-gnu-gcc -o&#xA;LDFLAGS= -lm -lpthread -ldl&#xA;LIBX264=libx264.a&#xA;AR=aarch64-linux-gnu-gcc-ar rc&#xA;RANLIB=aarch64-linux-gnu-gcc-ranlib&#xA;STRIP=aarch64-linux-gnu-strip&#xA;INSTALL=install&#xA;AS=&#xA;ASFLAGS= -I. -I$(SRCPATH) -DSTACK_ALIGNMENT=16 -DPIC&#xA;RC=&#xA;RCFLAGS=&#xA;EXE=&#xA;HAVE_GETOPT_LONG=1&#xA;DEVNULL=/dev/null&#xA;PROF_GEN_CC=-fprofile-generate&#xA;PROF_GEN_LD=-fprofile-generate&#xA;PROF_USE_CC=-fprofile-use&#xA;PROF_USE_LD=-fprofile-use&#xA;HAVE_OPENCL=yes&#xA;CC_O=-o $@&#xA;default: cli&#xA;install: install-cli&#xA;SOSUFFIX=so&#xA;SONAME=libx264.so.157&#xA;SOFLAGS=-shared -Wl,-soname,$(SONAME)  -Wl,-Bsymbolic&#xA;default: lib-shared&#xA;install: install-lib-shared&#xA;LDFLAGSCLI = -ldl&#xA;CLI_LIBX264 = $(LIBX264)&#xA;

      &#xA;

    4. &#xA;

    5. Make, an error occurred, details in error.

      &#xA;

    6. &#xA;

    7. Add file config.h after configure,

      &#xA;

       #define HAVE_MALLOC_H 1&#xA; #define ARCH_X86_64 1&#xA; #define SYS_LINUX 1&#xA; #define STACK_ALIGNMENT 64&#xA; #define HAVE_POSIXTHREAD 1&#xA; #define HAVE_CPU_COUNT 1&#xA; #define HAVE_THREAD 1&#xA; #define HAVE_LOG2F 1&#xA; #define HAVE_STRTOK_R 1&#xA; #define HAVE_CLOCK_GETTIME 1&#xA; #define HAVE_MMAP 1&#xA; #define HAVE_THP 1&#xA; #define HAVE_AVS 1&#xA; #define USE_AVXSYNTH 1&#xA; #define HAVE_VECTOREXT 1&#xA; #define fseek fseeko&#xA; #define ftell ftello&#xA; #define HAVE_BITDEPTH8 1&#xA; #define HAVE_BITDEPTH10 1&#xA; #define HAVE_GPL 1&#xA; #define HAVE_INTERLACED 1&#xA; #define HAVE_OPENCL (BIT_DEPTH==8)&#xA; #define HAVE_ALTIVEC 0&#xA; #define HAVE_ALTIVEC_H 0&#xA; #define HAVE_MMX 0&#xA; #define HAVE_ARMV6 0&#xA; #define HAVE_ARMV6T2 0&#xA; #define HAVE_NEON 0&#xA; #define HAVE_BEOSTHREAD 0&#xA; #define HAVE_WIN32THREAD 0&#xA; #define HAVE_SWSCALE 0&#xA; #define HAVE_LAVF 0&#xA; #define HAVE_FFMS 0&#xA; #define HAVE_GPAC 0&#xA; #define HAVE_LSMASH 0&#xA; #define HAVE_X86_INLINE_ASM 0&#xA; #define HAVE_AS_FUNC 0&#xA; #define HAVE_INTEL_DISPATCHER 0&#xA; #define HAVE_MSA 0&#xA; #define HAVE_WINRT 0&#xA; #define HAVE_VSX 0&#xA; #define HAVE_ARM_INLINE_ASM 0&#xA;

      &#xA;

    8. &#xA;

    &#xA;