Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (111)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (6626)

  • Encoding Raw PCM data to AAC using ffmpeg in Android

    10 janvier 2012, par NISHAnT

    Now, i m using libfaac directly to convert raw PCM data to AAC in JNI. Frames Encoded successfully still bytesWritten is always 0 it means there will b some problem in code Here is my Code.

    JNIEXPORT
    jbyteArray JNICALL Java_com_encodePCMFrame(JNIEnv * env,
       jclass clazz,short* data,jint bitRate,jint sampleSize,jint channelConfig)
    {


     faacEncHandle hEncoder;
       unsigned long samplesInput, maxBytesOutput, totalBytesWritten;
       faacEncConfigurationPtr faacPtr;
       char *faac_id_string;
       char *faac_copyright_string;
       unsigned long inputsamples;
       unsigned long maxoutputbytes;
       unsigned char* bitbuf;
       int bytesWritten;
       jbyteArray AACframe;
       jsize size;


       if(faacEncGetVersion(&faac_id_string, &faac_copyright_string) == FAAC_CFG_VERSION)
       {
         __android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "\nFAAC_ID_STRING %s\n\n ", faac_id_string);
       }


       hEncoder = faacEncOpen(sampleSize, channelConfig,&inputsamples, &maxoutputbytes);

       if(hEncoder)
       {
          __android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "AAC Codec Open (samplesize = %d)\n (channelConfig = %d)\n (input Samples = %d)\n(Max OUTPUT BYTES = %d)\n (bitRate = %d)...",sampleSize,channelConfig,inputsamples,maxoutputbytes,bitRate);
       }


       faacPtr = faacEncGetCurrentConfiguration(hEncoder);

       faacPtr->aacObjectType = MAIN;
       faacPtr->mpegVersion = MPEG2;
       faacPtr->outputFormat = 1; //ADTS
       faacPtr->bitRate = bitRate;
       faacPtr->inputFormat = FAAC_INPUT_16BIT;



       if (faacEncSetConfiguration(hEncoder, faacPtr)==0)
       {
            __android_log_print(ANDROID_LOG_VERBOSE, APPNAME,"fail to set");
            faacEncClose ( hEncoder );
            hEncoder =0;
       }



           bitbuf = (unsigned char*)malloc(maxoutputbytes*sizeof(unsigned char));

          bytesWritten = faacEncEncode(hEncoder,(int32_t *)data,inputsamples,bitbuf,maxoutputbytes);


       if(bytesWritten<=0)
       {
               __android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Can Not Encode Frame... bytesWritten = %d ",bytesWritten);
               faacEncClose(hEncoder);
       }
       else
       {
              __android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Bytes Written = %d ",bytesWritten);

              __android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Encoding frame %d ",bitbuf);
       }


       AACframe = (*env)->NewByteArray(env,maxoutputbytes);

       (*env)->SetByteArrayRegion(env,AACframe, 0,maxoutputbytes, bitbuf);

       __android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Buffer AAC Frame == %d    Allocated...  Size == %d ",AACframe,maxoutputbytes);


       return AACframe;

       av_free(bitbuf);
       av_free(data);
       (*env)->ReleaseByteArrayElements(env, AACframe, 0, JNI_ABORT);

    }

    Thanks in Advance.

  • Using OpenMAX (IL ?) for audio/video decoding on Android

    14 septembre 2012, par Christopher Corsi

    Many of the newer hardware platforms running Android, in particular NVIDIA's Tegra 2, support OpenMAX for media acceleration. It's effectively impossible on today's devices to decode 720p video without this support, but the number of demuxers supported on Android are quite slim. The only public API I've been able to find has been through the MediaPlayer class in the Android SDK. There are multiple places in the Android source tree with OpenMAX related tidbits, however.

    On my device (Samsung Galaxy Tab 10.1) I've got access to hardware decoders through a multitude of OpenMAX libs in /system/lib, and it would be great to interface my video application with these. Can anyone point me to information on implementing a decoder powered by OpenMAX ? I've found the documentation from Khronos, but nothing in the way of example code or tutorials. I've already got demuxing and even software decoding taken care of (via libavcodec/libavformat), I'd just like to put hooks in to enable hardware encoding. I'm also assuming here it would be necessary to link directly to the ones available on the device, which makes it pretty lackluster in terms of portability, but it works.

    Alternatively, I'm interested in anything anyone knows about private APIs for accessing the video decoding available on Tegra 2 devices. Especially if there's a vdpau interface like what NVIDIA implements for desktop linux distributions, since there's plenty available for that - but I wasn't able to find shared libraries that indicate that support.

  • compile ffmpeg with android ndk r5b

    7 janvier 2013, par null

    compile ffmpeg with android ndk r5b.

    ffmpeg 0.6.1

    android ndk r5b

    cygwin 1.7

    build reference url : http://www.cnblogs.com/scottwong/archive/2010/12/17/1909455.html

    but, ffmpeg ./configure result error ! (below config.err file)

    check_cc
    BEGIN /tmp/ffconf.GlDiY1P8.c
       1   int main(void){ return 0; }
    END /tmp/ffconf.GlDiY1P8.c
    /android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/windows/bin/arm-eabi-gcc -fPIC -DANDROID -c -o /tmp/ffconf.1kQLpGaU.o /tmp/ffconf.GlDiY1P8.c
    arm-eabi-gcc.exe: /tmp/ffconf.GlDiY1P8.c: No such file or directory

    arm-eabi-gcc.exe: no input files

    C compiler test failed.

    so, i just try test code.

    // test.c code
    int main(){
     return 0;
    }

    /android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/windows/bin/arm-eabi-gcc -fPIC -DANDROID -c -o ./test.o ./test.c

    ok !!!! no problem.

    but,
    cp ./test.c /tmp (copy to /tmp)

    /android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/windows/bin/arm-eabi-gcc -fPIC -DANDROID -c -o ./test.o /tmp/test.c

    arm-eabi-gcc.exe: /tmp/test.c: No such file or directory
    arm-eabi-gcc.exe: no input files

    fail !!!
    difference is only file path. /tmp directory exist, and permission is right. /home/test.c is same result.

    what's wrong ?