
Recherche avancée
Médias (1)
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (48)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (7384)
-
Web Based Playback of iOS Videos with Orientation Flag
3 mars 2012, par shaneeWe just recently created an iPhone app for one of our system that allows users to upload picture and video content to our services. The last major hitch we are running into is how to handle videos that are uploaded in an orientation other than Horizontal Right. Apparently if your playback system does not account for the orientation flag sent with the video then it will play upside down or sideways.
The correct approach appears to be that the playback system should take the orientation flag into account just prior to playback. This is the way Apple handles it directly on the device as well as through Quicktime.
SO my first hope is that someone is aware of a web based (HTML5 or Flash) player that is capable of rotating a video during playback based on either the video orientation metadata or based on a passed flag (we already have the necessary flag available in the DB if we need to just pass it manually). If you know of any such player then PLEASE SHARE !
If you aren't aware of such a player, then has anyone had any luck rotating their videos using FFMPEG or MEncoder ? We did a few hours of testing last week and weren't able to get any decent results from the two heavy hitters mentioned there.
Failing ALL OF THAT, is it possible to have the iPhone upload a video or image in a specified direction ?
Any of the three will work for me, but I would prefer to do whatever is standard (if one exists).
Any help is much appreciated !
-
avcodec/adts_parser : allow passing a pre allocated AACADTSHeaderInfo to avpriv_adts_h...
23 octobre 2022, par James Almeravcodec/adts_parser : allow passing a pre allocated AACADTSHeaderInfo to avpriv_adts_header_parse()
Code freeing the struct on failure is kept for backwards compatibility, but
should be removed in the next major bump, and the existing lavf user adapted.Signed-off-by : James Almer <jamrial@gmail.com>
-
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 ?