
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (104)
-
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 -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (9667)
-
Linking to static libs cross compiled for android complains "no archive symbol table (run ranlib)"
5 octobre 2017, par ProgramistI am trying to build FFmpeg for android as static libraries. Following is my
buildscript.sh
#!/bin/bash
cd ffmpeg-3.3
NDK=/Users/sambitpujari/codeenv/ndk/android-ndk-r15c
SYSROOT=$NDK/platforms/android-26/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64
CPREFIX=$TOOLCHAIN/bin/arm-linux-androideabi-ar
function build_ffmpeg_android {
./configure \
--prefix=$PREFIX \
--disable-programs \
--enable-static \
--disable-shared \
--disable-doc \
--enable-postproc \
--enable-swscale \
--enable-avfilter \
--enable-avresample \
--enable-pic \
--disable-opencl \
--disable-securetransport \
--enable-videotoolbox \
--enable-audiotoolbox \
#--enable-libx264 \
--cross-prefix=$CPREFIX \
--target-os=linux \
--arch=arm \
--enable-cross-compile \
--enable-gpl \
--sysroot=$SYSROOT \
--extra-cflags="-Os -fpic $ADDI_CFLAGS" \
--extra-ldflags="$ADDI_LDFLAGS" \
$ADDITIONAL_CONFIGURE_FLAG
make clean
make -j9
make install
}
CPU=arm
PREFIX=$(pwd)/android/$CPU
ADDI_CFLAGS="-marm"
build_ffmpeg_androidThe output of above script is placed inside
ffmpeg-3.3/android/arm
.Problem :
When trying to link to these.a
libraries from my app (-lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice
),
I get the following linker error for each of them:-1: error: error: avformat: no archive symbol table (run ranlib)
:-1: error: error: avcodec: no archive symbol table (run ranlib)
:-1: error: error: swscale: no archive symbol table (run ranlib)
:-1: error: error: avutil: no archive symbol table (run ranlib)
:-1: error: error: avfilter: no archive symbol table (run ranlib)
:-1: error: error: swresample: no archive symbol table (run ranlib)
:-1: error: error: avdevice: no archive symbol table (run ranlib)Looking at this discussion, I am doing it correct by selecting
arm-linux-androideabi-ar
inCPREFIX
.Question :
What else am I missing here ? What is needed in mybuildscript.sh
to satisfy correct linking ? -
Can't display live streaming video from mobile to wowza streaming software
11 février 2016, par Muthukumar SYou have to record frame are convert to video.mp4 files. i need rtmp url live streaming videos in mp4 format. but i work in java CV 1.1 . the mp4 and flv video is working. and it can’t display(any video format) in wowza streaming engine software. thanks.
-
Stream video from mobile camera to ffmpeg with NDK
19 juillet 2013, par user2598307I need to create an application that captures video from a camera phone and send it to ffmpeg. Everything should be done only NDK level without SDK and Java
The phone can be Root
I am trying to open camera on my android device with this function "avformat_open_input()". I give this function a reference to device folder "/dev/msm_camera/" or "/dev/video0".
I try like this :
void Java_com_example_camera_MainActivity_testVideo(JNIEnv *env, jclass jc, jstring *filename)
{
av_register_all();
avcodec_register_all();
avformat_network_init();
AVFormatContext* context = avformat_alloc_context();
int video_stream_index,ret,i;
AVInputFormat *input_format = NULL;
const char formatName[] = "mpeg"; //for example mpeg
const jbyte *str;
str = (*env)->GetStringUTFChars(env, filename, NULL); //filename = "/dev/msm_camera"
input_format = av_find_input_format(formatName);
ret = avformat_open_input(&context, str, input_format, NULL);
if (ret < 0){
LOGE("Not open");
}else{
LOGI("camera was open");
}
if(avformat_find_stream_info(context,NULL) < 0){
LOGE("No stream");
}
for(i =0;inb_streams;i++){
if(context->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
video_stream_index = i;
}
AVPacket packet;
AVFrame *pFrame;
av_init_packet(&packet);
pFrame = avcodec_alloc_frame();
//open output file
AVOutputFormat* fmt = av_guess_format("avi", NULL, NULL);
AVFormatContext* outputContext = avformat_alloc_context();
outputContext->oformat = fmt;
avio_open2(&outputContext->pb, "/sdcard/test.avi", AVIO_FLAG_WRITE,NULL,NULL);
AVStream* stream=NULL;
AVFrame * frame;
frame = avcodec_alloc_frame();
int cnt = 0, frameDecoded;
//start reading packets from stream and write them to file
av_read_play(context);
while(av_read_frame(context,&packet)>=0 && cnt <300){ //Here function return -1
if(packet.stream_index == video_stream_index)
{//packet is video
if(stream == NULL){
//create stream in file
stream = avformat_new_stream(outputContext,context->streams[video_stream_index]->codec->codec);
avcodec_copy_context(stream->codec,context->streams[video_stream_index]->codec);
stream->sample_aspect_ratio = context->streams[video_stream_index]->codec->sample_aspect_ratio;
avformat_write_header(outputContext,NULL);
}
packet.stream_index = stream->id;
av_write_frame(outputContext,&packet);
cnt++;
}
av_free_packet(&packet);
av_init_packet(&packet);
}
av_read_pause(context);
av_write_trailer(outputContext);
avio_close(outputContext->pb);
avformat_free_context(outputContext);
}As I know, we cannot get access to camera because my program has not root permission. So how I can give my program root permission ? Or how I can go around this problem ?
I also tried to interact with the device driver using ioctl commands on C\C++, but I did not succeed because I have no experience and examples in Google.
Thank you !!!