Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (59)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (5946)

  • 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 ?

    


  • tag refuses to play mp4 video

    5 janvier 2015, par MightyPork

    I have a video I want to embed using the html5 video tag :

    I’ve converted it using ffmpeg :

    ffmpeg -i P6135199.MOV -vcodec libx264 -acodec aac helios.mp4

    FFMPEG output :

    [libx264 @ 0x22ac340] using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2
    [libx264 @ 0x22ac340] profile High 4:2:2, level 1.2, 4:2:2 8-bit
    [libx264 @ 0x22ac340] 264 - core 142 r2455 021c0dc - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options : cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to ’helios.mp4’ :
      Metadata :
        comment-eng : OLYMPUS DIGITAL CAMERA                           
        comment : OLYMPUS DIGITAL CAMERA                           
        encoder : Lavf56.15.102
        Stream #0:0(eng) : Video : h264 (libx264) ([33][0][0][0] / 0x0021), yuvj422p(pc), 320x240, q=-1—1, 15 fps, 15360 tbn, 15 tbc (default)
        Metadata :
          creation_time : 2008-06-13 10:47:16
          encoder : Lavc56.13.100 libx264
    Stream mapping :
      Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=  240 fps=124 q=-1.0 Lsize=     906kB time=00:00:15.86 bitrate= 467.7kbits/s    
    video:902kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : 0.409100%
    [libx264 @ 0x22ac340] frame I:1     Avg QP:23.71  size :  7960
    [libx264 @ 0x22ac340] frame P:123   Avg QP:23.85  size :  5255
    [libx264 @ 0x22ac340] frame B:116   Avg QP:25.41  size :  2317
    [libx264 @ 0x22ac340] consecutive B-frames :  3.3% 96.7%  0.0%  0.0%
    [libx264 @ 0x22ac340] mb I  I16..4 : 15.7% 69.0% 15.3%
    [libx264 @ 0x22ac340] mb P  I16..4 :  2.2% 13.4%  0.8%  P16..4 : 43.8% 23.1% 14.0%  0.0%  0.0%    skip : 2.8%
    [libx264 @ 0x22ac340] mb B  I16..4 :  0.3%  1.3%  0.1%  B16..8 : 42.4%  9.9%  3.0%  direct:12.2%  skip:30.9%  L0:37.2% L1:38.2% BI:24.5%
    [libx264 @ 0x22ac340] 8x8 transform intra:80.8% inter:71.9%
    [libx264 @ 0x22ac340] coded y,uvDC,uvAC intra : 76.7% 96.8% 49.7% inter : 37.8% 60.9% 5.1%
    [libx264 @ 0x22ac340] i16 v,h,dc,p : 39%  4%  8% 49%
    [libx264 @ 0x22ac340] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 15% 14% 39%  6%  3%  4%  3%  6% 12%
    [libx264 @ 0x22ac340] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 25% 11% 18%  8%  7%  7%  8%  8%  8%
    [libx264 @ 0x22ac340] i8c dc,h,v,p : 63%  7% 20% 10%
    [libx264 @ 0x22ac340] Weighted P-Frames : Y:5.7% UV:0.8%
    [libx264 @ 0x22ac340] ref P L0 : 51.4% 18.3% 20.6%  9.3%  0.4%
    [libx264 @ 0x22ac340] ref B L0 : 80.8% 19.2%
    [libx264 @ 0x22ac340] kb/s:461.52
    

    And I try to embed it as follows :

    <video src="helios.mp4" controls="controls">Get a better browser!</video>

    However, Chrome doesn’t play the video, only offers to download it (same as it did before I converted the video). Firefox has the same problem.

    I’ve tested and other mp4 files (from my phone) play just fine.

    What’s the problem ? Did I convert it wrong ?