Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (106)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (13726)

  • Android and ffmpeg libb - can't build

    15 décembre 2011, par nmnir

    I'm trying to build my native app with ffmpeg. the ndk-build output is

        $ ../../../ndk-build
        Prebuilt       : libffmpeg.so <=
        cp: omitting directory

    /cygdrive/c/android2/android-ndk-r6/samples/native-audio/jni'
    make : * [/cygdrive/c/android2/android-ndk-r6/samples/native-audio/obj/local/armeabi/libffmpeg.so] Error 1

    Here is my Android.mk :

    LOCAL_PATH := $(call my-dir)
    #declare the prebuilt library
    include $(CLEAR_VARS)
    LOCAL_MODULE := ffmpeg-prebuilt
    LOCAL_SRC_FILES := ffmpeg/android/armv7-a/libffmpeg.so
    LOCAL_EXPORT_C_INCLUDES := ffmpeg/android/armv7-a/include
    LOCAL_EXPORT_LDLIBS := ffmpeg/android/armv7-a/libffmpeg.so
    LOCAL_PRELINK_MODULE := true
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_ALLOW_UNDEFINED_SYMBOLS=false
    LOCAL_MODULE := native-audio-jni
    LOCAL_SRC_FILES := native-audio-jni.cpp
    LOCAL_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/android/armv7-a/include
    LOCAL_SHARED_LIBRARY := ffmpeg-prebuilt
    LOCAL_LDLIBS    := -lOpenSLES -landroid -llog -ljnigraphics -lz -lm $(LOCAL_PATH)/ffmpeg/android/armv7-a/libffmpeg.so
    LOCAL_STATIC_LIBRARY := stdc++
    include $(BUILD_SHARED_LIBRARY)
  • Live stream playing

    20 décembre 2011, par John Smith

    well, I can capture the incoming stream. Its produced by FFMpeg. The php code Im doing it with :

    $address = '127.0.0.1';
    $port = 1234;
    $outfile = "output.flv";

    $ofp = fopen($outfile, 'w');

    if (($sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) === false) { echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n"; sleep (5); die; }
    if (socket_bind($sock, $address, $port) === false) { echo "socket_bind() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; sleep (5); die; }
    if (socket_listen($sock, 5) === false) { echo "socket_listen() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; sleep (5); die; }
    if (($msgsock = socket_accept($sock)) === false) { echo "socket_accept() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; sleep (5); break; }
    do {
       $a = '';
       socket_recv ($msgsock, $a, 65536, MSG_WAITALL);
       fwrite ($ofp, $a);
       echo strlen($a);
    } while (true);

    so it produces good file, if I replay this it looks good. But I want to stream it on a site, if I just put a link to the .flv, it would play it from the beginning. How to make it real live ? Thanx in advance.

  • H264 encoder settings

    30 novembre 2011, par Chris Robinson

    I'm using xuggler to encode a series of images to an MP4 file. I use the following code to setup the IStreamCoder and specify the H264 codec :

    // only set if codec is H264
    Configuration.configure("/usr/local/xuggler/share/ffmpeg/libx264-hq.ffpreset",
               outStreamCoder);

    outStreamCoder.setNumPicturesInGroupOfPictures(12);
    outStreamCoder.setCodec(codec);
    outStreamCoder.setBitRate(videoSettings.getBitrate());
    outStreamCoder.setBitRateTolerance(videoSettings.getBitrateTolerance());
    outStreamCoder.setPixelType(IPixelFormat.Type.YUV420P);
    outStreamCoder.setHeight(videoSettings.getResolution().height);
    outStreamCoder.setWidth(videoSettings.getResolution().width);
    outStreamCoder.setFlag(IStreamCoder.Flags.FLAG_QSCALE, true);
    outStreamCoder.setGlobalQuality(0);
    fps = IRational.make((int) videoSettings.getFramerate(), 1);
    outStreamCoder.setFrameRate(fps);
    outStreamCoder.setTimeBase(IRational.make(fps.getDenominator(), fps.getNumerator()));

    which yields the following output :

    Codec: CODEC_ID_H264
    Resolution: 1280x720
    Bitrate: 25000
    Bitrate Tolerance: 1000
    Framerate: 25.0

    H264 encoded video

    Now when I specify the MPEG4 codec, I get the following output :

    Codec: CODEC_ID_MPEG4
    Resolution: 1280x720
    Bitrate: 25000
    Bitrate Tolerance: 1000
    Framerate: 25.0

    MPEG4 encoded video

    As you can see, the only difference is the ICodec type (MPEG4 instead of H264) and the use of the preset (which is required by xuggler when using an H264 codec). Can anyone explain to me the huge difference in quality and tell me how to resolve the issue ?