
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (41)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (9553)
-
I want to copy files from one folder to another in my dedicated server
18 mars 2015, par Mr KaMaLI placed files in my root folder and copy when user try to download the files
like/root/filelocation/file.mp3
when user on download page
copy("/root/filelocation/file.mp3","download/file.mp3");
i use this command but it takes too much load time
i have ffmpeg installed in server also
-
Wrong frame order/frame hickup in output video
5 juillet 2012, par TheSHEEEPI am encoding frames from a 3D engine to an mp4 video with sound.
Usually, the video (and input image) size is 640x360. With that size, there is no problem.But when I want to encode a 320x180 video (from input of 320x180), the resulting videos are sometimes(!!) stuttering, jumping back and forth in their frame order. Only the picture data is affected, though, as the sound is normal.
For encoding, I followed this tutorial, so the vital parts for encoding in my functions look like that :
http://dranger.com/ffmpeg/tutorial01.htmlAs I said, this only happens in the small video size, never in the big one.
I also made sure that the frames from the engine always come in in the correct order and are always encoded in the correct order.
The ffmpeg encoding takes place in its own thread, but that shouldn't matter (as it works with bigger video).If I insert a Sleep(10) before encoding each frame, the problem does not appear any more (or very, very rare).
Additional info : I just tried encoding to mpg instead of mp4, and the same thing happened. So the problem is codec independent.
Any ideas what could cause this ?
-
Prevent "guessing mono" when using FFMPEG ?
25 juillet 2020, par DaemitrousThis extention works perfectly fine, I'm just concerned about the message it prints everytime it's called.


The Message when the script is called:


Guessed Channel Layout for Input Stream #0.0 : mono



This is an extention to the discord bot I'm working on using
discord.py
.

Script


from discord.ext import commands
from pyttsx3 import init # TTS Audio converter

import discord


ffmpeg_path = r"C:\Users\evand\Documents\Misc\ffmpeg\bin\ffmpeg.exe"

audio_path = r"C:\Users\evand\Documents\Misc\Discord\suhj_bot\Test_mp3\AudioFileForDiscord.mp3"


engine = init() # Initializes speach TTS engine with "sapi5" configuration


def TTS_save(text, audio=engine): # converts and saves the user's text into a TTS audio file ".mp3"

 audio.save_to_file(text, audio_path)

 audio.runAndWait()


class Voice(commands.Cog):

 def __init__(self, bot):

 self.bot = bot

 @commands.command(

 name="v",
 description="The voice command:\n\ng.v <content>"

 )

 async def voice_command(self, ctx, *, args):

 VoiceClient = ctx.voice_client


 if VoiceClient is None:

 VoiceClient = await ctx.author.voice.channel.connect() # bot joins voice-channel of user


 TTS_save(args) # creates TTS audio file

 VoiceClient.play(discord.FFmpegOpusAudio(audio_path, executable=ffmpeg_path)) # plays audio file through discord bot (.mp3, ffmpeg.exe)

 return


def setup(bot):

 bot.add_cog(Voice(bot))
</content>


Is there any way to prevent the program from guessing mono ? I like to keep my code clean and close to errorness.