
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (74)
-
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 -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (7012)
-
g++ Linking Error on Mac while compiling FFMPEG
7 mai 2013, par Saptarshi Biswasg++ on Snow Leopard is throwing linking errors on the following piece of code
test.cpp
#include <iostream>
using namespace std;
#include <libavcodec></libavcodec>avcodec.h> // required headers
#include <libavformat></libavformat>avformat.h>
int main(int argc, char**argv) {
av_register_all(); // offending library call
return 0;
}
</iostream>When I try to compile this using the following command
g++ test.cpp -I/usr/local/include -L/usr/local/lib \
-lavcodec -lavformat -lavutil -lz -lm -o testI get the error
Undefined symbols :
"av_register_all()", referenced from :
_main in ccUD1ueX.o
ld : symbol(s) not found
collect2 : ld returned 1 exit statusInterestingly, if I have an equivalent c code,
test.c#include
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
int main(int argc, char**argv) {
av_register_all();
return 0;
}gcc compiles it just fine
gcc test.c -I/usr/local/include -L/usr/local/lib \
-lavcodec -lavformat -lavutil -lz -lm -o testI am using Mac OS X 10.6.5
$ g++ --version
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)FFMPEG's libavcodec, libavformat etc. are C libraries and I have built them on my machine like thus :
./configure --enable-gpl --enable-pthreads --enable-shared \
--disable-doc --enable-libx264
make && sudo make installAs one would expect, libavformat indeed contains the symbol av_register_all
$ nm /usr/local/lib/libavformat.a | grep av_register_all
0000000000000000 T _av_register_all
00000000000089b0 S _av_register_all.ehI am inclined to believe g++ and gcc have different views of the libraries on my machine. g++ is not able to pick up the right libraries. Any clue ?
-
Python SWIG bindings with SomeType ** as function argument
2 mai 2013, par vericuleI couldn't find any working Python bindings for ffmpeg, so I decided to generate one with SWIG. Generation was quick and easy (no customization, just default SWIG interface), but these a problem using some functions like
int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputFormat *fmt, AVDictionary **options);
from libavformat/avformat.h. Using C this can be run simply by :AVFormatContext *pFormatCtx = NULL;
int status;
status = avformat_open_input(&pFormatCtx, '/path/to/my/file.ext', NULL, NULL);In Python I try following :
>>> from ppmpeg import *
>>> av_register_all()
>>> FormatCtx = AVFormatContext()
>>> FormatCtx
>
>>> avformat_open_input(FormatCtx, '/path/to/my/file.ext', None, None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: in method 'avformat_open_input', argument 1 of type 'AVFormatContext **'
</module></stdin>Problem is that Python do not have & equivalent. I tried to use
cpointer.i
and itspointer_class
(%pointer_class(AVFormatContext, new_ctx)
), butnew_ctx()
returns pointer and this is not I want definitely.%pointer_class(AVFormatContext *, new_ctx)
is illegal and gives syntax error. I would be grateful for any help. Thanks.EDIT :
I forgot to mention I tried to use typemaps, but don't know how to write custom typemap for struct and documentation has only examples for basic types like int or float... -
how do I write to avlibs AVOptions from C
19 mai 2014, par vinay samuelI want to do the equivalent of the following command line from a C program.
ffmpeg ..... -movflags frag_keyframe
I have narrowed it down to setting some fields in priv_class in AVOutputFormat somehow. But I don’t understand how AVOptions work, I could not find a good example that explains how AVOptions are set and used. I did come across av_opt_set but if I set the name field to "movflags" what is the val and do I set a separate option for frag_keyframe or is it embedded in the flags set for "movflags" ?
Thanks in advance for your time.