Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (94)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • Consume RTSP stream from users browser without converting on the server

    19 août 2018, par Kazanz

    I have thousands of IP cameras that need to be displayed to various users that are all outputing RTSP streams. Right now I have a server that uses ffpmeg to convert the stream to mpeg video that is then consumed and served over websockets via a node app.

    My problem is that these two processes take up a ridiculous amount of memory. About a half a GB for each camera.

    Is there any way to offload the conversion and reading of the stream to the client’s machine in their browser, or potentially out of it ?

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

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