
Recherche avancée
Autres articles (79)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (6444)
-
FFmpeg extracting current frame time stamp
23 juillet 2015, par 2diI need to extract frames in certain interval of the video, (eg from 40 sec to 50 sec).
Working in c++.
First I am getting position where I need to start readingstatic double t = 10 ;//time in seconds
int64_t timestamp = t * AV_TIME_BASE; //destination time
av_seek_frame( pFormatContext , -1 , timestamp + pFormatContext->start_time ,AVSEEK_FLAG_BACKWARD );Then I using av_read_frame to get all sequential frames.
The problem that I have is that I dont know when to stop. How can I check that I reached my end interval (eg 50 sec) ?Thanks.
-
How to get 4 video frames on the specified time [on hold]
28 décembre 2015, par PlushI want to receive 4 video frames of the JPEG format, with the specified time.
How it is possible to execute request in one command ? -
FFmpeg C API HLS real time timestamps
7 septembre 2022, par RobinI'm using the FFmpeg C API in C++ to read from a HLS stream. I need to know the real time of each AVPacket. I can extract the pts using
AVPacket::pts
but that is relative to the start of the stream.

This is how the
.m3u8
file looks :

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0

#EXT-X-PROGRAM-DATE-TIME:2022-09-07T14:01:56.612+02:00
#EXTINF:10.322561783,
1662552116.ts
#EXT-X-PROGRAM-DATE-TIME:2022-09-07T14:02:06.935+02:00
#EXTINF:10.320075936,
1662552126.ts

...



The
.m3u8
file contains an accurate EXT-X-PROGRAM-DATE-TIME, but how can I extract the one of the currently playing segment ?

Alternatively, the file name of each
.ts
file is the unix timestamp in seconds. Can I extract that somehow ?

If none of those are possibly, is it possible to control the exact number of preloaded segments ? I know the (approximate) segment length is 10 seconds so I could just do the following when receiving the first AVPacket :


start_time = current_time - segment_count * segment_length`
start_pts = first_av_packet.pts



And then to get the time of a later AVPacket, I could do :


packet_time = start_time + new_packet.pts - start_pts



This wouldn't give the same accuracy since the segments are not exactly the same length, but that is okay.