
Recherche avancée
Autres articles (59)
-
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 ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (6043)
-
Small discord bot with a set of working music commands, about 6 days ago the play function completely stopped functioning (more below)
24 février 2021, par TheColoradoKidIt is a small discord python bot for my server with various features, which had included music commands until they stopped out of the blue without showing any error for the problem.
It uses FFMpeg, and youtubeDl along with pytube to gather the song and store it locally to play it, I have pip updated all of these and they are definitely on the current versions as I have made sure of this online.
Any help or insight anyone could provide would be greatly appreciated. I'm sorry if the code is convoluted in the way it's written I'm still pretty new to coding and this is one of my first proper larger projects.


If you need any information I'm happy to give what I can to help.


Here is the code for the play command :


@client.command()
async def play(ctx, *args):
 global queu
 #global autom
 if not args:
 voice = get(client.voice_clients, guild=ctx.guild)
 if not voice.is_playing():
 server = ctx.message.guild
 voice_channel = server.voice_client
 if queu:
 async with ctx.typing():
 player = await YTDLSource.from_url(queu[0], loop=client.loop)
 voice_channel.play(player, after=lambda e: print('Player error: %s' % e) if e else None)

 await ctx.send('**Now playing:** {}'.format(player.title))
 del(queu[0])
 # while autom == True:
 # try:
 # a = client.get_command('auto')
 # await ctx.invoke(a)
 # except:
 # print('')
 elif not queu:
 await ctx.send("You can't play if there isn't anything in the queue\nIf auto mode was on it has now been disabled, to use it gain please add to the queue and run ``;auto on``")
 autom = False
 if args:
 global gueu
 search_keywords = ""
 print(args)
 for word in args:
 search_keywords += word
 search_keywords += '+'
 link = "https://www.youtube.com/results?search_query="
 link += search_keywords
 #print(link)
 html = urllib.request.urlopen(link)
 video_ids = re.findall(r"watch\?v=(\S{11})", html.read().decode())
 url = ("https://www.youtube.com/watch?v=" + video_ids[0])
 #print(url)
 queu.append(url)
 #print(queu)
 await ctx.send("``{}`` added to queue!\n If the song doesn't start please either let the current song end and run ``;play``/``;next`` again or run ``;next`` to play now".format(url))
 try:
 p = client.get_command('play')
 await ctx.invoke(p)
 except:
 print('failed')



-
Error in Splitting Educational Videos into Segments Using Python (ffmpeg issue) [closed]
28 décembre 2024, par Yahia Mohamed HanbalI created a Python project to split long educational videos into smaller segments, each focused on a single question. The program uses OCR to detect text on video frames, identifies the word "Question," extracts the number following it, and splits the video whenever the number increases.


here is the video i am tring to split ((video))


Here’s an example of the program’s output :


Video loaded: 14071 frames at 60 FPS, duration: 234.52s 
Frame 480, Time 8.00s, Question: 6 
... 
Frame 12360, Time 206.00s, Question: 7 
Creating segment 1: 8.00s to 206.00s 
Error: module 'ffmpeg' has no attribute 'Error'



I’ve shared the full code in a GitHub repository for reference : Automated Video Scene Cutting.


What the Program Does


- 

- Input : A long educational video.
- Processing :

- 

- Detects text in each frame using OCR.
- Searches for the word "Question" followed by a number.
- Monitors when the number increases to identify segment boundaries.








- Output : Creates video segments corresponding to individual questions.








The Problem


The program detects the questions and timestamps correctly, but when it tries to create the segments, I encounter the following error :


Error: module 'ffmpeg' has no attribute 'Error'



What I’ve Tried


- 

- Verified the
ffmpeg-python
library is installed (pip show ffmpeg-python
confirms the installation). - Ensured the
ffmpeg
binary is accessible from the command line. - Reviewed the library documentation to ensure the correct usage of
ffmpeg
. - Tested with different video files to rule out input-specific issues.










Environment Details


- 

- OS : Windows 11
- Python Version : 3.9.13
- Key Libraries :
ffmpeg-python








If anyone has insights into resolving this issue or suggestions for alternative approaches to handle this use case, I’d greatly appreciate your help.


Thank you !


-
Anomalie #4468 : CSS colonne gauche du privé
4 avril 2020, par RastaPopoulos ♥Je ne tempère rien du tout : si c’est un lien c’est une faute importante, et absolument aucune suppression dans la base ne doit se faire avec un lien HTML, balise . Donc c’est un bug dans le code du noyau de SPIP, et donc sans rapport avec ce ticket.
Une fois que les bonnes balises sont utilisées suivant les comportements voulus (= un lien pour amener quelque part, et un bouton pour modifier la base), et bien je le répète, les liens et les boutons ne devraient pas être confondues, ce sont des actions totalement différentes. Quand un utilisateur a la vision d’un lien, il sait que ça va juste "changer sa vue", soit en l’amenant sur une autre page, soit en rechargeant un morceau de la page en cours (ajax ou ancre peu importe). Quand un utilisateur voit un bouton, il sait que ça va modifier quelque chose, ça va faire une action, ce n’est pas juste un changement de vue.
Les deux seules exceptions les plus courantes (dans tout il y a des exceptions, mais ça reste rare, ça ne veut pas dire qu’il n’y a pas une règle de base) :
- faire qu’un lien ait l’apparence d’un bouton si c’est un lien qui amène à une vue qui permet de modifier des choses, donc c’est comme si ce lien était la première étape de l’action (mais c’est bien un lien qui amène à changer de vue, ce n’est surtout pas un lien qui modifie directement quelque chose !)
- faire qu’un bouton ait l’apparence d’un lien, pour annuler une action, car il s’agit effectivement d’une non-action, de revenir au départ, à la vue de départMais tout cela implique bien que les liens et boutons doivent absolument continuer d’être différenciés (colonne de gauche ou pas, n’importe où), et ces deux exceptions sont rares et réfléchies.