Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (41)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire 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, par

    La 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, par

    MediaSPIP 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 KaMaL

    I 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 TheSHEEEP

    I 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.html

    As 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 Daemitrous

    This 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&#xA;from pyttsx3 import init  # TTS Audio converter&#xA;&#xA;import discord&#xA;&#xA;&#xA;ffmpeg_path = r"C:\Users\evand\Documents\Misc\ffmpeg\bin\ffmpeg.exe"&#xA;&#xA;audio_path = r"C:\Users\evand\Documents\Misc\Discord\suhj_bot\Test_mp3\AudioFileForDiscord.mp3"&#xA;&#xA;&#xA;engine = init() # Initializes speach TTS engine with "sapi5" configuration&#xA;&#xA;&#xA;def TTS_save(text, audio=engine): # converts and saves the user&#x27;s text into a TTS audio file ".mp3"&#xA;&#xA;    audio.save_to_file(text, audio_path)&#xA;&#xA;    audio.runAndWait()&#xA;&#xA;&#xA;class Voice(commands.Cog):&#xA;&#xA;    def __init__(self, bot):&#xA;&#xA;        self.bot = bot&#xA;&#xA;    @commands.command(&#xA;&#xA;        name="v",&#xA;        description="The voice command:\n\ng.v <content>"&#xA;&#xA;    )&#xA;&#xA;    async def voice_command(self, ctx, *, args):&#xA;&#xA;        VoiceClient = ctx.voice_client&#xA;&#xA;&#xA;        if VoiceClient is None:&#xA;&#xA;            VoiceClient = await ctx.author.voice.channel.connect() # bot joins voice-channel of user&#xA;&#xA;&#xA;        TTS_save(args) # creates TTS audio file&#xA;&#xA;        VoiceClient.play(discord.FFmpegOpusAudio(audio_path, executable=ffmpeg_path)) # plays audio file through discord bot (.mp3, ffmpeg.exe)&#xA;&#xA;        return&#xA;&#xA;&#xA;def setup(bot):&#xA;&#xA;    bot.add_cog(Voice(bot))&#xA;</content>

    &#xA;

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

    &#xA;