Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (87)

Sur d’autres sites (15906)

  • Piwik PRO is hiring a Project Coordinator (Job description)

    18 février 2015, par Matthieu Aubry — Jobs

    At Piwik and Piwik PRO we develop the leading open source web analytics platform, used by more than one million websites worldwide. Our vision is to build the best open alternative to Google Universal Analytics. We are growing and now looking for a Project Coordinator !

    What will you be doing ?

    • Participating in calls with Piwik PRO clients and analyzing requirements for enterprise customers
    • Planning and coordinating the implementation of projects
    • Helping customers to improve and adjust data reporting methods to suit their needs
    • Functioning as the voice of the customer and provide internal feedback on how Piwik PRO can better serve our customers

    What do we expect from you ?

    • Fluent command of English (both in writing and speaking), confidence to communicate in formal conversations and a good knowledge of business English
    • Previous experience in working with corporate clients
    • Great communication skills
    • A proactive attitude and the ability to use your initiative
    • Ability to achieve goals without detailed instructions

    Possessing these assets would be an advantage :

    • Technical knowledge associated with using data analytics platforms
    • Data analysis and interpretation skills
    • Knowledge of German or French
    • Knowledge of Piwik Analytics

    What can you expect from us ?

    • Flexible cooperation
    • An attractive salary
    • The opportunity to develop your skills and gain more experience by working on exceptional projects
    • Multisport Card
    • Access to a regularly updated resource library and the opportunity to contribute to it
    • Flexible working hours
    • Unforgettable parties and integration trips
    • A completely unique work atmosphere – we really like to keep things informal

    Location

    We have offices in Poland and New Zealand, and Remote work is possible.

    Ideally you will be located in the USA or in Europe where most of our clients are based.

    Apply online

    To apply for this position, please Apply online here. We look forward to receiving your applications !

  • How to build the Exoplayer ffmpeg extension with the GSM codec ?

    4 mars 2020, par MadCoconut

    I wanted to use Exoplayer to play an audio file but when I tried I got this exception :

    2019-12-13 10:08:14.827 28972-29388/com.XXX.XXX E/ExoPlayerImplInternal: Source error.
       com.google.android.exoplayer2.ParserException: Expected block alignment: 0; got: 65
           at com.google.android.exoplayer2.extractor.wav.WavHeaderReader.peek(WavHeaderReader.java:81)
           at com.google.android.exoplayer2.extractor.wav.WavExtractor.sniff(WavExtractor.java:50)
           at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractorHolder.selectExtractor(ProgressiveMediaPeriod.java:1061)
           at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:952)
           at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:394)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
           at java.lang.Thread.run(Thread.java:764)

    The audio files I have to play are wav files (GSM_MS, 13kb/s)

    I tried to build the the Exoplayer Ffmpeg extension following the tutorial :
    https://github.com/google/ExoPlayer/tree/release-v2/extensions/ffmpeg

    I cloned the Exoplayer repository and I downloaded the Android NDK version r20b.

    I modified the build script build_ffmpeg.sh to enable the libgsm :

    COMMON_OPTIONS=“

      —enable-libgsm
    "

    I defined the required environment variables :

    Then I built the library using the provided command line :

    cd "${FFMPEG_EXT_PATH}" && \
    ./build_ffmpeg.sh \
    "${FFMPEG_EXT_PATH}" "${NDK_PATH}" "${HOST_PLATFORM}" "${ENABLED_DECODERS[@]}"

    But something goes wrong during the build process :

    remote: Enumerating objects: 38, done.
    remote: Counting objects: 100% (38/38), done.
    remote: Compressing objects: 100% (26/26), done.
    remote: Total 26 (delta 20), reused 0 (delta 0)
    Unpacking objects: 100% (26/26), done.
    From git://source.ffmpeg.org/ffmpeg
     377a095dc3..bd83191271  master     -> origin/master
    Already up to date.
    Already on 'release/4.2'
    Your branch is up to date with 'origin/release/4.2'.
    ERROR: libgsm not found

    If you think configure made a mistake, make sure you are using the latest
    version from Git.  If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "ffbuild/config.log" produced by configure as this will help
    solve the problem.
    GEN libavutil/libavutil.version
    GEN libswresample/libswresample.version
    GEN libavresample/libavresample.version
    GEN libavcodec/libavcodec.version
    CC  libavcodec/aac_ac3_parser.o
    CC  libavcodec/aacdec.o
    CC  libavcodec/aacps_float.o
    CC  libavcodec/aacpsdsp_float.o
    CC  libavcodec/aacsbr.o
    CC  libavcodec/aactab.o
    CC  libavcodec/ac3.o
    CC  libavcodec/ac3_parser.o
    CC  libavcodec/ac3dec_data.o
    CC  libavcodec/ac3dec_float.o

    Here is a part of the content of the config.log file located in the ffmpeg checked out library (/extensions/ffmpeg/src/main/jni/ffmpeg/ffbuild/config.log :


    /Users/USER/Documents/Android/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/i686-linux-android16-clang -march=i686 -Wl,--as-needed -Wl,-z,noexecstack -pie -fPIE -pie -o /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.o
    /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.o:test.c:function foo: error: undefined reference to 'cexp'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    check_lib libgsm gsm.h gsm_create -lgsm
    check_func_headers gsm.h gsm_create -lgsm
    test_ld cc -lgsm
    test_cc
    BEGIN /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.c
       1   #include
       2   #include
       3   long check_gsm_create(void) { return (long) gsm_create; }
       4   int main(void) { int ret = 0;
       5    ret |= ((intptr_t)check_gsm_create) & 0xFFFF;
       6   return ret; }
    END /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.c
    /Users/USER/Documents/Android/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/i686-linux-android16-clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -march=i686 -std=c11 -fPIE -fomit-frame-pointer -fPIC -pthread -c -o /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.o /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.c
    /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.c:1:10: fatal error: 'gsm.h' file not found

    The gsm.h file is located there : /extensions/ffmpeg/src/main/jni/ffmpeg/libavcodec

    I assume this path has been configured to be used by the build script.

    Any help is much appreciated.

  • FFMPEG in Android NDK - could not load library "libavfilter.so"

    16 janvier 2015, par gcgrant

    I’m trying to use FFMPEG to crop a video using the Android NDK. I can successfully build ffmpeg, but I’m having problems with libavfilter. As soon as I include it in my LOCAL_SHARED_LIBRARIES in Android.mk, then I get this UnsatisfiedLinkError :

    java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libavfilter.so" needed by "videocrop.so"; caused by cannot locate symbol "avcodec_find_best_pix_fmt_of_2" referenced by "libavfilter.so"...
           at java.lang.Runtime.loadLibrary(Runtime.java:371)
           at java.lang.System.loadLibrary(System.java:989)

    (I’m trying to load my library in a static initializer on the Java side with System.loadLibrary).

    The "avcodec_find_best_pix_fmt_of_2" function exists in libavcodec/avcodec.h, so I don’t know why it can’t locate it. The libavfilter.so file (as well as all the other libraries) seems to be building just fine and is located in the libs/ folder. I’ve tried editing the FFMPEG configuration and rebuilding, and also tried changing the the LOCAL_C_INCLUDES in Android.mk to include libavcodec’s header files, but no luck with anything.

    Here’s my Android.mk for my module :

    LOCAL_PATH:= $(call my-dir)

    include $(CLEAR_VARS)

    LOCAL_MODULE := videocrop
    LOCAL_CFLAGS :=
    LOCAL_SRC_FILES := VideoCrop.c
       LOCAL_C_INCLUDES += $(LOCAL_PATH)/../ffmpeg/ffmpeg/$(TARGET_ARCH)/include/libavcodec/
       LOCAL_SHARED_LIBRARIES := libavformat libavutil libavcodec libavfilter

       LOCAL_LDLIBS := -llog
       LOCAL_LDFLAGS +=-ljnigraphics

       include $(BUILD_SHARED_LIBRARY)

    And here’s my Android.mk for the ffmpeg libraries themselves, although its pretty straightforward :

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)
    LOCAL_MODULE := libavfilter
    LOCAL_SRC_FILES := ffmpeg/$(TARGET_ARCH_ABI)/lib/$(LOCAL_MODULE).so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/$(TARGET_ARCH_ABI)/include
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE := libswscale
    LOCAL_SRC_FILES := ffmpeg/$(TARGET_ARCH_ABI)/lib/$(LOCAL_MODULE).so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/$(TARGET_ARCH_ABI)/include
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE := libavcodec
    LOCAL_SRC_FILES := ffmpeg/$(TARGET_ARCH_ABI)/lib/$(LOCAL_MODULE).so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/$(TARGET_ARCH_ABI)/include
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE := libavformat
    LOCAL_SRC_FILES := ffmpeg/$(TARGET_ARCH_ABI)/lib/$(LOCAL_MODULE).so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/$(TARGET_ARCH_ABI)/include
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE := libavutil
    LOCAL_SRC_FILES := ffmpeg/$(TARGET_ARCH_ABI)/lib/$(LOCAL_MODULE).so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/$(TARGET_ARCH_ABI)/include
    include $(PREBUILT_SHARED_LIBRARY)

    LOCAL_PATH:= $(call my-dir)

    I’m at wit’s end. If anyone has any ideas it would be much appreciated.