
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (102)
-
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 (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (13532)
-
Issue in dealing with MediaCodec end of stream
31 mai 2019, par RohanI’m using MediaCodec to decode frames from the packets got from ffmpeg. When end of the stream is reached I signal the codec with NULL packet with BUFFER_FLAG_END_OF_STREAM set. But the output ends immediately without rendering all the frames, for avc codecs. Here is my code for input and output...
public int HwDecoderInputCallback( int size, long pts, int flag ){
int ret = 0, flags = 0;
final int TIME_OUT_US = 10000;
int inputBufIndex = 0;
try{
try{
Thread.sleep(5);
}catch(InterruptedException e){
}
inputBufIndex = chd.decoder.dequeueInputBuffer(TIME_OUT_US);
if( inputBufIndex >= 0 ){
ByteBuffer inputBuf = inputBuffer[inputBufIndex];
inputBuf.clear();
getVideoPacketHW(inputBuf, size);
chd.decoder.queueInputBuffer( inputBufIndex, 0, size, pts, flag);
}
}catch(Exception e1){
// Irrecoverable errors. Release Media codec and recreate resources.
videoWindow.glRenderer.restoreVideoSurface();
ret = -1;
}
return ret;
}
public int HwDecoderOutputCallBack(){
int status = 0;
final int TIME_OUT_US = 10000;
try{
int dec_status = chd.decoder.dequeueOutputBuffer(mBufferInfo, TIME_OUT_US);
if( dec_status == MediaCodec.INFO_TRY_AGAIN_LATER ){
Log.i("Candy MediaPlayer","Output try again");
}else if( dec_status == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED){
Log.i("Candy MediaPlayer","Output buffer changed");
outputBuffer = chd.decoder.getOutputBuffers();
}else if( dec_status == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED){
Log.i("Candy MediaPlayer","Buffer fmt changed");
}else if( dec_status < 0){
Log.i("Candy MediaPlayer","Output buffer index < 0");
}else{
if(((mBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM)!=0)){
Log.i("Candy MediaPlayer","End of stream.");
chd.decoder.releaseOutputBuffer(dec_status, false);
status = 1;
}else{
candySyncVideoHW( mBufferInfo.presentationTimeUs );
chd.decoder.releaseOutputBuffer(dec_status, true);
status = 0;
}
}
}
catch( Exception e){
// Irrecoverable errors. Release Media codec and recreate resources.
videoWindow.glRenderer.restoreVideoSurface();
}
return status;
}What is wrong with this code... I’m calling these fn:s from an infinite loop, it works fine until I give an empty packet of size zero with BUFFER_FLAG_END_OF_STREAM set. After this it stops immediately without rendering all the packets.
-
Issue in dealing with MediaCodec end of stream
21 novembre 2015, par 123rgtI’m using MediaCodec to decode frames from the packets got from ffmpeg. When end of the stream is reached I signal the codec with NULL packet with BUFFER_FLAG_END_OF_STREAM set. But the output ends immediately without rendering all the frames, for avc codecs. Here is my code for input and output...
public int HwDecoderInputCallback( int size, long pts, int flag ){
int ret = 0, flags = 0;
final int TIME_OUT_US = 10000;
int inputBufIndex = 0;
try{
try{
Thread.sleep(5);
}catch(InterruptedException e){
}
inputBufIndex = chd.decoder.dequeueInputBuffer(TIME_OUT_US);
if( inputBufIndex >= 0 ){
ByteBuffer inputBuf = inputBuffer[inputBufIndex];
inputBuf.clear();
getVideoPacketHW(inputBuf, size);
chd.decoder.queueInputBuffer( inputBufIndex, 0, size, pts, flag);
}
}catch(Exception e1){
// Irrecoverable errors. Release Media codec and recreate resources.
videoWindow.glRenderer.restoreVideoSurface();
ret = -1;
}
return ret;
}
public int HwDecoderOutputCallBack(){
int status = 0;
final int TIME_OUT_US = 10000;
try{
int dec_status = chd.decoder.dequeueOutputBuffer(mBufferInfo, TIME_OUT_US);
if( dec_status == MediaCodec.INFO_TRY_AGAIN_LATER ){
Log.i("Candy MediaPlayer","Output try again");
}else if( dec_status == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED){
Log.i("Candy MediaPlayer","Output buffer changed");
outputBuffer = chd.decoder.getOutputBuffers();
}else if( dec_status == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED){
Log.i("Candy MediaPlayer","Buffer fmt changed");
}else if( dec_status < 0){
Log.i("Candy MediaPlayer","Output buffer index < 0");
}else{
if(((mBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM)!=0)){
Log.i("Candy MediaPlayer","End of stream.");
chd.decoder.releaseOutputBuffer(dec_status, false);
status = 1;
}else{
candySyncVideoHW( mBufferInfo.presentationTimeUs );
chd.decoder.releaseOutputBuffer(dec_status, true);
status = 0;
}
}
}
catch( Exception e){
// Irrecoverable errors. Release Media codec and recreate resources.
videoWindow.glRenderer.restoreVideoSurface();
}
return status;
}What is wrong with this code... I’m calling these fn:s from an infinite loop, it works fine until I give an empty packet of size zero with BUFFER_FLAG_END_OF_STREAM set. After this it stops immediately without rendering all the packets.
-
Issue installing OpenCV 3.0.0 on Ubuntu 14.04
26 septembre 2015, par marcmanI’ve been trying to install OpenCV on a Linux machine running Ubuntu 14.04. I’ve installed all of the dependencies that I have come across in tutorials as well as those listed on the OpenCV site. However, I’m pretty new to Linux and the Linux file system, so I wouldn’t be terribly surprised if these issues are related to the installation location or something.
It appears that I am getting an issue with FFMPEG stuff, but I definitely have it installed
dpkg -s libgtk2.0-0 | grep '^Version'
returns
Version: 2.24.23-0ubuntu1.3
I’m not quite sure what the issue is here. Below is the error printout. Most of the lines are pretty much identical (I’m assuming the same issue is causing each of these errors). Although I posted the whole thing below for completeness, you can probably get at the issue from one or two of the errors as well as the last line. For brevity’s sake, here are a sample of the errors :
...
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:738:67: error: 'PIX_FMT_RGB24' was not declared in this scope
avpicture_fill((AVPicture*)&rgb_picture, rgb_picture.data[0], PIX_FMT_RGB24,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:756:17: error: 'PIX_FMT_BGR24' was not declared in this scope
PIX_FMT_BGR24,
^
...
[ 35%] Built target opencv_photo
make: *** [all] Error 2
$The commands immediately preceding the errors were
$ cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON ..
$ make -j4as taken from the tutorial I linked to above.
Entire error printout :
In file included from /usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45:0:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'void CvCapture_FFMPEG::close()':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:317:36: error: 'avcodec_free_frame' was not declared in this scope
avcodec_free_frame(&picture);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool CvCapture_FFMPEG::open(const char*)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:632:43: error: 'avcodec_alloc_frame' was not declared in this scope
picture = avcodec_alloc_frame();
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:635:41: error: 'PIX_FMT_BGR24' was not declared in this scope
avpicture_get_size( PIX_FMT_BGR24,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool CvCapture_FFMPEG::retrieveFrame(int, unsigned char**, int*, int*, int*, int*)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:738:67: error: 'PIX_FMT_RGB24' was not declared in this scope
avpicture_fill((AVPicture*)&rgb_picture, rgb_picture.data[0], PIX_FMT_RGB24,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:756:17: error: 'PIX_FMT_BGR24' was not declared in this scope
PIX_FMT_BGR24,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In function 'AVFrame* icv_alloc_picture_FFMPEG(int, int, int, bool)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1110:35: error: 'avcodec_alloc_frame' was not declared in this scope
picture = avcodec_alloc_frame();
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1113:33: error: 'PixelFormat' was not declared in this scope
size = avpicture_get_size( (PixelFormat) pix_fmt, width, height);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1122:38: error: expected ')' before 'pix_fmt'
(PixelFormat) pix_fmt, width, height);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: At global scope:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1104:18: warning: unused parameter 'pix_fmt' [-Wunused-parameter]
static AVFrame * icv_alloc_picture_FFMPEG(int pix_fmt, int width, int height, bool alloc)
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In function 'AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*, AVCodecID, int, int, int, double, int)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1230:19: error: 'PixelFormat' was not declared in this scope
c->pix_fmt = (PixelFormat) pixel_format;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1230:32: error: expected ';' before 'pixel_format'
c->pix_fmt = (PixelFormat) pixel_format;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: At global scope:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1130:18: warning: unused parameter 'pixel_format' [-Wunused-parameter]
static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool CvVideoWriter_FFMPEG::writeFrame(const unsigned char*, int, int, int, int, int)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1405:26: error: 'PIX_FMT_BGR24' was not declared in this scope
if (input_pix_fmt == PIX_FMT_BGR24) {
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1410:31: error: 'PIX_FMT_GRAY8' was not declared in this scope
else if (input_pix_fmt == PIX_FMT_GRAY8) {
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1423:25: error: 'PixelFormat' was not declared in this scope
(PixelFormat)input_pix_fmt, width, height);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1429:59: error: expected ')' before 'input_pix_fmt'
(PixelFormat)input_pix_fmt,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1447:25: error: 'PixelFormat' was not declared in this scope
(PixelFormat)input_pix_fmt, width, height);
^
In file included from /usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45:0:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, bool)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1604:25: error: 'PIX_FMT_BGR24' was not declared in this scope
input_pix_fmt = PIX_FMT_BGR24;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1607:25: error: 'PIX_FMT_GRAY8' was not declared in this scope
input_pix_fmt = PIX_FMT_GRAY8;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1683:25: error: 'PIX_FMT_YUV422P' was not declared in this scope
codec_pix_fmt = PIX_FMT_YUV422P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1687:25: error: 'PIX_FMT_YUVJ420P' was not declared in this scope
codec_pix_fmt = PIX_FMT_YUVJ420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1691:42: error: 'PIX_FMT_GRAY8' was not declared in this scope
codec_pix_fmt = input_pix_fmt == PIX_FMT_GRAY8 ||
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1692:42: error: 'PIX_FMT_GRAY16LE' was not declared in this scope
input_pix_fmt == PIX_FMT_GRAY16LE ||
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1693:42: error: 'PIX_FMT_GRAY16BE' was not declared in this scope
input_pix_fmt == PIX_FMT_GRAY16BE ? input_pix_fmt : PIX_FMT_YUV420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1693:77: error: 'PIX_FMT_YUV420P' was not declared in this scope
input_pix_fmt == PIX_FMT_GRAY16BE ? input_pix_fmt : PIX_FMT_YUV420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: At global scope:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1922:119: error: 'PixelFormat' has not been declared
static AVStream* addVideoStream(AVFormatContext *oc, CV_CODEC_ID codec_id, int w, int h, int bitrate, double fps, PixelFormat pixel_format);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1969:134: error: 'PixelFormat' has not been declared
AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext *oc, CV_CODEC_ID codec_id, int w, int h, int bitrate, double fps, PixelFormat pixel_format)
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In static member function 'static AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext*, AVCodecID, int, int, int, double, int)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2047:16: error: invalid conversion from 'int' to 'AVPixelFormat' [-fpermissive]
c->pix_fmt = pixel_format;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool OutputMediaStream_FFMPEG::open(const char*, int, int, double)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2107:5: error: 'PixelFormat' was not declared in this scope
PixelFormat codec_pix_fmt = PIX_FMT_YUV420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2107:17: error: expected ';' before 'codec_pix_fmt'
PixelFormat codec_pix_fmt = PIX_FMT_YUV420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2111:99: error: 'codec_pix_fmt' was not declared in this scope
video_st_ = addVideoStream(oc_, codec_id, width, height, width * height * bitrate_scale, fps, codec_pix_fmt);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool InputMediaStream_FFMPEG::open(const char*, int*, int*, int*, int*)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2316:18: error: 'PIX_FMT_YUV420P' was not declared in this scope
case PIX_FMT_YUV420P:
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2320:18: error: 'PIX_FMT_YUV422P' was not declared in this scope
case PIX_FMT_YUV422P:
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2324:18: error: 'PIX_FMT_YUV444P' was not declared in this scope
case PIX_FMT_YUV444P:
^
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 35%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/align.cpp.o
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 35%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/seamless_cloning_impl.cpp.o
[ 35%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/hdr_common.cpp.o
[ 35%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/opencl_kernels_photo.cpp.o
Linking CXX shared library ../../lib/libopencv_photo.so
[ 35%] Built target opencv_photo
make: *** [all] Error 2Any insight is greatly appreciated !