Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (55)

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (6910)

  • Using ffmpeg to play file on windows, should use directshow to render the decoded frame [on hold]

    22 juillet 2013, par Terry

    I want to write a video file player using ffmpeg(support many format).

    However ffmpeg(/ffplay.exe) using SDL to render the video frame and play the audio sound. I only want to support windows platform. I think the default windows technology/api is more suitalbe for me to render the decoded frame. Do you think so ?

    If so, should I use direct show, or just using direct draw for video frame and direct sound for audio frame.

    If using direct show, I think I need to wrapper a direct show source filter(/splitter), then pass down the decoded video/audio frame data to render filter.

    Please help me which is the best choice ?

  • Unable to play mp4 file with JavaFX MediaPlayer

    20 juillet 2016, par Lennart

    I want to capture the computers screen and play resulting video with the MediaPlayer of JavaFX (jdk1.8.0_91).

    I found the supported encoding and container types and I think that mp4 with H.264/AVC and AAC is the best choice.

    I’m using FFmpeg with the DirectShow device Screen Capture Recorder to capture the screen and save the resulting video as mp4 file. I used the following command :

    ffmpeg -rtbufsize 1500M -framerate 25 -f dshow -i video="screen-capture-recorder":audio="virtual-audio-capturer" -r 25 -c:v libx264 -pix_fmt yuv420p output.mp4

    But the MediaPlayer isn’t able to play the video and throws a MediaException instead :

    MediaException: UNKNOWN : [com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer@133b675a] ERROR_MEDIA_INVALID: ERROR_MEDIA_INVALID
       at javafx.scene.media.MediaException.getMediaException(MediaException.java:160)
       at javafx.scene.media.MediaPlayer$_MediaErrorListener.onError(MediaPlayer.java:2615)
       at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.HandleErrorEvents(NativeMediaPlayer.java:691)
       at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.run(NativeMediaPlayer.java:425)

    I previously used a video from Youtube (downloaded with some random Youtube downloader) for testing and it worked. I displayed the video codecs with the VLC player and it shows the same data (except for the frame rate and resolution) :

    Video Codecs
    Left is the Youtube video and right the FFmpeg output.

    Solution :
    The problem was the resolution of the video. I found an open jdk bug that says that the maximum resolution is 1920x1088 due to limitations of the used decoder. The video played fine after I scaled it.

  • AttributeError : 'FFmpegAudio' object has no attribute '_process' while trying to play audio from URL

    13 août 2022, par jmcamacho7

    I can't find any solution online and I don't know what's wrong.

    


    My code is : (Not pasting the URL getting since that works fine)

    


    from urllib import parse, request
import re
import pafy
from discord import FFmpegPCMAudio, PCMVolumeTransformer

FFMPEG_OPTIONS = {
    'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'
}

@bot.command(pass_context=True)
async def play(ctx, * , search):
  query_string = parse.urlencode({'search_query': search})
  html_content = request.urlopen('http://www.youtube.com/results?' + query_string)
  search_results=re.findall('watch\?v=(.{11})',html_content.read().decode('utf-8'))
  print(search_results[0])
  
  if(ctx.author.voice):
    channel = ctx.message.author.voice.channel
    await ctx.send("https://www.youtube.com/watch?v="+search_results[0])  
    url = "https://www.youtube.com/watch?v="+search_results[0]
    conn = await channel.connect()
    conn.play(discord.FFmpegAudio(url, **FFMPEG_OPTIONS))
  else:
    await ctx.send("Necesitas estar en un canal de audio para usar este comando")


    


    It just gives me this error everytime I try it :

    


    Traceback (most recent call last):
  File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 103, in __del__
    self.cleanup()
  File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 154, in cleanup
    proc = self._process
AttributeError: 'FFmpegAudio' object has no attribute '_process'


    


    Anyway to solve this ?