Recherche avancée

Médias (0)

Mot : - Tags -/flash

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (50)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • 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 (...)

Sur d’autres sites (9222)

  • undefined reference to 'main' in Android.mk file with NDK

    25 juillet 2015, par Laurent Gorse

    I’m trying to recompile a native ffmpeg (with rtmp) library with PIE for Android 5.0 compatibility.

    The library works fine without -pie, but when I try to recompile it with the following flags :

    LOCAL_CFLAGS += -fPIE
    LOCAL_LDFLAGS += -fPIE -pie

    the following error gets thrown :

    /Users/lgorse/Android_Libraries/android-ndk-r10e/platforms/android-21/arch-arm/usr/lib/crtbegin_dynamic.o:crtbrand.c:function _start: error: undefined reference to 'main'
    Error:error: ld returned 1 exit status
    make: *** [obj/local/armeabi/libffmpegbridge.so] Error 1
    make: Leaving directory `/Users/lgorse/Android_Libraries/ffmpegbridge/app/src/main'
    :app:ndkBuild FAILED
    Error:Execution failed for task ':app:ndkBuild'.
    > Process 'command '/Users/lgorse/Android_Libraries/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2

    It seems that the ndk-build is trying to access a .main method from within crtbegin_dynamic. Those files are built-in with the NDK so I assume there’s nothing fundamentally wrong with them, and I’m attempting to run my configuration in the wrong way.

    Here is the Android.mk file :

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

    LOCAL_MODULE := ffmpegbridge
    LOCAL_SRC_FILES := ffmpegbridge.c ffmpegbridge_context.c logdump.c
    LOCAL_CFLAGS := -I$(LOCAL_PATH)/include -I$(LOCAL_PATH)/../prebuilt/include
    LOCAL_CFLAGS += -fPIE
    LOCAL_LDFLAGS += -fPIE -pie
    LOCAL_LDLIBS += -llog
    LOCAL_LDLIBS += -L$(LOCAL_PATH)/../prebuilt/lib
    LOCAL_LDLIBS += -lcrypto -lssl -lrtmp-1 -lavcodec-56 -lavdevice-56 -lavfilter-5 -lavformat-56 -lavutil-54 -lswresample-1 -lswscale-3

    include $(BUILD_SHARED_LIBRARY)

    Here is my Gradle file (it contains the build instructions for ndkBuild) :

    apply plugin: 'android'

    android {
       compileSdkVersion 19
       buildToolsVersion "19.1.0"

       defaultConfig {
           applicationId "io.cine.ffmpegbridge"
           minSdkVersion 18
           targetSdkVersion 19
           versionCode 1
           versionName "1.0"
       }

       buildTypes {
           release {
               minifyEnabled false
               proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
           }
       }
       sourceSets.main {
           jniLibs.srcDir 'src/main/libs'
           jni.srcDirs = [] // disable NDK-auto-build
       }

       Properties properties = new Properties()
       properties.load(project.rootProject.file('local.properties').newDataInputStream())

       task ndkBuild(type: Exec) {
           def ndkDir = properties.getProperty('ndk.dir')
           commandLine "$ndkDir/ndk-build", '-C', file('src/main').absolutePath
       }

       task cleanNdkBuild(type: Exec) {
           def ndkDir = properties.getProperty('ndk.dir')
           commandLine "$ndkDir/ndk-build", '-C', file('src/main').absolutePath, "clean"
       }

       tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkBuild }
       clean.dependsOn cleanNdkBuild
    }

    dependencies {
       compile fileTree(dir: 'libs', include: ['*.jar'])
    }

    I’ll be watching this question closely so feel free to ask for follow-ups. I’m definitely around !

  • Not able to change H264 profile to High from Main using FFMPEG API

    7 juin 2015, par AsG

    I am using QtFFMPEG wrapper(https://code.google.com/p/qtffmpegwrapper/) with Qt 5.4 and MSCV 2012. I want to encode a mp4 video from image files at 25 fps and high profile.
    I used the createFile() and encodeImage() functions from here

    I am using the below parameters :

    pCodecCtx=pVideoStream->codec;
    pCodecCtx->codec_id = pOutputFormat->video_codec;
    pCodecCtx->codec_type = ffmpeg::AVMEDIA_TYPE_VIDEO;
    pCodecCtx->profile=FF_PROFILE_H264_HIGH;
    pCodecCtx->bit_rate = Bitrate;
    pCodecCtx->width = getWidth();
    pCodecCtx->height = getHeight();
    pCodecCtx->time_base.den = fps;
    pCodecCtx->time_base.num = 1;
    pCodecCtx->gop_size = 10;
    pCodecCtx->pix_fmt = ffmpeg::PIX_FMT_YUV420P;
    pCodecCtx->qmin = 10;
    pCodecCtx->qmax = 51;

    The FFMPEG variables are :

    License: %s
    GPL version 3 or later
    AVCodec version %d
    3476480
    AVFormat configuration: %s
    --disable-static --enable-shared --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

    Now I currently get a video with below properties :

    ID                             : 1
    Format                         : AVC
    Format/Info                    : Advanced Video Codec
    Format profile                 : Main@L3.2
    Format settings, CABAC         : No
    Format settings, ReFrames      : 1 frame
    Format settings, GOP           : M=1, N=10
    Codec ID                       : avc1
    Codec ID/Info                  : Advanced Video Coding
    Duration                       : 4s 320ms

    I want the profile to be "High" and the CABAC to be yes with 3 ReFrames. How do I achieve that ? I tried setting the profile, coder_type and max_b_frames but did not help. At times the generated file did not even play. Can anyone help please. Thanks.

    I also tried using the av_opt_set() way but could not find that function. Only function I have is av_opt_set_dict(), am I missing something - outdated FFMPEG or missing #include.

    Tried this too, didnt help-

      ffmpeg::AVDictionary *opt = NULL;
      int iRes = av_dict_set(&opt, "profile", "high", 0);
      av_opt_set_dict(pFormatCtx->priv_data, &opt);
      av_opt_set_dict(pFormatCtx, &opt);

    Please help.

    EDIT :
    I got a high quality mp4 by changing the qmin and qmax values and then reencoding the big sized output via command line. I will try to upgrade the FFMPEG as suggested by Ronald below. Please consider the question closed for now.

  • hqx : Store shareable data in main decoder context

    9 avril 2015, par Vittorio Giovara
    hqx : Store shareable data in main decoder context
    

    In preparation for multithreaded decoding.

    • [DH] libavcodec/hqx.c
    • [DH] libavcodec/hqx.h