
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (78)
-
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 -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Diogene : création de masques spécifiques de formulaires d’édition de contenus
26 octobre 2010, parDiogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
A quoi sert ce plugin
Création de masques de formulaires
Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)
Sur d’autres sites (7668)
-
doc/demuxers/mpegts : apply a minor grammar fix to option description
13 août 2015, par Stefano Sabatini -
ffmpeg and php - generating thumbnail
25 février 2014, par stinkysGTII've never used ffmpeg before, but it seemed rather straight forward. I already have a script that handles the uploaded file and stores all of the relative data into the database, but I'm not able to generate a thumbnail. I don't get an error either, I even checked the error_log on the server and there was nothing. The command I'm trying to use is :
shell_exec("/usr/bin/ffmpeg -i files/clipcanvas_14348_offline.mp4 -r 1 -s 1024x576 -f image2 -vframes 1 files/thumb_test.jpg");
I will change the static file names with variables once I get it working because the videos that will be thumbnailed are uploaded through a form.
I tried using the solution from this page :
ffmpeg Getting image or thumbnail from video error
But I'm not having any luck. Could it somehow be possible it's because it's on a sub domain ?
-
Cannot decode H.264 stream (Annex.B) using FFmpeg
15 décembre 2014, par user849642Recently I’m writing a client of a IP camera providing H.264 stream. I’m now using FFmpeg 2.1.1 to decode the stream provided by the camera.
Here’s some code of the application :
Initialization :
private unsafe void InitFFmpeg()
{
FFmpeg.avcodec_register_all();
var codec = FFmpeg.avcodec_find_decoder(AVCodecID.AV_CODEC_ID_H264);
avcodec = (IntPtr)codec;
var ctx=FFmpeg.avcodec_alloc_context3(avcodec);
avcontext = (IntPtr)ctx;
ctx->codec = avcodec;
ctx->pix_fmt = AVPixelFormat.PIX_FMT_YUV420P;
ctx->flags2 |= 0x00008000;//CODEC_FLAG2_CHUNKS
var options = IntPtr.Zero;
int result = FFmpeg.avcodec_open2(avcontext, avcodec, ref options);
avframe = FFmpeg.av_frame_alloc();
avparser = FFmpeg.av_parser_init(AVCodecID.AV_CODEC_ID_H264);
FFmpeg.av_init_packet(ref avpacket);
inBuffer = Marshal.AllocHGlobal(300 * 1024);
}Decoding :
private void Decode(byte[] data, int size)
{
IntPtr pOut = IntPtr.Zero;
int outLen = 0;
Marshal.Copy(data, 0, inBuffer, size);
int gotPicture = 0;
var rs = FFmpeg.av_parser_parse2(avparser, avcontext, ref pOut, ref outLen, inBuffer, size, 0, 0, 0);
if (outLen <= 0 || pOut.ToInt32() <= 0)
{
//no enough data to construct a frame, return and receive next NAL unit.
return;
}
avpacket.data = pOut;
avpacket.size = outLen;
avpacket.flags |= PacketFlags.Key;
var len = FFmpeg.avcodec_decode_video2(avcontext, avframe, ref gotPicture, ref avpacket);
Console.WriteLine("avcodec_decode_video2 returned " + len);
if (gotPicture != 0)
{
//some YUV to RGB stuff
}
}With the code above, I can get some output like :
NAL unit 1: resolution=1280x720, key-frame=True, size=26.
NAL unit 2: resolution=1280x720, key-frame=False, size=8.
NAL unit 3: resolution=1280x720, key-frame=False, size=97222.
NAL unit 4: resolution=1280x720, key-frame=False, size=14129.
avcodec_decode_video2 returned 1
NAL unit 5: resolution=1280x720, key-frame=False, size=12522.
NAL unit 6: resolution=1280x720, key-frame=False, size=12352.
avcodec_decode_video2 returned 1
NAL unit 7: resolution=1280x720, key-frame=False, size=12291.
NAL unit 8: resolution=1280x720, key-frame=False, size=12182.From the ouput I can see the parser can recognize the NAL units sent by the camera and can construct frames from them.
NAL unit 1 to 4 are slices of a key frame containing SPS/PPS, and the following 2 NAL units form a normal frame.
And the avcodec_decode_video2 function doesn’t produce any error, but just keep returning 1 and gotPicture is alway 0.
If I clear AVCodecContext.flags2, it starts to complain that the packet I provided contains no frame :
NAL unit 100: resolution=1280x720, frame-rate=0, key-frame=True, size=26.
NAL unit 101: resolution=1280x720, frame-rate=0, key-frame=False, size=8.
NAL unit 102: resolution=1280x720, frame-rate=0, key-frame=False, size=96927.
NAL unit 103: resolution=1280x720, frame-rate=0, key-frame=False, size=17149.
[h264 @ 01423440] no frame!
avcodec_decode_video2 returned -1094995529
NAL unit 104: resolution=1280x720, frame-rate=0, key-frame=False, size=12636.
NAL unit 105: resolution=1280x720, frame-rate=0, key-frame=False, size=12338.
[h264 @ 01423440] no frame!If I write the raw stream to a file, I can use FFmpeg to mux the stream to an mp4 container, and can play the mp4 file with any player.
The raw data I received is something like :
00 00 00 01 67 42 00 28 E9 00 A0 0B 75 C4 80 03 6E E8 00 CD FE 60 0D 88 10 94
00 00 00 01 68 CE 31 52
00 00 00 01 65 88 81 00 06 66 36 25 11 21 2C 04 3B 81 E1 80 00 85 4B 23 9F 71...
...