
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (38)
-
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
Installation en mode standalone
4 février 2011, parL’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
[mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (6419)
-
Is it possible to read streaming response body using fiber ?
2 novembre 2023, par MHMI have a streaming server(ffmpeg) that send data through HTTP.
I sent the stream to my fiber backend but I only have access to
c.body()
when the stream server(ffmpeg) is terminated.
Is there any way to capture streamed data in real-time in fiber ?

here is my sample code :


package main

import "github.com/gofiber/fiber/v2"

func main() {
 app := fiber.New()
 
app.Post("/", func(c *fiber.Ctx) error {
 golang // real-time reading streamed data in c.body() and send it to fiber websocket
 return c.SendStatus(200)

}



-
Get the actual duration of a sound file in C++ (libavformat)
1er avril 2017, par user3734670I want to get the duration of a sound file in my C++ application. I want to support a lot of sound codecs, so I decided to use libavformat.
I get the duration, but I get also a notification that the duration can be inaccurate. In another Stackoverflow question (How to get the real, actual duration of an MP3 file (VBR or CBR) server-side) it was mentioned that you can decode the file completely to get the actual duration. How can I this archive with libavformat ?
My code to get the inaccurate duration :
av_register_all();
AVFormatContext* pFormatCtx = avformat_alloc_context();
avformat_open_input(&pFormatCtx, audio_file, NULL, NULL);
avformat_find_stream_info(pFormatCtx, 0);
av_dump_format(pFormatCtx, 0, audio_file, 0);
int64_t duration = pFormatCtx->duration;
std::cout << ceil((double) duration / AV_TIME_BASE) << std::endl;
avformat_close_input(&pFormatCtx);
avformat_free_context(pFormatCtx); -
FFmpeg How to write video to a file
9 décembre 2014, par NoviceAndNoviceWhat i want is
1. Get video packet from stream source
2. Decode it
3. And write that decoded data as video file(avi, mpeg etc)I can able to get video Packets from a file (as AVPacket) and also can decode and save as an image.(raw)( FFmpeg tutorials show how to do it).
But i can not ( do not know ) write that video data to a file(other) which can be played by media players(such as VLC).Best Wishes
Ps : Real code samples will be great if possible...
Now i make test with av_interleaved_write but i got strange error "non monotone timestamps" ( i have no control over pts values of media source )
Some Extra Info
In FFmpeg I have to
- Read media packets from media source ( it may be real file(.avi,mov) or even rtsp server).
- Then write those media packets to a real file (physical .avi, .mov etc file)
I need reader and writer. I can read the media source file ( even encode packets according to given format). But i can not write to file...(which any player can play)
And some pseudoCode
File myFile("MyTestFile.avi");
while ( source ->hasVideoPackets)
{
packet = source->GetNextVideoPacket();
Frame decodedFrame = Decode(packet);
VideoPacket encodedPacket = Encode( decodedFrame);
myFile.WriteFile(encodedPacket);
}Or Just write the original file without encode decode
File myFile("MyTestFile.avi");
while ( source ->hasVideoPackets)
{
packet = source->GetNextVideoPacket();
myFile.WriteFile(packet);
}Then
I can able to open MyTest.avi file with a player.