Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (62)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (9123)

  • How can I capture low resolution video on Android reliably across a range of devices ?

    26 octobre 2015, par MisterMat

    Hello 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

  • avformat/mov_muxer : Extended MOV muxer to handle EVC video content

    15 juin 2023, par Dawid Kozinski
    avformat/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>

    • [DH] libavformat/Makefile
    • [DH] libavformat/evc.c
    • [DH] libavformat/evc.h
    • [DH] libavformat/isom_tags.c
    • [DH] libavformat/movenc.c
  • ffmpeg avcodec_decode_video2 is crashing the andrid app

    18 octobre 2013, par Azhagiri

    HI i am using ffmpeg library in my android app. Using the library from
    https://github.com/churnlabs/android-ffmpeg-sample

    My 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, &amp;packet);
       if (ret &lt; 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, &amp;packet);

    Help to get resolve the problem. I'll attach the ndk-stack output also

    ********** Crash dump: **********
    Build fingerprint: &#39;samsung/ja3gxx/ja3g:4.2.2/JDQ39/I9500XWUBMG5:user/release-keys&#39;
    pid: 12494, tid: 12512, name: Thread-1088  >>> com.churnlabs.ffmpegsample &lt;&lt;&lt;
    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 completed

    From 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