
Recherche avancée
Autres articles (31)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (4460)
-
How to make a bot available to multiple users on blocking operations ? python, aiogram, pytube, ffmpeg
27 février 2023, par Tony ReznikI'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 HillI 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.
-
Consume RTSP stream from users browser without converting on the server
19 août 2018, par KazanzI 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 ?