Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (80)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Les sons

    15 mai 2013, par

Sur d’autres sites (4435)

  • Create a demultiplexer for MPEG 2 TS in android

    17 novembre 2014, par anz

    I have a requirement where I need to extract ID3 tags from a MPEG2 TS(HLS STREAM). MPEG2 has a limited support in android in regards to playing the file. But my concern is to extract the ID3 tags(playing the file is not necessary). Hence I am not concerned with the codecs(encoding and decoding).

    I have explored the following options :

    libstagefright and OpenMax : A playback engine implemented by Google from Android 2.0.
    It has a MediaExtractor is responsible for retrieving track data and the corresponding meta data from the underlying file system or http stream. But according to this post Adding video codec to Android I need to build my own firmware or my own media player.I am hoping I don’t have to go down that path. More info on stagefright and openMax can be found here :

    An overview of Stagefright player

    Android’s Stagefright Media Player Architecture

    Custom Wrapper Codec Integration into Android

    How to integrate a decoder to multimedia framework

    Compiling and using FFMPEG : A complete, cross-platform solution to record, convert and stream audio and video. We can demultiplex ts files with this library as mentioned here :

    FFmpeg - Extracting video and audio from transport stream file (.ts).

    But I am not sure if I will be able to extract the ID3 tags from the HLS Stream. libavformat might be able to do this but I still need to come up with a mechanism for signaling the read metadata to my application.

    Compiling vlc for android : I have compiled vlc for android and made some modifications inside the transport module in demux component for extracting the tags, but it is not able to play all the streams that I am supplying to it.

    After looking through these options , I am still at a fix in how to achieve this. I don’t want to create a media player as I will not be playing the files nor do I want to build my own firmware. Using ffmpeg seems to be the most viable option, but I want to try this without using any third-party or open source library. My questions are :

    Is it even possible to create a demultiplexer from scratch that will work on android ?

    If possible then ,how to go about it ?

    Any options that I have missed ?

    I am new to this. Any help would be greatly appreciated..Thanks

  • Usage ffmpeg with Qt on mac OS X

    7 décembre 2013, par AntonD

    I'm trying to build some app on Mac OS X 10.8.5.

    I'm using Qt 5.1.1 (Clang 3.1, 64 bit) and Qt Creator 2.8.1

    ffmpeg the latest from the git repos.

    ffmpeg was builded successfully with following config

    ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-      libaacplus --enable-libass --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-openssl --enable-libopus --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-shared --disable-static --cc=clang --arch=x86_64 --enable-libxvid --prefix=/Users/ad/dev/ffmpeg/build

    But when i'm trying to build application int Qt i'm receving a lot of errors, smth like :

    Undefined symbols for architecture x86_64:
    "_BN_CTX_free", referenced from:
     _dh_is_valid_public_key in libavformat.a(rtmpdh.o)
    "_BN_CTX_new", referenced from:
     _dh_is_valid_public_key in libavformat.a(rtmpdh.o)
    "_BN_bin2bn", referenced from:
     _ff_dh_compute_shared_secret_key in libavformat.a(rtmpdh.o)
    etc...

    IMHO i'm facing the problem with linking ffmpeg. Because when i builded it i used clang compiler. But Qt used clang++ compiler.
    I tried to rebuild ffmpeg with flag

    --cc=clang++

    instead of

    --cc=clang

    in my first config.
    But then i receiving error :

    ERROR: libaacplus >= 2.0.0 not found

    But libaacplus presented in my enviroment.

    Could anyone say me, please, how can i decide this problem ?

  • Failed to compile x264 library for android, error description : clang:error no such file or directory

    12 janvier 2019, par Lee.Saipeng

    I use a shell script to compile the x264 library to the android platform, the architecture is armeabi-v7a,The x264 library was cloned from github。

    I am sure I have those directories,and I checked the search engine such as google,No one encountered the same situation

    ANDROID_NDK=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b
    SYSROOT=$ANDROID_NDK/platforms/android-16/arch-arm
    CROSS_PREFIX=$ANDROID_NDK/toolchains/arm-linux-androideabi-
    4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
    EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon -
    D__ANDROID__ -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__"
    EXTRA_LDFLAGS="-nostdlib"
    PREFIX=`pwd`/libs/armeabi-v7a

    ./configure --prefix=$PREFIX \
       --host=arm-linux \
       --sysroot=$SYSROOT \
       --cross-prefix=$CROSS_PREFIX \
       --extra-cflags="$EXTRA_CFLAGS" \
       --extra-ldflags="$EXTRA_LDFLAGS" \
       --enable-pic \
       --enable-static \
       --enable-strip \
       --disable-cli \
       --disable-asm
      # --disable-win32thread \
      # --disable-avs \
      # --disable-swscale \
      # --disable-lavf \
      # --disable-ffms \
      # --disable-gpac \
      # --disable-lsmash \
      # --disable-opencl

    make clean
    make STRIP= -j8 install || exit 1

    cp -f $PREFIX/libx264.a $PREFIX

    The error is here
    enter image description here
    The result is that this x264 library cannot be used. Can someone help me ? thanks very much

    Ok, I generated the config.log file during the compilation of x264, I hope it is an error log file, the log content is as follows :

    checking for -Werror=unknown-warning-option... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__  -Werror=unknown-warning-option   --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -o conftest
    cc1: error: -Werror=unknown-warning-option: no option -Wunknown-warning-option
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    int main (void) {  return 0; }
    --------------------------------------------------
    x264 configure script
    Command line options: "--prefix=/Users/Project/bishe/x264/libs/armeabi-v7a" "--host=arm-linux" "--sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm" "--cross-prefix=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-" "--extra-cflags=-march=armv5te" "-msoft-float" "-D__ANDROID__" "-D__ARM_ARCH_5TE__" "-D__ARM_ARCH_5TEJ__" "--extra-ldflags=-nostdlib" "--enable-pic" "--enable-static" "--enable-strip" "--disable-cli" "--disable-asm" "--disable-win32thread" "--disable-avs" "--disable-swscale" "--disable-lavf" "--disable-ffms" "--disable-gpac" "--disable-lsmash" "--disable-opencl"

    checking whether /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc works... yes
    checking whether /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc supports for( int i = 0; i < 9; i++ ); with -std=gnu99... yes
    checking for pthread_create(0,0,0,0); in pthread.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE  -lpthread   --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
    conftest.c:1:21: fatal error: pthread.h: No such file or directory
    #include
                        ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { pthread_create(0,0,0,0); return 0; }
    --------------------------------------------------
    checking for pthread_create(0,0,0,0); in pthread.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE     --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
    conftest.c:1:21: fatal error: pthread.h: No such file or directory
    #include
                        ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { pthread_create(0,0,0,0); return 0; }
    --------------------------------------------------
    checking for log2f(2); in math.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE     --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
    conftest.c:1:18: fatal error: math.h: No such file or directory
    #include
                     ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { log2f(2); return 0; }
    --------------------------------------------------
    checking for strtok_r(0, 0, 0); in string.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE     --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
    conftest.c:1:20: fatal error: string.h: No such file or directory
    #include
                       ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { strtok_r(0, 0, 0); return 0; }
    --------------------------------------------------
    checking for clock_gettime(CLOCK_MONOTONIC, 0); in time.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE     --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
    conftest.c:1:18: fatal error: time.h: No such file or directory
    #include
                     ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { clock_gettime(CLOCK_MONOTONIC, 0); return 0; }
    --------------------------------------------------
    checking for clock_gettime(CLOCK_MONOTONIC, 0); in time.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE  -lrt   --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
    conftest.c:1:18: fatal error: time.h: No such file or directory
    #include
                     ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { clock_gettime(CLOCK_MONOTONIC, 0); return 0; }
    --------------------------------------------------
    checking whether defined(MAP_PRIVATE) is true... no
    --------------------------------------------------
    conftest.c:1:22: fatal error: sys/mman.h: No such file or directory
    #include <sys></sys>mman.h>
                         ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include <sys></sys>mman.h>
    #include
    #if !(defined(MAP_PRIVATE))
    #error  
    #endif
    --------------------------------------------------
    checking for uint32_t test_vec __attribute__ ((vector_size (16))) = {0,1,2,3}; in stdint.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE     --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
    In file included from conftest.c:1:0:
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
    # include_next
                             ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { uint32_t test_vec __attribute__ ((vector_size (16))) = {0,1,2,3}; return 0; }
    --------------------------------------------------
    checking for stdio.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -fPIC  -shared -Wl,-Bsymbolic   --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
    conftest.c:1:19: fatal error: stdio.h: No such file or directory
    #include
                      ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) {  return 0; }
    --------------------------------------------------
    checking for -fno-tree-vectorize... yes
    checking for fseeko(stdin,0,0); in stdio.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -O3 -ffast-math  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize     --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -s -o conftest
    conftest.c:1:19: fatal error: stdio.h: No such file or directory
    #include
                      ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { fseeko(stdin,0,0); return 0; }
    --------------------------------------------------
    checking for fseeko64(stdin,0,0); in stdio.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -O3 -ffast-math  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize     --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -s -o conftest
    conftest.c:1:19: fatal error: stdio.h: No such file or directory
    #include
                      ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { fseeko64(stdin,0,0); return 0; }
    --------------------------------------------------
    checking for _fseeki64(stdin,0,0); in stdio.h... no
    Failed commandline was:
    --------------------------------------------------
    /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -O3 -ffast-math  -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize     --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -s -o conftest
    conftest.c:1:19: fatal error: stdio.h: No such file or directory
    #include
                      ^
    compilation terminated.
    --------------------------------------------------
    Failed program was:
    --------------------------------------------------
    #include
    int main (void) { _fseeki64(stdin,0,0); return 0; }
    --------------------------------------------------
    checking for -Wshadow... yes
    checking for -Wmaybe-uninitialized... yes

    platform:      ARM
    byte order:    little-endian
    system:        LINUX
    cli:           no
    libx264:       internal
    shared:        no
    static:        yes
    asm:           no
    interlaced:    yes
    avs:           no
    lavf:          no
    ffms:          no
    mp4:           no
    gpl:           yes
    thread:        no
    opencl:        no
    filters:       crop select_every
    lto:           no
    debug:         no
    gprof:         no
    strip:         yes
    PIC:           yes
    bit depth:     all
    chroma format: all