
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (75)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Les images
15 mai 2013 -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)
Sur d’autres sites (13208)
-
How to send output stream from ffmpeg into a servlet
12 mai 2016, par Antonio MeleI am trying to get the video stream from an ip camera in my network and redirect it to a servlet.
Using this command to get the video and redirect the output to standard output
avconv -f mjpeg -y -i 'http://USER:PASSWORD@192.168.1.5/video.cgi' -r 3 -loglevel 16 -c:v mjpeg -an -qscale 10 -f mp4 -
Then I would like to call this from a java servlet using ProcessBuilder and sending the streaming to servlet output. So when I will open it from the browser I will get the video streaming.
I am trying to do this to be able to encode the video as I prefer and to be able to call my web server from Internet to access any camera in my network and avoid to have a port forwarding or nat for every camera.
If you have any suggestions for other solutions to expose my camera outside my local network having only my public ip (without having to configure my router) are well accepted :)
thank you
-
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.


-
Evolution #4552 : Appliquer tout le temps la classe demandée à lien_ou_expose
17 septembre 2020Ça commencerait à faire beaucoup de params ça monsieur (8), surtout que 99% du temps ça serait pour mettre la même chose que dans le 4ème. Moi je m’en souviendrais jamais :p
Je me dis qu’à ce compte là, tant qu’à faire ça serait bien de pouvoir aussi préciser la classe signifiant l’exposition (le "on").
Et si le 4ème param - qui concerne les classes et que les gens connaissent déjà - pouvait optionnellement accepter un tableau associatif où on pourrait préciser toutes les classes ?
Exemple si on veut obtenir un truc BEM réglo (b_b cache toi les yeux !) :#ARRAY lien, item, strong, item, expose, item_expose,