
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (102)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (7545)
-
Revision 2740507142 : Merge "[svc] 1. Add two pass RC options in vp9_spatial_scalable_encoder. 2. Add
7 mars 2014, par Minghai ShangChanged Paths :
Modify /examples.mk
Merge "[svc] 1. Add two pass RC options in vp9_spatial_scalable_encoder.
2. Add read/write for RC stats file The two pass RC for svc does not work yet.
This is just the first step. We need further development to make it working.
Change-Id : I8ef0e177dff0b5ed3c97a916beea5123717cc6f2" -
Reading h264 or h265 stream with ffmpeg/OpenCV : Which is faster ?
25 novembre 2020, par suckssI'm using OpenCV with ffmpeg support to read a RTSP stream coming from an IP camera and then to write the frames to a video. The problem is that the frame size is 2816x2816 at 20 fps i.e. there's a lot of data coming in.


I noticed that there was a significant delay in the stream, so I set the buffer size of the
cv::VideoCapture
object to 1, because I thought that the frames might just get stuck in the buffer instead of being grabbed and processed. This however just caused for frames to be dropped instead.

My next move was to experiment a bit with the frame size/fps and the encoding of the video that I'm writing. All of those things helped to improve the situation, but in the long run I still have to use a frame size of 2816x2816 and support up to 20 fps, so I can't set it lower sadly.


That's where my question comes in : given the fact that the camera stream is going to be either h264 or h265, which one would be read faster by the
cv::VideoCapture
object ? And how should I encode the video I'm writing in order to minimize the time spent decoding/encoding frames ?

That's the code I'm using for reference :


using namespace cv;
int main(int argc, char** argv)
{
 VideoCapture cap;
 cap.set(CAP_PROP_BUFFERSIZE, 1); // internal buffer will now store only 1 frames

 if (!cap.open("rtsp://admin:admin@1.1.1.1:554/stream")) {
 return -1;
 }
 VideoWriter videoWr;
 Mat frame;
 cap >> frame;
 //int x264 = cv::VideoWriter::fourcc('x', '2', '6', '4'); //I was trying different options
 int x264 = cv::VideoWriter::fourcc('M', 'J', 'P', 'G');
 videoWr = cv::VideoWriter("test_video.avi", 0, 0, 20, frame.size(), true);

 namedWindow("test", WINDOW_NORMAL);
 cv::resizeWindow("test", 1024, 768);
 
 for (;;)
 {
 cap >> frame;
 if (frame.empty()) break; // end of video stream
 
 imshow("test", frame);
 if (waitKey(10) == 27) break; 
 videoWr << frame;
 
 }

 return 0;
}



-
How to get an accurate duration of any audio file quickly ?
27 septembre 2023, par Steve MThere are many audio files in the wild encoded with VBR which don't have an accurate duration tag, and command line FFMpeg would output the following :





Estimating duration from bitrate, this may be inaccurate





(and indeed, it is)



Using
libav
, we can see that this is tested with thehas_duration()
function fromlibavformat/utils.c



I have an audio player that needs to get an accurate duration information using
libav
. I've tried completely decoding the file and counting the total number of samples decoded which is the usual recommendation (and is accurate), but this can take 10+ seconds on a 60 minute audio file, which is not acceptable.


I notice that there are some closed source audio decoders and music playing apps which can get an accurate duration for these files immediately. There must be some cheap way of determining the accurate duration ? Perhaps a snippet or high-level description would help me out.