
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (63)
-
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...) -
Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur
8 février 2011, parLa visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
Configuration de la boite multimédia
Dès (...) -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)
Sur d’autres sites (7242)
-
Convert a Video that it can show with preview in telegram via bot api
7 avril 2016, par siavashgI Have a video and i want to send it with telegram bot api by
pytelegrambotapi
library so i write this code for send video by bot :import telebot
bot = telebot.TeleBot("TOKEN")
@bot.message_handler(commands=['start'])
def send_welcome(message):
video = open('1.mp4', 'rb')
bot.send_video(message.chat.id,video, duration=)
bot.polling(none_stop=True)but I send a video and it has been sent successfully but telegram show black screen for my video like this picture
Telegram With Black Scrreen preview of video.
I think this is about the encoding . I found this site for encoding and it said the videos in telegram have specific format.Conditions to trim a video
- Audio codec = mp4a
- Video codec = supported by the device
- Any side of the video more than 640px
- Or if a side is less than 640px but video codec is h264
Conditions to compress a video
- Any side of the video over 640px
- Audio codec = mp4a
- A video encoder different than :
OMX.google.h264.encoder
OMX.ST.VFM.H264Enc
OMX.Exynos.avc.enc
OMX.MARVELL.VIDEO.HW.CODA7542ENCODER
OMX.MARVELL.VIDEO.H264ENCODER
How can I send Video with blur image preview of that in telegram with telegram bot api ?
-
Send video as Buffer to Telegram
28 décembre 2022, par AMIR NYNHello to all !
I use telegraf package for my telegram bot. I have a simple command that, when sent to my Telegram bot, combines a YouTube video with its separate audio file through the ffmpeg package in child_process channels and dumps the output into an array of buffers. When the process is finished, the final file is sent to Telegram through the sendVideo method :


const tracker = {
 start: Date.now(),
 audio: {downloaded: 0, total: Infinity},
 video: {downloaded: 0, total: Infinity},
 };

 const video = ytdl(id, {filter: 'videoonly', quality: String(itag)})
 .on('progress', (_: any, downloaded: any, total: any) => {
 tracker.video = {downloaded, total};
 });
 const audio = ytdl(id, {filter: 'audioonly', quality: 'highestaudio'})
 .on('progress', (_: any, downloaded: any, total: any) => {
 tracker.audio = {downloaded, total};
 });

 const ffmpegProcess = cp.spawn(ffmpeg, [
 // Remove ffmpeg's console spamming
 '-loglevel', '0', '-hide_banner',
 '-i', 'pipe:3',
 '-i', 'pipe:4',
 '-c:v', 'libx265', '-x265-params', 'log-level=0',
 '-c:a', 'flac',
 // Define output container
 '-f', 'matroska', 'pipe:5',
 ], {
 windowsHide: true,
 stdio: [
 /* Standard: stdin, stdout, stderr */
 'inherit', 'inherit', 'inherit',
 /* Custom: pipe:3, pipe:4, pipe:5 */
 'pipe', 'pipe', 'pipe',
 ],
 });

 let chunks: any = [], fileSize = 0;

 audio.pipe(ffmpegProcess.stdio[3]);
 video.pipe(ffmpegProcess.stdio[4]);

 ffmpegProcess.stdio[5].on('data', (chunk: string | any[]) => {

 chunks.push(chunk);
 fileSize += chunk.length;

 }).on('end', () => {

 const buff = Buffer.concat(chunks);

 const { Input } = require('telegraf'); 

 await ctx.sendVideo(
 Input.fromBuffer(buff), 'File name'
 );

 });

 }



My problem is that when the file is sent, the video time is not available until it is completely downloaded and is 0, and inside the Telegram web version, the file is not downloaded completely and it gets stuck on "Buffering..." (on Android, without The problem is downloaded, but it still has no time). I think this problem is due to incomplete metadata in Buffer. Can anyone help me ?


-
ffmpeg fails to broadcast rtmp telegram video
11 janvier 2023, par AdelinaIbragimovaI am trying to transfer an mp4 file to Telegram RTMP live using the following command :


$cmd = "ffmpeg -i video.mp4 -c:v libx264 -c:a aac -b:v 2000k -f flv " . $url . $key . "";
exec($cmd, $output, $return);



$url and $key values obtained using MadelineProto for the channel. No picture or sound appears.


Creating a broadcast in the channel and receiving rtmp data accordingly. Everything is clear here


$Updates = $MadelineProto->phone->createGroupCall(peer: $channel, title: $title);
$phone_GroupCallStreamRtmpUrl = $MadelineProto->phone->getGroupCallStreamRtmpUrl(peer: $channel, revoke: 1 );
$url = $phone_GroupCallStreamRtmpUrl['url'];
$key = $phone_GroupCallStreamRtmpUrl['key'];



Perhaps something needs to be specified in the ffmpeg values. Tell me please