
Recherche avancée
Autres articles (91)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (6460)
-
Get composition time C++
13 novembre 2019, par AndreaI made my own rtmp server using libav and ffmpeg. I receive as input either an flv file or an rtmp streaming "containing" an flv file.
Since I manipulate the flv file and the relative composition time of each frame, I would like to know if there is a way to get this composition time.
I thought that given my AVPacket, I could analyze the raw buffer in order to extract the right information since I know that the flv header is 11 bytes and then in the next 16 bytes I should find the composition time.
But it doesn’t work.This is a rough example of code :
AVPacket pkt;
AVFormatContext *ifmt_ctx
while(true)
{
AVStream *in_stream, *out_stream;
ret = av_read_frame(ifmt_ctx, &pkt);
//get the composite time
} -
FFMPEG : Recording a video stream to disk real-time
31 mars 2022, par Евгений ФедоровI made a video recording with ffmpeg


var inputArgs = string.Format(CultureInfo.InvariantCulture, "-framerate {0} -f rawvideo -pix_fmt {3} -video_size {1}x{2} -i -", VideoFPS, VideoXRes, VideoYRes, VideoPXLFormat);

 var outputArgs = string.Format(CultureInfo.InvariantCulture, "-vcodec mpeg4 -crf {2} -pix_fmt yuv420p -preset {3} -shortest -r {1} \"{0}\"", outputPath, VideoFPS, VideoCRFValue, CompressionRate);

 var ffmpegProcess = new Process
 {
 StartInfo =
 {
 FileName = ffmpegPath,
 Arguments = $"{inputArgs} {outputArgs}",
 UseShellExecute = false,
 CreateNoWindow = true,
 RedirectStandardInput = true
 }
 };

 ffmpegProcess .Start();
 var VideoRecordingFFmpegInput = VideoRecordingFFmpegProcces.StandardInput.BaseStream;



Now I write data bytes from the image into the stream from time to time


VideoRecordingFFmpegInput.Write(framesByteArray, 0, sizeOfpack);



When I finished recording the frames :


VideoRecordingFFmpegInput.Flush();
 VideoRecordingFFmpegInput.Close();
 ffmpegProcess.WaitForExit();



Everything works fine, and it creates the file I want.


When the process starts, it creates a file that has a very small size



And during the recording of image bytes in the video stream - this size does not change (Probably it is written to RAM ?)


But as soon as the ffmpeg process finishes - flush / close
the file size becomes normal.




The problem is that if I record for several hours it can cause an OutOfMemory exception


Is there any way to have the frames record and immediately increase the file size ? (Without infinitely filling RAM ?)


-
Anomalie #2987 (Fermé) : Liste a puce dans tableau : erreur 500 dans logfile + PHP has encountered...
3 mai 2013, par cedric -voir #2934 : c’est un problème lié au module PCRE de PHP 5.2...