Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (93)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (8201)

  • Python Matplotlib FuncAnimation + Saving

    6 mars 2018, par Mars

    I am new to python and I’m trying to make an animation and save it into some video format using matplotlibs FuncAnimation. If I run the following code :

    import numpy as np
    import matplotlib.animation as ani
    import matplotlib.pyplot as plt

    azimuths = np.radians(np.linspace(0, 360, 360))
    zeniths = np.arange(0, 8, 0.2)
    rho, psi = np.meshgrid(zeniths, azimuths)


    fig = plt.figure()
    ax = fig.add_subplot(1, 1, 1, polar=True)
    ax.set_yticks([])
    plt.grid()


    def frame(i):
       values_i = prob_density(rho ** 2, psi, i)
       ax.contourf(psi, rho, values_i)

    animation = ani.FuncAnimation(fig, frame, np.linspace(0, 1000, 10))
    animation.save('video.mp4', writer='ffmpeg')

    There is an error that says :

    ValueError: outfile must be *.htm or *.html

    As this seems to have something to do with the ffmpeg files - these are located in

    /anaconda3/bin/ffmpeg

    I have been on this for quite some time now but can’t seem to figure out a solution though it seems to be common issue. Thankful for any suggestions.

  • Try to grab the frame using the ffpyplayer but not able to get the extact frame

    31 juillet 2022, par HARSH BHATNAGAR

    I am trying to grab the frame from mp4 file , rtsp link but it show the strange video given below the output of the ffpyplayer.
I have also tried to receive the stream from udp and tcp video link but its cannot process the frame .

    


    from ffpyplayer.player import MediaPlayer
import numpy as np
import cv2

player = MediaPlayer("mp.mp4")
val = ''
while val != 'eof':
    frame, val = player.get_frame()
    if val != 'eof' and frame is not None:
        img, t = frame
        print(img)
        w = img.get_size()[0] 
        h = img.get_size()[1]
        arr = np.uint8(np.asarray(list(img.to_bytearray()[0])).reshape(h,w,3)) # h - height of frame, w - width of frame, 3 - number of channels in frame
        print(arr)
        arr=cv2.resize(arr,(320,520))
        cv2.imshow('test1111', arr)
        if cv2.waitKey(25) & 0xFF == ord('q'):
            cv2.destroyAllWindows()
            break


    


    output of ffpyplayer

    


  • FFMPEG unable to find a suitable option format for 'reconnect' error

    14 août 2021, par Fayeze Salih
    import discord
from discord.ext import commands
from discord.ext.commands.core import command
import youtube_dl

class Music(commands.Cog):
    def __init__(self, client):
        self.client = client
    
    @commands.command()
    async def play(self, ctx, url):
        ctx.voice_client.stop()
        FFMPEG_OPTIONS = {'before_options': 'reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
        YDL_OPTIONS = {'format': 'bestaudio'}
        vc = ctx.voice_client

        with youtube_dl.YoutubeDL(YDL_OPTIONS) as ydl:
            info = ydl.extract_info(url, download=False)
            url2 = info['formats'][0]['url']
            source = await discord.FFmpegOpusAudio.from_probe(url2, **FFMPEG_OPTIONS)
            vc.play(source)

def setup(client):
    client.add_cog(music(client))


    


    This code for my music bot returns the error,

    


    


    [NULL @ 0000018dc5d76e40] Unable to find a suitable output format for 'reconnect'
reconnect : Invalid argument.

    


    


    Why ? I have tried making sure that I am using hyphens but that hasn't fixed the issue.