
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (55)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Ecrire une actualité
21 juin 2013, parPré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 (7443)
-
Invalid data found when processing input for Streaming Discord Bot
4 mai 2022, par DimKewlI tried a variety of streaming links that were working in the past for the same code.
After refactoring and working on all possible solutions I could find on google
I always get the following error :


Invalid data found when processing input


My code snippet :


FFMPEG_OPTIONS = {
 "before_options": "-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5",
 "options": "-vn -sn -dn"
}
@commands.command()
async def radio(self,ctx,url):
 await self.joinLogic(ctx)
 await self.playStreamOpus(ctx,url)

async def joinLogic(self, ctx):
 if ctx.author.voice is None:
 await ctx.send("Please join a voice channel!")
 else:
 voice_channel = ctx.author.voice.channel
 if ctx.voice_client is None:
 await voice_channel.connect()

async def playStreamOpus(self, ctx, url):
 source = await discord.FFmpegOpusAudio.from_probe(url, **self.FFMPEG_OPTIONS)
 ctx.voice_client.play(source)



What have I already tried :


- 

- Re-install all dependencies on pip.
- Tried the PCM instead of Opus.
- Different streaming URLs.
- More options in FFMPEG_Options to explicit that I need only audio.
- Made sure that my bot is joined in my channel and can reach other places in my code.












-
How to install avconv for youtube-dl
23 janvier 2016, par HashimUp till now, I’ve been using youtube-dl with
ffmpeg
. I’ve had a few problems doing so, which I posted about in another question, but for the most part, I managed to getffmpeg
set up without a hitch. After having problems converting certain file formats withffmpeg
, I was advised in that question to try and switch toavconv
to see whetherffmpeg
was indeed the problem, and basically help me troubleshoot, but despite trying for the last 3 hours, I’ve been unable to even getavconv
set up.So far, I’ve downloaded several of the releases for my Windows 7 x64 operating system from the libav website, each time copying the exact folder structure into the folder where my
youtube-dl.exe
is, and then making sure that location and thebin
folder is in the PATH environment variable. The folder structure looks like this :C:\Program Files (x86)\youtube-dl\usr\bin
, where bin contains avconv.exe and the rest of the files that it needs. Does anyone have any clue as to why this isn’t working for me ? It’s beyond me how something so critical to a program as popular as youtube-dl could be so hard and/or badly-documented to get set up.Thanks for any help in advance, it’s much appreciated.
EDIT : Something peculiar that I’ve noticed. When getting rid of all traces of
avconv
andffmpeg
, youtube-dl throws up the usual error of needing them to convert. But when just theavconv
folders are in the necessary places, youtube-dl recognises it asffmpeg
and starts processing the files as such. -
How is better to use ffmpeg with the ASP.NET Core, on Linux ?
26 mars, par user8245660I've got the project (ASP.NET Core, on Linux) where are the several tasks, which relate to the video converting and extracting frames from the video file.



I thought about the two possible options :



- 

- using
ffmpeg
console utility - using
P/Invoke
with thelibavcodec
library and others, whichffmpeg
uses







The second option is miles harder and may be very impractical, because it reminds me developing the new wrapper/library, instead of using the ready products.



I've done googling, but there aren't well-done projects for the C#/ASP.NET Core on Linux platform. There are some good for C++ and Python, but NOT for the C# on Linux/.NET Core.



I decided to look at the first option, which I suppose would be more easier and practical. But, there are some weak places, which can produce many problems. We understand (I suppose), that using the 1st option, the end-developer shall use the process forking. So, there could be possible problems with the process idle and other possible issues...



I'm asking about your practice, because it's my first experience on Linux platform with the video converting/sampling using C#. I've used the Expression Encoder .NET library on Windows platform, but it's other story and it makes no sense, right now.



May be, there are other options, which I can't see right at the moment. I dislike the 1st option because of possible unhandled exceptions, because
ffmpeg
with such role becomes the black box for the ASP.NET Core backend.

- using