
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (10)
-
D’autres logiciels intéressants
12 avril 2011, parOn ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
Videopress
Site Internet : (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (5930)
-
Python Youtube ffmpeg Session Has Been Invalidated
14 août 2020, par DanielI get the following error while I'm playing YouTube audio with my bot



[tls @ 0000024ef8c4d480] Error in the pull function.
[matroska,webm @ 0000024ef8c4a400] Read error
[tls @ 0000024ef8c4d480] The specified session has been invalidated for some reason.
 Last message repeated 1 times




It seems like YouTube links expire ? I don't really know but I need to fix this issue. This is my code :



class YTDLSource(discord.PCMVolumeTransformer):

 def __init__(self, source, *, data, requester):
 super().__init__(source)
 self.requester = requester

 self.title = data['title']
 self.description = data['description']
 self.uploader = data['uploader']
 self.duration = data['duration']
 self.web_url = data['webpage_url']
 self.thumbnail = data['thumbnail']

 def __getitem__(self, item: str):
 return self.__getattribute__(item)

 @classmethod
 async def create_source(cls, ctx, player, search: str, *, loop, download=True):
 async with ctx.typing():
 loop = loop or asyncio.get_event_loop()
 to_run = partial(ytdl.extract_info, url=search, download=download)
 raw_data = await loop.run_in_executor(None, to_run)

 if 'entries' in raw_data:
 # take first item from a playlist
 if len(raw_data['entries']) == 1:
 data = raw_data['entries'][0]
 else:
 data = raw_data['entries']
 #loops entries to grab each video_url
 total_duration = 0
 try:
 for i in data:
 webpage = i['webpage_url']
 title = i['title']
 description = i['description']
 uploader = i['uploader']
 duration = i['duration']
 thumbnail = i['thumbnail']
 total_duration += duration

 if download:
 source = ytdl.prepare_filename(i)
 source = cls(discord.FFmpegPCMAudio(source), data=i, requester=ctx.author)
 else:
 source = {'webpage_url': webpage, 'requester': ctx.author, 'title': title, 'uploader': uploader, 'description': description, 'duration': duration, 'thumbnail': thumbnail}

 player.queue.append(source)

 except Exception as e:
 print(e)
 return

 embed=discord.Embed(title="Playlist", description="Queued", color=0x30a4fb, timestamp=datetime.now(timezone.utc))
 embed.set_author(name=ctx.author.display_name, icon_url=ctx.author.avatar_url)
 embed.set_thumbnail(url=data[0]['thumbnail'])
 embed.add_field(name=raw_data['title'], value=f"{len(data)} videos queued.", inline=True)
 embed.set_footer(text=raw_data["uploader"] + ' - ' + '{0[0]}m {0[1]}s'.format(divmod(total_duration, 60)))
 await ctx.send(embed=embed)
 return

 embed=discord.Embed(title="Playlist", description="Queued", color=0x30a4fb, timestamp=datetime.now(timezone.utc))
 embed.set_author(name=ctx.author.display_name, icon_url=ctx.author.avatar_url)
 embed.set_thumbnail(url=data['thumbnail'])
 embed.add_field(name=data['title'], value=(data["description"][:72] + (data["description"][72:] and '...')), inline=True)
 embed.set_footer(text=data["uploader"] + ' - ' + '{0[0]}m {0[1]}s'.format(divmod(data["duration"], 60)))
 await ctx.send(embed=embed)

 if download:
 source = ytdl.prepare_filename(data)
 else:
 source = {'webpage_url': data['webpage_url'], 'requester': ctx.author, 'title': data['title'], 'uploader': data['uploader'], 'description': data['description'], 'duration': data['duration'], 'thumbnail': data['thumbnail']}
 player.queue.append(source)
 return

 source = cls(discord.FFmpegPCMAudio(source), data=data, requester=ctx.author)
 player.queue.append(source)


 @classmethod
 async def regather_stream(cls, data, *, loop):
 loop = loop or asyncio.get_event_loop()
 requester = data['requester']

 to_run = partial(ytdl.extract_info, url=data['webpage_url'], download=True)
 data = await loop.run_in_executor(None, to_run)

 return(cls(discord.FFmpegPCMAudio(data['url']), data=data, requester=requester))




I'm using the rewrite branch of discord.py for the bot.
I'm not sure if I need to provide more details ? Please let me know, I really need to get this fixed...


-
FFmpeg youtube livestreaming [closed]
23 janvier 2024, par T1WTI'm developing a project for streaming on YouTube. I use Python + ffpeg in the code. I haven’t been able to fix the problem for a month now - after a while (from 6 to 20 hours) buffering begins. In the command I use -c copy. But after this time, I came to the conclusion that most likely the buffering (namely, the stream gradually drops from speed x1 to speed x0.9 and below) is due to the disk. My server has SATA. Moreover, the problem is that the disk reaches 100% active time. And around this time the flow speed begins to drop. Moreover, the total read/write speed is only 20MB/sec. How to fix it ? Thanks for your help, I really can't stand it anymore.


I’ll say right away that the potential of the project is great, now there are only 50 streams on YouTube, but then there may be more than 10,000.


I tried a lot but settled on the SATA drive and


-
Added nosniff header to prevent IE download dialogs.
28 juillet 2011, par Sebastian Tschanm example/upload.php Added nosniff header to prevent IE download dialogs. Thanks to Don Bowden for the hint.