Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11061)

  • как сделать 8 d музыку -> ffmpeg [closed]

    3 janvier 2023, par имя фамилия

    Всех приветствую, подскажите как через ffmpeg создать трек 8D
8D музыка это - метод постобработки аудиозаписи, когда диджеи берут уже существующий трек и микшируют его, создавая эффект движения звука вокруг слушателя.
По сути, 8D-аудио эмулирует звучание surround-формата Ambisonics. Последний подразумевает, что слушатель находится в центре «акустической сферы», по краям которой расставлены источники звука. (на одном форуме спросил что такое 8D)

    


    Писал на форуме, там не знаю решения, пробовал найти в открытых источниках, но видимо таким вопросом не задавались

    


  • Using batch, how would you iterate through an array that you don't know how many values it may contain to run a function on each individual variable

    10 mai 2017, par Jay1995

    I have a batch file creating an array of variables it gets from a textfile, as follows :

    for /f "skip=1 tokens=9 delims= " %%a in (%findfile%) do set "_%%a=yes"
    set count = 0
    for /f "tokens=1* delims==#" %%b in ('set _') do (
       set /a count+=1
       set x=%%b
       set location[!count!]=!x:~1!
    )
    set %location%

    I’m trying to get each variable from the array to be looped into a function individually, but have no idea how to do it !!

    The location array storing all the variables has to be called into a for loop and the function I’m trying to get it to loop into is an FFMPEG function :

    for %%i in (%location%\*.mp4) do (if not exist "%%~ni\" MD "%%~ni"

       ffmpeg -i "%%i" -vframes 1 -f image2 -start_number 0
       "%%~ni\%%~ni_Summary_%%3d.jpeg"

    )

    All HELP would be greatly appreciated

  • What is the most efficient way to convert wav audio string to an ogg file without writing it to disk ?

    1er janvier 2023, par Saurabh Kumar Karn

    My final objective is to use TTS to get some Indic text converted into audio and pass that audio to a messaging system that accepts mp3 and ogg. Ogg is preferred.

    


    I am on Ubuntu and my flow for getting audio string is something like this.

    


      

    1. Text in Indic language is passed to an API
    2. 


    3. API returns a json with a key value called audioContent. audioString = response.json()['audio'][0]['audioContent']
    4. 


    5. The decoded string is arrived by using this decode_string = base64.b64decode(dat)
    6. 


    


    I am currently converting it to mp3 and as you can see I am writing the wave file first and then converting it into an mp3.

    


    wav_file = open("output.wav", "wb")
decode_string = base64.b64decode(audioString)
wav_file.write(decode_string)

# Convert this to mp3 file
print('mp3file')
song = AudioSegment.from_wav("output.wav")
song.export("temp.mp3", format="mp3")


    


    Is there a way to convert audioString directly to ogg file without doing the io ?

    


    I've tried torchaudio and pyffmpeg to load audioString and do the conversion but it doesn't seem to be working.