
Recherche avancée
Médias (17)
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (88)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (11912)
-
undefined reference in ffmpeg (use code blocks)
6 février 2015, par Yonghao ZhaoI am currently testing a video encoding program using ffmepg codeblocks.I encountered several undefined reference warning. I have checked on internet and add extern "c" to the headers but it still doesnt work. Please help me check.
Here is part of the code :
extern "C" {
#include "libavcodec/avcodec.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/mathematics.h"
#include "libavutil/samplefmt.h"
}
#include
#include "libavutil/opt.h"
static void video_encode_example(const char *filename, int codec_id)
{
AVCodec *codec;
AVCodecContext *c= NULL;
int i, ret, x, y, got_output;
FILE *f;
AVFrame *frame;
AVPacket pkt;
uint8_t endcode[] = { 0, 0, 1, 0xb7 };
printf("Encode video file %s\n", filename);
/* find the mpeg1 video encoder */
codec = avcodec_find_encoder(AV_CODEC_ID_H264);
if (!codec) {
fprintf(stderr, "Codec not found\n");
exit(1);
}
c = avcodec_alloc_context3(codec);
if (!c) {
fprintf(stderr, "Could not allocate video codec context\n");
exit(1);
}
int main(int argc, char **argv)
{
avcodec_register_all();
video_encode_example("test.mpg", AV_CODEC_ID_MPEG1VIDEO);
return 0;
}The error given :
||=== Build : Debug in ffmepg_video_en (compiler : GNU GCC Compiler) ===|
obj/Debug/main.o||In functionvideo_encode_example':|
codeblocksfile/ffmepg_video_en/main.cpp|36|undefined reference toavcodec_find_encoder’|
codeblocksfile/ffmepg_video_en/main.cpp|41|undefined reference toavcodec_alloc_context3'|
codeblocksfile/ffmepg_video_en/main.cpp|63|undefined reference toav_opt_set(void*, char const*, char const*, int)’|
codeblocksfile/ffmepg_video_en/main.cpp|65|undefined reference toavcodec_open2'|
codeblocksfile/ffmepg_video_en/main.cpp|74|undefined reference toav_frame_alloc’|
codeblocksfile/ffmepg_video_en/main.cpp|85|undefined reference toav_image_alloc(unsigned char**, int*, int, int, AVPixelFormat, int)'|
codeblocksfile/ffmepg_video_en/main.cpp|92|undefined reference toav_init_packet’|
codeblocksfile/ffmepg_video_en/main.cpp|112|undefined reference toavcodec_encode_video2'|
codeblocksfile/ffmepg_video_en/main.cpp|120|undefined reference toav_free_packet’|
codeblocksfile/ffmepg_video_en/main.cpp|126|undefined reference toavcodec_encode_video2'|
/home/yonghao/codeblocksfile/ffmepg_video_en/main.cpp|134|undefined reference toav_free_packet’|
codeblocksfile/ffmepg_video_en/main.cpp|140|undefined reference toavcodec_close'|
codeblocksfile/ffmepg_video_en/main.cpp|141|undefined reference toav_free’|
codeblocksfile/ffmepg_video_en/main.cpp|142|undefined reference toav_freep'|
codeblocksfile/ffmepg_video_en/main.cpp|143|undefined reference toav_frame_free’|
obj/Debug/main.o||In functionmain':|
codeblocksfile/ffmepg_video_en/main.cpp|151|undefined reference toavcodec_register_all’|
||=== Build failed : 16 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===| -
How can I found FFmpeg Error code's meaning ?
5 mai 2024, par BirdsI have an issue using FFMPEG.



avcodec_send_packet()
is returning error code -12.


I am trying to find what the meaning of -12 is.



I found this page but I can't understand the calculation for -12 :



How can I find out what this ffmpeg error code means ?



Can anyone help me ?



I'm using DXVA2 for decoding. and
avcodec_send_packet()
function is return -12 after the 20th frame.


20th frame return






21st frame return





-
Get number of frames in video file using ffprobe in C# code
11 avril 2014, par theGeeksterI can successfully read number of framres in test.mp4 using Ffprobe on command prompt with following command :
>ffprobe -i 'c://test.mp4' -show_frames | find /c 'pict_type'
But when I try to run 'ffprobe.exe' from C# code with following paramters :
string params = " -i 'c://test.mp4' -show_frames | find /c 'pict_type'";
It errors as follows :
ffprobe version N-59453-gd52882f Copyright (c) 2007-2013 the FFmpeg developers
built on Dec 30 2013 22:07:23 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 59.100 / 52. 59.100
libavcodec 55. 47.100 / 55. 47.100
libavformat 55. 22.101 / 55. 22.101
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.103 / 4. 0.103
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Argument '|' provided as input filename, but ''c://test.mp4'' was already specified.How to fix this for C# ?
I know there is a workaround using
Ffmpeg
instead but that way is not clean enough.