
Recherche avancée
Médias (2)
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (109)
-
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 (...) -
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 (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (7450)
-
Unable to play webM file on chromium with Media Source Extensions. Works in firefox and vlc
23 octobre 2018, par raulI’m currently trying to implement a video player using Media Source Extensions. Currently just a very simple proof of concept, following a tutorial I found here.
I cloned their repo with all source code from github here and am testing the implementation on Chromium and Firefox with various video files.
Everything worked well with the example webm files in the repo for both browsers.
Next I tried to convert a video I downloaded from some random site using ffmpeg and mse-tools to "align the clusters" of the webm file using the following commands :
ffmpeg -i randomvideo.mp4 -c:v libvpx -c:a libvorbis output.webm
mse_webm_remuxer output.webm aligned.webmAgain, all was well on both browsers.
Finally, I wanted to convert a very simple animation I created in blender (rendered with h264 in mp4).
I tried converting the resulting file using the same process as above and the file played normally on firefox, but did not load on chromium.
I assume I am commiting some error when converting the file, but inspecting the attributes of the final file with vlc and ffprobe, I could not find any obvious problems.
Any ideas as to what I am doing wrong ?
One final test I did was to go to this site to get some sample webm files.
I downloaded the "Big Buck Bunny Trailer in WebM" and "Elephants Dream as WebM File".
Both files worked in firefox, but the "Elephants Dream" file would not play in chromium.
I am on a linux machine (Arch Linux distro) with the following versions of the browsers :
Chromium Version 69.0.3497.100 (Official Build) Arch Linux (64-bit)
Firefox 62.0.3 (64-bit)
I have shared the file I created from the blender animation (very small - only 36 KB) on google drive here in case anyone wants to check it out.
-
libavcodec on media entirely in memory
11 janvier 2019, par NickI’m dealing with small micro videos that exist entirely in memory (as a string). So far, I haven’t been able to get avcodec to properly decode h264 in this way.
I tried a custom AVIOContext that operates on containerized media :
struct Stream { char* str; size_t pos; size_t size; };
static int ReadStream(void* opaque, uint8* buf, int buf_size) {
Stream* strm = reinterpret_cast(opaque);
int read = strm->size-strm->pos;
read = read < buf_size ? read : buf_size;
memcpy(buf, strm->str+sto-æ>pos, read);
memset(buf+read, 0, buf_size-read);
strm->pos += read;
return read;
}
static int64_t SeekStream(void *opaque, int64_t offset, int whence) {
Stream* strm = reinterpret_cast(opaque);
if (whence == AVSEEK_SIZE) {
return strm->size;
} else if (whence == SEEK_END) {
strm->pos = strm->size;
} else if (whence == SEEK_SET) {
strm->pos = 0;
}
strm->pos += offset;
return strm->pos;
}
int main(int argc, char *argv[]) {
string content;
GetContents("test.mp4", &content);
avcodec_register_all();
uint8* buff = (uint8*)malloc(4096 + AV_INPUT_BUFFER_PADDING_SIZE);
Stream strm = { const_cast(content.data()), 0, content.size() };
void* opaque = reinterpret_cast(&strm);
AVFormatContext* fmtctx = avformat_alloc_context();
AVIOContext* avctx = avio_alloc_context(buff, 4096, 0, opaque, &ReadStream, nullptr, &SeekStream);
AVInputFormat* ifmt = av_find_input_format("mp4");
AVDictionary* opts = nullptr;
fmtctx->pb = avctx;
avformat_open_input(&fmtctx, "", ifmt, &opts);
avformat_find_stream_info(fmtctx, &opts);
}But that always segfaults at find_stream_info.
I also tried pre-demuxing the video stream into raw h264 and just sending the stream packets (e.g.) :
int main(int argc, char *argv[]) {
string content;
GetContents("test.h264", &content);
uint8* data = reinterpret_cast(const_cast(content.c_str()));
avcodec_register_all();
AVCodec* codec = avcodec_find_decoder(AV_CODEC_ID_H264);
AVCodecContext* ctx = avcodec_alloc_context3(codec);
ctx->width = 1080;
ctx->height = 1920;
avcodec_open2(ctx, codec, nullptr);
AVPacket* pkt = av_packet_alloc();
AVFrame* frame = av_frame_alloc();
pkt->data = data;
pkt->size = 4096;
avcodec_send_packet(ctx, pkt);
data += 4096;
}But that just gives a nondescript "error while decoding MB # #, bytestream #". Note that I’ve removed the error checking from the allocs, etc. to simplify the code, but I am checking to make sure everything is allocated and instantiated correctly.
Any suggestions for where my misunderstanding or misuse of avcodec is ?
-
PHP imagick equivalent of -define png:color-type=6
5 avril 2016, par user1661677I’m needing to save my PNG files with a different color type so ffmpeg can process them correctly. I’m using the PHP library for imagemagick, and I’m trying to figure out how to implement the following (command line) in imagick PHP :
-define png:color-type=6