Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (63)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (9446)

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

  • 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 !

  • aacenc : do not reject AAC-Main profile

    21 août 2015, par Rostislav Pehlivanov
    aacenc : do not reject AAC-Main profile
    

    This commit permits for the use of the Main profile
    in encoding. The functionality of that profile will
    be added in the commits following. By itself, this
    commit does not alter anything.

    Signed-off-by : Rostislav Pehlivanov <atomnuker@gmail.com>

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