
Recherche avancée
Médias (91)
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Echoplex (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Discipline (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Letting you (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
999 999 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (86)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)
Sur d’autres sites (12147)
-
Unable to play mp4 file with JavaFX MediaPlayer
20 juillet 2016, par LennartI 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) :
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 jmcamacho7I 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 ?


-
How to prepare media stream to play using dash.js web player ?
7 avril 2016, par Paweł TobiszewskiI want to stream media from nginx server to Android device and play it using web player embedded into web page. Player I want to use is dash.js.
I play the same media also using different methods (MediaPlayer and ExoPlayer) and they are working great. But when I try to use dash.js, I faced problem with codecs - they are not supported.
I prepare my streams using ffmpeg and MP4Box, I also tried different codecs, like libx264, x264, x265 - always with the same effect.
My based media are video in Y4M format and audio in WAV.
How to encode it to use it in dash.js player ?EDIT :
I get error "Video Element Error : MEDIA_ERR_DECODE" while trying to decode video stream.Here is full log :
[16] EME detected on this user agent! (ProtectionModel_21Jan2015)
[19] Playback Initialized
[28] [dash.js 2.0.0] MediaPlayer has been initialized
[102] Parsing complete: ( xml2json: 3ms, objectiron: 3ms, total: 0.006s)
[103] Manifest has been refreshed at Thu Apr 07 2016 22:02:52 GMT+0200 (CEST)[1460059372.696]
[107] SegmentTimeline detected using calculated Live Edge Time
[118] MediaSource is open!
[118] [object Event]
[119] Duration successfully set to: 18.58
[119] Added 0 inline events
[120] video codec: video/mp4;codecs="avc1.640032"
[132] Schedule controller stopping for video
[137] No audio data.
[137] No text data.
[137] No fragmentedText data.
[137] No embeddedText data.
[138] No muxed data.
[139] Start Event Controller
[141] Schedule controller starting for video
[143] Native video element event: play
[144] Schedule controller starting for video
[148] loaded video:InitializationSegment:NaN (200, 0ms, 7ms)
[149] Initialization finished loading
[154] Getting the request for video time : 0
[155] SegmentList: 0 / 18.58
[164] loaded video:MediaSegment:0 (200, 7ms, 1ms)
[169] Native video element event: loadedmetadata
[171] Starting playback at offset: 0
[175] Got enough buffer to start.
[175] Buffered Range: 0 - 0.999999
[179] Requesting seek to time: 0
[181] Prior to making a request for time, NextFragmentRequestRule is aligning index handler's currentTime with bufferedRange.end. 0 was changed to 0.999999
[182] Getting the request for video time : 0.999999
[183] SegmentList: 0 / 18.58
[183] Getting the next request at index: 1
[184] SegmentList: 1 / 18.58
[190] loaded video:MediaSegment:1 (200, 5ms, 0ms)
[192] Buffered Range: 0 - 0.999999
[195] Getting the request for video time : 2
[196] Index for video time 2 is 1
[197] SegmentList: 1 / 18.58
[197] Getting the next request at index: 2
[198] SegmentList: 2 / 18.58
[205] loaded video:MediaSegment:2 (200, 4ms, 1ms)
[207] Buffered Range: 0 - 0.999999
[207] Getting the request for video time : 3
[208] Index for video time 3 is 2
[208] SegmentList: 2 / 18.58
[209] Getting the next request at index: 3
[209] SegmentList: 3 / 18.58
[212] Video Element Error: MEDIA_ERR_DECODE
[212] [object MediaError]
[215] Schedule controller stopping for video
[219] Native video element event: pause