
Recherche avancée
Autres articles (36)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
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 (4009)
-
wavpack : return 0 instead of samples count from decoding functions
26 mai 2013, par Anton Khirnov -
Merge commit ’68a35473ed423a14731c418939fba7913647979a’
13 novembre 2014, par Michael NiedermayerMerge commit ’68a35473ed423a14731c418939fba7913647979a’
* commit ’68a35473ed423a14731c418939fba7913647979a’ :
4xm : more thorought check for negative index and negative shiftConflicts :
libavcodec/4xm.cMostly not merged, the added checks, check for impossible conditions
for paranoias sake they are replaced by asserts but thats probably overkill
the vlc table does not contain out of range values or holes,
nor does it permit the log2 values to become negative. Whenever a
log2 value reaches 0 the selected table no longer contains an entry to trigger
the case that would decrease it furtherAdding such impossible checks would confuse the reader
Merged-by : Michael Niedermayer <michaelni@gmx.at>
-
ffmpeg : test if format is seekable
20 mai 2021, par Diederick C. NiehorsterHow do i test if a format is seekable ?


I have written code against the latest fmmpeg's (4.4) libavformat, libavcodec, etc. My code reads and decodes video files. Now i also want to support reading from avdevices, such as dshow (DirectShow) on Windows. That is possible through the same interface as i have already implemented, it just requires using the dshow format. Super nice ! But in my video file reader, i have some seek logic implemented, which is engaged in various instances. The problem is that the dshow format is not seekable (
avformat_seek_file()
returns -22, invalid argument). How do i detect that a format is not seekable ? I know that theAVFormatContext
'spb
member (AVIOContext
) has aseekable
field, but the dshow format leavespb
null (as it should be since theAVFMT_NOFILE
flag is set for the format). How do i test if a format is seekable (so that if it is not, i can disable the seek logic) ? The implementation ofavformat_seek_file()
and the various functions it calls seems to have various callbacks, so i am not sure if simply this would do the trick :bool isSeekable = !!context->pb && context->pb->seekable!=0
.