
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
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
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (23)
-
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 ;
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (5931)
-
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 nvenc_h264 streaming uhd2160 rawvideo. Youtube buffering
23 janvier 2019, par Alex DerozaI use this batch file for starting my stream :
echo starting transocding from native uhd2160 to fhd format.. Host: YouTube
ffmpeg ^
-loglevel -8 ^
-f rawvideo -s:v 1920x1080 -r 60 -pix_fmt nv12 ^
-f dshow -i video="Game Capture 4K60 Pro Video 01":audio="Game Capture 4K60 Pro Audio 01" ^
-c:v h264_nvenc ^
-level:v 4.2 ^
-profile:v high ^
-preset:v hq ^
-b:v 8.8M ^
-color_range 2 ^
-colorspace bt709 ^
-bf 0 ^
-g 60 ^
-2pass 1 ^
-rc:v cbr ^
-coder cabac ^
-acodec aac ^
-ab 128k ^
-movflags +faststart ^
-f flv rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx && pauseStream on YouTube starts fine, and plays with good quality. But stream stops after when "Buffer Health" emptied. And in this situation Youtube says that "Video output low", "YouTube is not receiving enough video to maintain smooth streaming. As such, viewers will experience buffering."
I can’t understand why it happens. Because I’ve a good ISP, and over 30 mbps inet to YT services within 90ms latency to them.
YouTube is not receiving enough video to maintain smooth streaming. As
such, viewers will experience buffering.Your encoder is sending data faster than realtime (multipleseconds of
video each second). You must rate limit your livevideo upload to
approximately 1 second of video each second.The stream’s current bitrate (5730.00 Kbps) is lower than the
recommended bitrate. We recommend that you use a stream bitrate of
4500 Kbps. -
No Audio when streaming to Youtube from ffmpeg
11 février 2019, par Sindre SvendbySo I’m not able to get sound to youtube when streaming with ffmpeg.
The command I try to run ;
ffmpeg \
-f v4l2 \
-vcodec h264 \
-video_size 864x480 \
-r 24 \
-i /dev/video1 \
-f alsa \
-thread_queue_size 1024 \
-ac 2 \
-i plughw:CARD=C920,DEV=0 \
-c:a aac \
-filter:a "volume=1.5" \
-b:a 128k \
-ar 44100 \
-vcodec copy \
-b:v 2000k \
-r 24 \
-g 48 \
-x264opts no-scenecut \
-bufsize 4096k \
-maxrate 2048k \
-f flv \
rtmp://a.rtmp.youtube.com/live2/STREAM_KODEif I switch out the rmtp stream, with a file, like test.flv.
And then I try to watch this with VLC I do get sound.If I check the audio codec in VLC I do see that the codec is aac.
And as far as I can see from their help pages it is aac that is the correct audio codec to send in.I’m not sure how to continue debug this issue, and ideas on this would be great.