
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (47)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Les vidéos
21 avril 2011, parComme 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 (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (6459)
-
How can I recieve an RTP stream with JavaCV ?
11 janvier 2019, par c.bergerI’m trying to stream video from an RTP server (currently VLC for testing) and decode it in Java. To do this, I’m using JavaCV to decode the incoming stream. Here’s what I have so far :
try {
grabber = new FFmpegFrameGrabber("rtp://localhost:5004/test");
grabber.setFormat("h264");
grabber.setFrameRate(30.0);
grabber.start();
Java2DFrameConverter converter = new Java2DFrameConverter();
while (true) {
Frame frame = grabber.grab();
imageToDraw = frame != null ? converter.convert(frame) : null;
// goes off to paint a widget on a window, see https://git.io/fhZSr for more context
repaint();
}
} catch (Exception e) {
// TODO: Discover what circumstances cause this
e.printStackTrace(System.out);
}On VLC, my stream settings are set like this :
- Destination stream : RTP/TS (address
localhost
, port 5004, and stream nametest
.) - Transcoding active, set to "Video - H.264 + MP3 (TS)" preset :
- MPEG-TS encapsulation
- h.264 video with MPEG audio
- Stream all elementary streams is off.
I can get one VLC instance to stream to another with these settings (with the "client" VLC receiving from
rtp://localhost:5004/test
), and it works just fine. (The only issues arise from having a weak test machine not suited transcoding high res video.)Switch over to Java, and all I can see is gray frames with a spat of color here and there. The console is also screaming the whole way through. Some snippets (the full log is too long to be a reasonable post, but it can be found here if you really want it) :
[h264 @ 0x7f6c4c3502c0] cabac decode of qscale diff failed at 8 12
[h264 @ 0x7f6c4c3502c0] error while decoding MB 8 12, bytestream 670
[h264 @ 0x7f6c4c3502c0] concealing 421 DC, 421 AC, 421 MV errors in P frame[h264 @ 0x7f6c4c3502c0] Reference 4 >= 2
[h264 @ 0x7f6c4c3502c0] error while decoding MB 25 8, bytestream 416
[h264 @ 0x7f6c4c3502c0] concealing 556 DC, 556 AC, 556 MV errors in B frame[h264 @ 0x7f6c4c3502c0] Reference 5 >= 4
[h264 @ 0x7f6c4c3502c0] error while decoding MB 21 1, bytestream 6042
[h264 @ 0x7f6c4c3502c0] concealing 826 DC, 826 AC, 826 MV errors in P frame
[h264 @ 0x7f6c4c3502c0] Invalid NAL unit 8, skipping.
[above line repeats 5x]
[h264 @ 0x7f6c4c3502c0] top block unavailable for requested intra mode
[h264 @ 0x7f6c4c3502c0] error while decoding MB 3 0, bytestream 730
[h264 @ 0x7f6c4c3502c0] concealing 836 DC, 836 AC, 836 MV errors in P frameIs there something I am clearly doing wrong ?
- Destination stream : RTP/TS (address
-
Anomalie #4361 (Nouveau) : Message d’erreurs divers sur PHP 7.2.19 sur nouvelle installation ou PH...
13 juillet 2019, par Vincent ROBERTSur Xampp avec Apache 2.4.39 (Win64) & PHP 7.2.19 - Chrome
Sur une installation fraiche, sans aucun plugin activé autre que ceux pas défaut :Sur la page : http://localhost/news-test/ecrire/?exec=admin_plugin
Warning : count() : Parameter must be an array or an object that implements Countable in C :\xampp\htdocs\news-test\plugins-dist\svp\inc\svp_actionner.php on line 704
Warning : count() : Parameter must be an array or an object that implements Countable in C :\xampp\htdocs\news-test\plugins-dist\svp\inc\svp_actionner.php on line 713
Warning : count() : Parameter must be an array or an object that implements Countable in C :\xampp\htdocs\news-test\plugins-dist\svp\inc\svp_actionner.php on line 753http://localhost/news-test/ecrire/?exec=configurer_contenu
Warning : count() : Parameter must be an array or an object that implements Countable in C :\xampp\htdocs\news-test\ecrire\public\iterateur.php on line 284
http://localhost/news-test/ecrire/?exec=configurer_forum
Warning : count() : Parameter must be an array or an object that implements Countable in C :\xampp\htdocs\news-test\ecrire\public\iterateur.php on line 284
*Sur une installation moins fraiche sur PHP Version 7.2.20 en ligne
/ecrire/ ?exec=configurer_forum
Warning : count() : Parameter must be an array or an object that implements Countable in /htdocs/ecrire/public/iterateur.php on line 284
-
Hosting music bot on heroku
2 mars 2021, par itsmaxplayzI have made a discord bot on discord.py rewrite which plays music in a voice channel. The code is as follows :


def search(query):

 with ytdl:
 try:
 requests.get(query)
 except:
 info = ytdl.extract_info(f"ytsearch:{query}", download=False)['entries'][0]
 else:
 info = ytdl.extract_info(query, download=False)
 return info, info['formats'][0]['url']

ydl_opts = {
 'format': 'bestaudio/best',
 'quiet': True,
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '192',
 }],

}

ytdl = youtube_dl.YoutubeDL(ydl_opts)

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

@client.command(aliases=['p'])
async def play(ctx, *, url):
 channel = ctx.message.author.voice.channel
 voice = get(client.voice_clients, guild=ctx.guild)
 if voice and voice.is_connected():
 pass
 else:
 voice = await channel.connect()
 await ctx.send(f'Successfully joined `{channel}`')

 if voice.is_playing():
 await ctx.send('Already playing a song. Try using -q or -queue to queue a song 
 :thumbsup:')
 else:
 await ctx.send(f'Searching for: `{url}` :mag_right:')
 video, source = search(url)
 voice.play(FFmpegPCMAudio(source, **FFMPEG_OPTS))
 voice.is_playing()
 await ctx.send(f'Playing: :notes: `{video["title"]}` - Now!')



It works locally but when I upload the code to heroku (I use github to push the code to heroku), the bot does not come online.
These are the libraries that I imported in the code :


import discord
import json
import random
import youtube_dl
import requests
import os
from discord.ext import commands
from discord.utils import get
from discord import FFmpegPCMAudio
import ctypes
import ctypes.util



I have installed the ffmpeg buildpacks as I saw in another post on this website but the bot doesn't come online.


Contents of my requirement file :


discord.py,
discord.py[voice],
ffmpeg,
PyNaCl,
youtube_dl,
requests,
discord.py[FFmpegPCMAudio],
colorlog.