Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (66)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (8983)

  • Tell users about supported audio samplerates in mmf.

    19 mars 2012, par Carl Eugen Hoyos

    Tell users about supported audio samplerates in mmf.

  • How to make a bot available to multiple users on blocking operations ? python, aiogram, pytube, ffmpeg

    27 février 2023, par Tony Reznik

    I'm trying to deal with multithreading and asynchrony, but I can't figure out how to deal with this situation.

    


    There is a telegram bot that downloads videos from YouTube and cuts only the first minute of the video into a separate file. Pytube and ffmpeg are used. The second bot user does not receive any response from the bot while the tasks of the first one are running. How to deal with such difficulties ?

    


    import subprocess

from aiogram import Bot, Dispatcher, types
from aiogram.utils import executor
from pytube import YouTube
import time

API_TOKEN = 'tkn'

bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot)

video_folder = 'video/'


@dp.message_handler()
async def start_convert(message: types.Message):
    url = message.text
    yt = YouTube(url)

    await message.reply('accepted')

    video_name = time.strftime("%d-%m-%Y-%H-%M-%S") + '.mp4'

    video = yt.streams.get_highest_resolution()
    video.download(video_folder, filename=video_name)

    await message.reply('downloaded')

    subprocess.call(['ffmpeg', '-hide_banner', '-loglevel', 'error', '-i', f'{video_folder}{video_name}',
                     '-ss', '0', '-c:v', 'libx264', '-c:a', 'aac', '-b:v', '5M', '-to', '60',
                     f'{video_folder}1_min_{video_name}'])

    await message.reply('trimmed')

if __name__ == '__main__':
    executor.start_polling(dp, skip_updates=True)



    


    This is a code template.
In the current form, I want to understand how to implement the task correctly.

    


  • How do I stream remote multiple webcams to multiple users

    29 juin 2016, par Joe Hill

    I need to capture multiple users’ webcams in the browser and then broadcast it to multiple users. This must include an audio and video stream with low and high quality options. Ideally, I would not like to use flash but having flash as a fallback is totally fine.

    When the webcam is broadcast to the users, this must work on as many platforms as possible.