
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (109)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (12944)
-
Force x264 to encode all frames relative to the first (IDR) frame
12 décembre 2019, par cloudravenI want to generate a h.264 stream in which P-frames are using references exclusively using a long-term reference to the first frame (an IDR frame). This would also require the first frame to be an IDR frame.



This is an academic experiment to understand the encoding behavior of long-term references and the consequences of forcing frames to refer to a specific (single) frame rather than several.



It would be great if I could do this from the command line, but if not possible I am open to modifying x264 for this purpose.



Could anyone point me to where in the source code it is determined :



- 

- the reference frame / macroblock / partition for the current macroblock
- changes made to the short term, long term reference frame list
- whether to use a short term reference frame or a long term reference frame.









Using another encoder like nvenc is also acceptable.


-
Force x264 to encode all frames relative to the first (IDR) frame
12 décembre 2019, par cloudravenI want to generate a h.264 stream in which P-frames are using references exclusively using a long-term reference to the first frame (an IDR frame). This would also require the first frame to be an IDR frame.



This is an academic experiment to understand the encoding behavior of long-term references and the consequences of forcing frames to refer to a specific (single) frame rather than several.



It would be great if I could do this from the command line, but if not possible I am open to modifying x264 for this purpose.



Could anyone point me to where in the source code it is determined :



- 

- the reference frame / macroblock / partition for the current macroblock
- changes made to the short term, long term reference frame list
- whether to use a short term reference frame or a long term reference frame.









Using another encoder like nvenc is also acceptable.


-
Discord.py Musicbot Skip Command PermissionError
28 mai 2021, par VentiorSo as my first "major" project after starting to program, I've decided to make a Discord Bot. The problem here is my "skip" command. Somehow it works but I can't understand how.


def play_next(ctx):
if len(songs_list) >= 2:
 print(songs_list,"before del")
 del songs_list[0]
 print(songs_list[0], "new song")

 
 try:
 if os.path.isfile("song.mp3"):
 os.remove("song.mp3")
 except PermissionError:
 print("permissionerror")
 with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([songs_list[0]])
 for file in os.listdir("./"):
 if file.endswith(".mp3"):
 os.rename(file, "song.mp3")
 voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: play_next(ctx))
 voice.isplaying()



And the skip command :


@client.command(pass_context=True)
async def skip(ctx):
voice.stop()
voice.skip()
try:
 os.remove("song.mp3")
except:
 pass
play_next(ctx)



I know it isn't the best way of handling that, but I am just beginning to code and this is how I got it to work.
In the skip command, when I didn't use voice.skip() I would have gotten a PermissionError printed out in the console.


With it included, I instead get the message "VoiceClient" object has no attribute "skip", but everything works in order so far. Can someone explain why ?
I mean if skip doesn't exist, then why does it work ? And how does it bypass the PermissionError ?