Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (77)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (7295)

  • Animated line chart with pandas, matplotlib and ffmpeg

    10 avril 2020, par Mark K

    In producing an animated line chart, I have below data and codes.

    



    But when the chart produced, it shows no line. What did I do wrong ?

    



    Thank you.

    



    import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.animation as animation

title = 'Heroin Overdoses'

data = {'Year' : ["1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016"], 
'Heroin Overdoses' : [280,443,413,486,475,148,197,170,448,103,137,160,483,356,352,300,466,278]}
overdose = pd.DataFrame(data)

Writer = animation.writers['ffmpeg']
writer = Writer(fps=20, metadata=dict(artist='Me'), bitrate=1800)

fig = plt.figure(figsize=(10,6))
plt.xlim(1999, 2016)
plt.ylim(np.min(overdose)[0], np.max(overdose)[0])
plt.xlabel('Year',fontsize=20)
plt.ylabel(title,fontsize=20)
plt.title('Heroin Overdoses per Year',fontsize=20)

def animate(i):
    data = overdose.iloc[:int(i+1)] #select data range
    p = sns.lineplot(x=data.index, y=data[title], data=data, color="r")
    p.tick_params(labelsize=17)
    plt.setp(p.lines,linewidth=7)

ani = matplotlib.animation.FuncAnimation(fig, animate, frames=17, repeat=True)

ani.save('C:\\folder\\line chart.mp4', writer=writer)


    


  • aarch64 : hevc : Produce epel_uni_w_hv functions for both neon and i8mm

    20 mars 2024, par Martin Storsjö
    aarch64 : hevc : Produce epel_uni_w_hv functions for both neon and i8mm
    

    AWS Graviton 3 :
    put_hevc_epel_uni_w_hv4_8_c : 191.2
    put_hevc_epel_uni_w_hv4_8_neon : 87.7
    put_hevc_epel_uni_w_hv4_8_i8mm : 83.2
    put_hevc_epel_uni_w_hv6_8_c : 349.5
    put_hevc_epel_uni_w_hv6_8_neon : 153.0
    put_hevc_epel_uni_w_hv6_8_i8mm : 148.5
    put_hevc_epel_uni_w_hv8_8_c : 581.2
    put_hevc_epel_uni_w_hv8_8_neon : 166.7
    put_hevc_epel_uni_w_hv8_8_i8mm : 163.5
    put_hevc_epel_uni_w_hv12_8_c : 1230.0
    put_hevc_epel_uni_w_hv12_8_neon : 387.7
    put_hevc_epel_uni_w_hv12_8_i8mm : 370.2
    put_hevc_epel_uni_w_hv16_8_c : 2003.2
    put_hevc_epel_uni_w_hv16_8_neon : 501.5
    put_hevc_epel_uni_w_hv16_8_i8mm : 490.2
    put_hevc_epel_uni_w_hv24_8_c : 4448.7
    put_hevc_epel_uni_w_hv24_8_neon : 1092.2
    put_hevc_epel_uni_w_hv24_8_i8mm : 1069.7
    put_hevc_epel_uni_w_hv32_8_c : 7817.2
    put_hevc_epel_uni_w_hv32_8_neon : 1916.2
    put_hevc_epel_uni_w_hv32_8_i8mm : 1829.5
    put_hevc_epel_uni_w_hv48_8_c : 16728.2
    put_hevc_epel_uni_w_hv48_8_neon : 4263.7
    put_hevc_epel_uni_w_hv48_8_i8mm : 4342.7
    put_hevc_epel_uni_w_hv64_8_c : 29563.2
    put_hevc_epel_uni_w_hv64_8_neon : 7474.2
    put_hevc_epel_uni_w_hv64_8_i8mm : 7128.5

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/aarch64/hevcdsp_epel_neon.S
    • [DH] libavcodec/aarch64/hevcdsp_init_aarch64.c
  • Artifact while streaming multicast with ffmpeg

    17 août 2018, par Nicosmik

    Locally, from my windows machine with ffmpeg 3.3.2 from Zeranoe

    ffmpeg version 3.2.2 Copyright (c) 2003-2016 the FFmpeg developers
    built with gcc 5.4.0 (GCC)
    configuration : —enable-gpl
    —enable-version3 —enable-dxva2 —enable-libmfx —enable-nvenc —enable-avisynth —enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —enable-libfreetype —enable-libgme —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenh264 —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-libsnappy —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxavs —enable-libxvid —enable-libzimg —enable-lzma —enable-decklink —enable-zlib

    Server side

    Launch udp multicast streaming.

    ffmpeg -re -i video.ts -an -f mpegts -c copy udp://224.1.1.1:5000

    Client side

    Playing with ffplay is correct, no artifacts displayed

    ffplay udp://224.1.1.1:5000

    Playing after decoding cause artifacts

    ffmpeg -i udp://224.1.1.1:5000 -pix_fmt gray -f avi - | ffplay -

    or

    ffmpeg -f mpegts -i udp://224.1.1.1:5000 -pix_fmt gray -c:v rawvideo -f avi out.avi

    Does someone has an explanation ?