Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (76)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

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

Sur d’autres sites (6068)

  • Cannot stream properly on YouTube using ffmpeg with Python

    1er mars 2018, par Francesco

    I have a few problems related to sending ffmpeg stream to YouTube.
    1. If I comment out "time.sleep(sleep_time)" the stream goes 3x fast(basing on what ?) ;
    2. If I uncomment the ’-r’ args the stream lags ;
    3. If I don’t add the background music the stream doesn’t start on YouTube, the problem persists if I uncomment the ’-an’ args.
    4. When the background music ends the stream stops working on YouTube.

    frame = cv2.imread('STATIC_IMAGE.jpg')
    fps = 25
    sleepTime = 1 / fps

    height, width, channels = frame.shape

    command = [
       'ffmpeg',

       #OpenCV image.
       #'-re',
       #'-threads', '0',
       '-f', 'rawvideo', #image2pipe
       '-vcodec','rawvideo',
       '-s', str(width) + 'x' + str(height),
       '-pixel_format', 'bgr24',
       #'-r', str(fps),
       #'-an',
       '-i', '-',

       #Background music
       #'-stream_loop', '-1',
       #'-re',
       #'-r', str(fps),
       '-i', 'music.mp3',

       #Output (actual stream)
       #'-r', str(fps),
       #'-crf', '25',
       #'-g', '39',
       #'-g', '2',
       #'-ac', '2',
       #'-c:a', 'aac',
       #'-b:a', '128k',
       #'-ar', '44100',
       #'-an',
       #'-b:v', '300k',
       #'-c:v', 'libx264',
       #'-bufsize', '600k',
       #'-maxrate', '300k',
       #'-qmin', '32',
       #'-qmax', '64',
       #'-vcodec', 'libx264',
       #'-pixel_format', 'yuv420p',
       '-vcodec', 'h264',
       '-pixel_format', 'h264',
       '-f', 'flv',
       'rtmp://a.rtmp.youtube.com/live2/STREAM_KEY'
    ]

    import subprocess as sp
    proc = sp.Popen(command, stdin=sp.PIPE, shell=False)

    while True:
       proc.stdin.write(frame.tostring())

       time.sleep(sleepTime)

    Any idea of why these problems happen ?
    May the "while True" be the problem ?

  • voiceclient.play(discord.FFmpegPCMAudio) doesn't play any audio

    23 septembre 2021, par mm3239

    I'm trying to create a private music bot. It joined voice channel, but no sound came out and queue didn't worked. My play function is like this :

    


    async def play_music(self):
    if len(self.music_queue) > 0:
        self.is_playing = True

        index = self.music_queue[0][0]['index']

        #connecting to voice channel
        if not self.vc.is_connected():
            self.vc = await self.music_queue[0][1].connect()
        else:
            await self.vc.move_to(self.music_queue[0][1])

        self.music_queue.pop(0)

        self.vc.play(discord.FFmpegPCMAudio(self.music_files[index], **self.FFMPEG_OPTIONS), after=lambda e: self.play_next())


    


    When I execute the file, it should work like this :

    


    Me: /play abc.mp3
Bot: Song added to queue.
*abc song plays in voice channel*
Me: /play def.mp3
Bot: Song added to queue.
Me: /play ghi.mp3
Bot: Song added to queue.

Me: /queue
Bot: def.mp3
     ghi.mp3


    


    However, in reality, Discord :

    


    Me: /play abc.mp3
Bot: Song added to queue.
*silence*
Me: /play def.mp3
Bot: Song added to queue.
Me: /play ghi.mp3
Bot: Song added to queue.

Me: /queue
Bot: No music in queue.


    


    Console :

    


    music found!&#xA;[[{&#x27;index&#x27;: 2, &#x27;title&#x27;: &#x27;abc.mp3&#x27;}, <voicechannel>]]&#xA;music found!&#xA;[[{&#x27;index&#x27;: 0, &#x27;title&#x27;: &#x27;def.mp3&#x27;}, <voicechannel>]]&#xA;&#xA;music found!&#xA;[[{&#x27;index&#x27;: 1, &#x27;title&#x27;: &#x27;ghi.mp3&#x27;}, <voicechannel> position=5 bitrate=64000 user_limit=10 category_id=790202432072187909>]]&#xA;</voicechannel></voicechannel></voicechannel>

    &#xA;

    I can see something's wrong(abc and def prints shorter message in console, middle part of message is skipped), but as you can see, it doesn't raise any error or exception. Could anyone please help me correct my code ? I'm completely stuck, and it would be really appreciated if someone could tell me what the problem is.

    &#xA;

  • build-ffmpeg.sh bad variable name

    25 octobre 2016, par Alex Kombo

    I have added the library to my project successfully but after replacing the Android media player with the FFmpegMediaPlayer and trying to build and run the project, I get the following error :

    :library:buildFFmpeg
    /home/kombo/Radio Africa/Music Player/library/src/main/scripts/build-ffmpeg.sh: 4: export: Africa/Music: bad variable name

    FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':library:buildFFmpeg'.
    > Process 'command '/home/kombo/Radio Africa/Music Player/library/src/main/scripts/build-ffmpeg.sh'' finished with non-zero exit value 2

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 34.148 secs

    How can I solve tackle this since removing the build-ffmpeg.sh file doesn’t look like an option.