Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (76)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • 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 (...)

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

Sur d’autres sites (11263)

  • Concatenate Movies from Python List using MoviePy or FFmpeg

    24 septembre 2020, par Python_Learner_DK

    I have about 10,000 short videos that I am trying to make several longer videos from.

    



    I've created these videos using MoviePy, but keep getting memory errors when trying to concatenate them back together.

    



    In my code I have an outer loop going through each letter of the alphabet and getting the files that start with that letter.

    



    From the returned video clips I get the length and and strip off the last 3.5 seconds (outro_clip_duration) of the video, and then add it into a Python list clips.

    



    Where I'm stuck is I then want to take this list of trimmed videos and make one long long video from it.

    



    I have all the files, I just need to trim them, concatenate them, and then export them as one.

    



    I've tried many times with different MoviePy attempts and keep getting MemoryErrors so I gave up and took a swing at an ffmpeg solution seen here but it is not working out either.

    



    The latest version of the main part of my code is here :

    



    clips = []
outro_clip = mpy.VideoFileClip('Logo_Intro_w_Stinger_Large.mp4')
outro_clip_duration = outro_clip.duration
for def_image in vid_list_long:
    video_item = mpy.VideoFileClip('F:/sm_My_Video/sm_%s.mp4' % def_image)
    video_item_duration = video_item.duration
    clips.append(ffmpeg_extract_subclip(video_item,0,(video_item_duration - outro_clip_duration), targetname = def_image))

# #Append the outro_clip to the end 
clips.append(mpy.VideoFileClip('Logo_Intro_w_Stinger_Large.mp4',target_resolution = (h,w),audio=True))
slided_clips = [CompositeVideoClip([clip.fx( transfx.crossfadein, transition_seconds)]) for clip in clips]
#added 'method = compose' NEED TO TEST - supposedly removes the weird glitches.
c = concatenate_videoclips(slided_clips, method = 'compose')
c.write_videofile('F:/Extended_Play/%s_Extended_Play_vid.mp4' % letter,fps=23.98)


    



    My PC is Windows 10 and I have 32 GB of RAM running Anaconda and Python 3.

    


  • Audio output from MemoryStream using TTS to Discord Bot

    26 mars 2019, par Casval Zem Daikun

    I’m writing a Discord Bot in VS2017 using Discord.Net wrapper. I’ve gotten everything to work (parsing/sending text commands, joining voice channels) except the main goal : Using TTS audio output stream in a voice channel.

    Basically, I’m using SpeechSynthesizer to create the MemoryStream and write that to the Discord bot. The problem is, there’s no audio. At all. I’ve been following several other answers as well as the documentation on the Discord.Net site and can’t seem to find a way to get this to work. Audio streaming via url/file is well documented but not this.

    var ffmpeg = CreateProcess("");
               var output = ffmpeg.StandardOutput.BaseStream;
               IAudioClient client;
               ConnectedChannels.TryGetValue(guild.Id, out client);
               var discord = client.CreatePCMStream(AudioApplication.Mixed);


               await output.CopyToAsync(discord);
               await discord.FlushAsync();

    Above is the sample I’ve been using which is sourced from a file via ffmpeg. I see that it’s just copying over a stream, so I’ve attempted the following in various methods :

    IAudioClient client;
               ConnectedChannels.TryGetValue(guild.Id, out client);
               var discord = client.CreatePCMStream(AudioApplication.Mixed);

               var synth = new SpeechSynthesizer();
               var stream = new MemoryStream();
               var synthFormat = new SpeechAudioFormatInfo(
                   EncodingFormat.Pcm,
                   8000,
                   16,
                   1,
                   16000,
                   2,
                   null);

               synth.SetOutputToAudioStream(stream, synthFormat);
               synth.Speak("this is a test");

               await stream.CopyToAsync(discord);
               await discord.FlushAsync();

    I’ve tried changing around the SpeechAudioFormatInfo properties, changing the output on the SpeechSynthesizer, completely removing the async calls, pretty much everything that I could think of with no result.

    I realize that I could just output sound to a dummy audio device and have another account/bot pick up on that but that was not the goal of this exercise.
    I also realize that I could just write the output to a file and just stream it but that would increase the processing time. These TTS instructions are small, never over 5 words, and need to be somewhat quick to the point since they’re supposed to be "callouts".

    Lastly, I couldn’t exactly find a way to make this work with ffmpeg either. Everything I’ve read seems to indicate the need for a physical source, not just a memory stream.

    So, I’m at wit’s end. Any assistance would be appreciated.

  • Bulk converting wav files to 16-bit with ffmpeg in batch from unix command

    10 décembre 2018, par dorien

    I have a folder consisting of many subfolders, each with other subfolders and therein wav files.

    I want to convert all of the files like this :

    ffmpeg -i BmBmGG-BmBmBmBm.wav -acodec pcm_s16le -ar 44100 BmBmGG-BmBmBmBm.wav

    BUT, I want the directory structures and names preserved. Either overwritten or in a parallel directory.

    The above command words fine when the output file has a different name, however, with the same name I get an error :

    Multiple frames in a packet from stream 0
    [pcm_s24le @ 0x1538ac0] Invalid PCM packet, data has size 4 but at least a size of 6 was expected
    Error while decoding stream #0:0: Invalid data found when processing input

    I first tried bulk converting like this :

    ffmpeg -i */*/*.wav -acodec pcm_s16le -ar 44100 */*/*.wav

    Unfortunately, this gives the same problem. How can I store them in a parallel directory ? Say new///*.wav ?