
Recherche avancée
Autres articles (39)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
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
Sur d’autres sites (6271)
-
ffmpeg avcodec_decode_video2 is crashing the andrid app
18 octobre 2013, par AzhagiriHI i am using ffmpeg library in my android app. Using the library from
https://github.com/churnlabs/android-ffmpeg-sampleMy application crashes when i am calling the avcodec_decode_video2() function. My code
int decode_packet(int *got_frame, int cached){
int ret = 0;
int decoded = packet.size;
if (packet.stream_index == videoStream) {
/* decode video frame */
ret = avcodec_decode_video2(pCodecCtx, pFrame, got_frame, &packet);
if (ret < 0) {
LOGE("Error decoding video frame");
return ret;
}
if (*got_frame) {
av_image_copy(video_dst_data, video_dst_linesize, (const uint8_t **)(pFrame->data), pFrame->linesize, pCodecCtx->pix_fmt, pCodecCtx->width, pCodecCtx->height);
/* write to rawvideo file */
LOGE("Frame Count [%d]",video_frame_count++);
// fwrite(video_dst_data[0], 1, video_dst_bufsize, videoOut);
}
return decoded;
}
}The app crashes at the line
ret = avcodec_decode_video2(pCodecCtx, pFrame, got_frame, &packet);
Help to get resolve the problem. I'll attach the ndk-stack output also
********** Crash dump: **********
Build fingerprint: 'samsung/ja3gxx/ja3g:4.2.2/JDQ39/I9500XWUBMG5:user/release-keys'
pid: 12494, tid: 12512, name: Thread-1088 >>> com.churnlabs.ffmpegsample <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000020
Stack frame #00 pc 00285804 /data/app-lib/com.churnlabs.ffmpegsample-1/libffmpegutils.so (avcodec_decode_video2+60)
Stack frame #01 pc 00285854 /data/app-lib/com.churnlabs.ffmpegsample-1/libffmpegutils.so (avcodec_decode_video2+140)
Crash dump is completedFrom this i can find the function which crashes but i can't find the reason for the crash and how to get out from that
-
avformat/mov_muxer : Extended MOV muxer to handle EVC video content
15 juin 2023, par Dawid Kozinskiavformat/mov_muxer : Extended MOV muxer to handle EVC video content
Changes in mov_write_video_tag function to handle EVC elementary stream
Provided structure EVCDecoderConfigurationRecord that specifies the decoder configuration information for ISO/IEC 23094-1 video content
Signed-off-by : Dawid Kozinski <d.kozinski@samsung.com>
-
How can I capture low resolution video on Android reliably across a range of devices ?
26 octobre 2015, par MisterMatHello Android video experts :)
I am developing an Android application which allows the user to capture video and upload it to a remote server (it’s more involved than that but the rest of the app is not important). Because of the upload requirement, it is important that the video is of a reasonable size, so not super high resolution. Let’s say a max of 680x480 or 10Mb/minute. This is no problem on Apple devices.
I have had what can only be described as a complete nightmare trying to capture video at a reasonably low bitrate reliably across a range of Android devices.
As I understand it there are two ways of capturing video on Android :
1) Using the Media Recorder/Camera API
2) Using an Intent to open the cameras video capture application
Option 1) gives the most flexibility and allows us to easily change the capture resolution. However the Android Camera API is NOT reliable across a range of devices, and I have very good information (including from someone who liaised with Google on this issue) that if you capture video using this API then it will crash on a good 50% of the devices out there. There is a reason that Zoom Camera FX uses an Intent for video capture. Zoom Camera (different app) seems to use Media Recorder, but has lots of bad reviews for video crashing or not working.
Option 2) works well across a range of devices, as it uses the in built application on the device. The trouble is you have no control whatsoever on the resolution, there is a quality hint on the Intent but the camera app will normally ignore this. My Samsung Galaxy S3 records video by default at about 2Mb/s. This is way too high resolution. The built in application can of course change the resolution, but this relies on action by the user which is difficult to control.
I understand that I could use a library such as ffmpeg to change the resolution of the video after capture. However this requires me to compile the library for Android, and also I have been informed that in order to legally use the decode/encode codecs on the device you have to pay license fees that amount to about $1 per copy of the app. Since this app will be free to use, this is not an option.
So that’s where I’m at. I’ve searched long and high for answers, but I can’t figure out how to capture low resolution video reliably using Android.
Any help very much appreciated !
Matthew