Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (112)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (9687)

  • ffmpeg - Concat multi mp4 files with audio file not working

    29 mars 2017, par Thanh Dao

    I follow this thread to concat multi mp4 files with audio file.
    But its not success. Have a lots error notifications had been displayed. I dont know how to fix it.
    Below is my command :

    "ffmpeg" -f concat -safe 0 \
    -i /path/to/text.txt \
    -i /path/to/audio.mp3 -vsync vfr -vf scale="640:640" -pix_fmt yuv420p \
    /path/to/output.mp4 2>&1

    The detail contents of text.txt

    file '/path/to/file1.mp4'
    file '/path/to/file2.mp4'
    file '/path/to/file3.mp4'
    file '/path/to/file4.mp4'
    file '/path/to/file5.mp4'
    file '/path/to/file6.mp4'
    file '/path/to/file7.mp4'
    file '/path/to/file8.mp4'
    file '/path/to/file9.mp4'
    file '/path/to/file10.mp4'
    file '/path/to/file11.mp4'
    file '/path/to/file12.mp4'
    file '/path/to/file13.mp4'
    file '/path/to/file14.mp4'
    file '/path/to/file15.mp4'
    file '/path/to/file16.mp4'
    file '/path/to/file17.mp4'
    file '/path/to/file18.mp4'

    And some lines of output errors :

    [concat @ 0x357e620] DTS 192000 < 229888 out of order
    [h264 @ 0x36920e0] top block unavailable for requested intra mode -1
    [h264 @ 0x36920e0] error while decoding MB 32 0
    [h264 @ 0x36920e0] concealing 2025 DC, 2025 AC, 2025 MV errors in I frame
    [h264 @ 0x36b7a80] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
    [h264 @ 0x36ff440] corrupted macroblock 26 1 (total_coeff=-1)
    [h264 @ 0x36ff440] error while decoding MB 26 1
    [h264 @ 0x36ff440] concealing 2003 DC, 2003 AC, 2003 MV errors in P frame
    [h264 @ 0x371af40] concealing 1456 DC, 1456 AC, 1456 MV errors in P frame
    [h264 @ 0x3736a40] ref 5 overflow
    [h264 @ 0x3736a40] error while decoding MB 1 1
    [h264 @ 0x3736a40] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
    [h264 @ 0x3752520] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
    [h264 @ 0x376dfa0] P sub_mb_type 8 out of range at 2 1
    [h264 @ 0x376dfa0] error while decoding MB 2 1
    [h264 @ 0x376dfa0] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
    [h264 @ 0x37a55a0] ref 6 overflow
    [h264 @ 0x37a55a0] error while decoding MB 3 1
    [h264 @ 0x37a55a0] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
    [h264 @ 0x3789aa0] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
    [h264 @ 0x36b7a80] ref 5 overflow
    [h264 @ 0x36b7a80] error while decoding MB 4 1
    [h264 @ 0x36b7a80] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
    [h264 @ 0x36920e0] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
  • ffmpeg codec error on audio file

    31 juillet 2013, par foosion

    I have some m4a files that will not play properly using the google music player app on my Android phone, although they play fine on most everything else. I thought the problem was the container and thought "ffmpeg -i bad.m4a -codec copy good.m4a" might help. However, when I run on the problem files, I get error messages. Running this command on non-problem files has not generated error messages.

    Please suggest ways to fix (other than re-encoding).

       [D:\temp\dl]ffmpeg -i "01 - The Day Begins.m4a" -codec copy day.m4a
    ffmpeg version N-55066-gc96b3ae Copyright (c) 2000-2013 the FFmpeg developers
     built on Jul 29 2013 18:05:45 with gcc 4.7.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
    amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
    enable-libxvid --enable-zlib
     libavutil      52. 40.100 / 52. 40.100
     libavcodec     55. 19.100 / 55. 19.100
     libavformat    55. 12.102 / 55. 12.102
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 82.100 /  3. 82.100
     libswscale      2.  4.100 /  2.  4.100
     libswresample   0. 17.103 /  0. 17.103
     libpostproc    52.  3.100 / 52.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002da300] stream 0, timescale not set
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01 - The Day Begins.m4a':
     Metadata:
       major_brand     : m4a
       minor_version   : 0
       compatible_brands: M4A mp4isom
       creation_time   : 2003-07-06 20:27:46
       track           : 1
       genre           : Rock
       title           : The Day Begins
       artist          : Moody Blues
       album           : Days of Future Passed
       date            : 1967
     Duration: 00:05:50.83, start: 0.000000, bitrate: 166 kb/s
       Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 15
    9 kb/s
       Metadata:
         creation_time   : 2003-07-06 20:27:46
         handler_name    : Apple Sound Media Handler
       Stream #0:1(eng): Data: none (mp4s / 0x7334706D)
       Metadata:
         creation_time   : 2003-07-06 20:27:46
         handler_name    : Apple MPEG-4 Scene Media Handler
       Stream #0:2(eng): Data: none (mp4s / 0x7334706D)
       Metadata:
         creation_time   : 2003-07-06 20:27:46
         handler_name    : Apple MPEG-4 ODSM Media Handler
       Stream #0:3: Video: png, rgb24, 240x240 [SAR 2834:2834 DAR 1:1], 90k tbr, 90
    k tbn, 90k tbc
    [ipod @ 000000000031dd40] track 0: could not find tag, codec not currently suppo
    rted in container
    Output #0, ipod, to 'day.m4a':
     Metadata:
       major_brand     : m4a
       minor_version   : 0
       compatible_brands: M4A mp4isom
       date            : 1967
       track           : 1
       genre           : Rock
       title           : The Day Begins
       artist          : Moody Blues
       album           : Days of Future Passed
       encoder         : Lavf55.12.102
       Stream #0:0: Video: png, rgb24, 240x240 [SAR 2834:2834 DAR 1:1], q=2-31, 90k
    tbn, 90k tbc
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 159 kb/s

       Metadata:
         creation_time   : 2003-07-06 20:27:46
         handler_name    : Apple Sound Media Handler
    Stream mapping:
     Stream #0:3 -> #0:0 (copy)
     Stream #0:0 -> #0:1 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?): Error
    number -1 occurred
  • Building my own FFmpeg for android in Ubuntu 14.04 LTS (Vitamio)

    16 août 2016, par EduardoUstarez

    I am trying to build FFmpeg because I realized that my app doesn’t work for android 6.0 in x86 devices before that I have published my app with targetsdkversion 23 (It has text relocations) and now I can’t publish my app using targetsdkversion 22 (This is the way that I could fix the problem). So I read a lot about this problem It seems there isn’t a solution. Some people say that I can compile ffmpeg using —disable-asm flag and I can solve the problem. I want to generate a libffmeg.so for vitamio that works on x86 android 6.0.

    I am using

    Ubuntu 14.04 LTS

    Android NDK r12b

    And my example project is Vitamio-5.0.2 from Download

    So I am working on this tutorial

    This is my FFmpeg-Android.sh file

    #!/bin/bash

    export ANDROID_NDK=/home/myuser/Downloads/android-ndk-r12b

    DEST=`pwd`/build/ffmpeg && rm -rf $DEST
    SOURCE=`pwd`/ffmpeg

    if [ -d ffmpeg ]; then
     cd ffmpeg
    else
     git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
     cd ffmpeg
    fi

    git reset --hard
    git clean -f -d
    git checkout `cat ../ffmpeg-version`
    patch -p1 <../FFmpeg-VPlayer.patch
    [ $PIPESTATUS == 0 ] || exit 1

    git log --pretty=format:%H -1 > ../ffmpeg-version

    TOOLCHAIN=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86
    SYSROOT=$ANDROID_NDK/platforms/android-14/arch-arm/
    $ANDROID_NDK/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=$TOOLCHAIN

    export PATH=$TOOLCHAIN/bin:$PATH
    export CC="ccache arm-linux-androideabi-gcc"
    export LD=arm-linux-androideabi-ld
    export AR=arm-linux-androideabi-ar

    CFLAGS="-O3 -Wall -mthumb -pipe -fpic -fasm \
     -finline-limit=300 -ffast-math \
     -fstrict-aliasing -Werror=strict-aliasing \
     -fmodulo-sched -fmodulo-sched-allow-regmoves \
     -Wno-psabi -Wa,--noexecstack \
     -D__ARM_ARCH_5__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5TE__ \
     -DANDROID -DNDEBUG"

    FFMPEG_FLAGS="--target-os=linux \
     --arch=arm \
     --enable-cross-compile \
     --cross-prefix=arm-linux-androideabi- \
     --enable-shared \
     --enable-static \
     --disable-symver \
     --disable-doc \
     --disable-ffplay \
     --disable-ffmpeg \
     --disable-ffprobe \
     --disable-ffserver \
     --disable-avdevice \
     --disable-avfilter \
     --disable-encoders \
     --disable-muxers \
     --disable-filters \
     --disable-devices \
     --disable-everything \
     --enable-protocols  \
     --enable-parsers \
     --enable-demuxers \
     --enable-decoders \
     --enable-bsfs \
     --enable-network \
     --enable-swscale  \
     --disable-demuxer=sbg \
     --disable-demuxer=dts \
     --disable-parser=dca \
     --disable-decoder=dca \
     --disable-asm \
     --enable-version3"


    for version in neon armv7 vfp armv6; do

     cd $SOURCE

     case $version in
       neon)
         EXTRA_CFLAGS="-march=armv7-a -mfpu=neon -mfloat-abi=softfp -mvectorize-with-neon-quad"
         EXTRA_LDFLAGS="-Wl,--fix-cortex-a8"
         ;;
       armv7)
         EXTRA_CFLAGS="-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
         EXTRA_LDFLAGS="-Wl,--fix-cortex-a8"
         ;;
       vfp)
         EXTRA_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=softfp"
         EXTRA_LDFLAGS=""
         ;;
       armv6)
         EXTRA_CFLAGS="-march=armv6"
         EXTRA_LDFLAGS=""
         ;;
       *)
         EXTRA_CFLAGS=""
         EXTRA_LDFLAGS=""
         ;;
     esac

     PREFIX="$DEST/$version" && mkdir -p $PREFIX
     FFMPEG_FLAGS="$FFMPEG_FLAGS --prefix=$PREFIX"

     ./configure $FFMPEG_FLAGS --extra-cflags="$CFLAGS $EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" | tee $PREFIX/configuration.txt
     cp config.* $PREFIX
     [ $PIPESTATUS == 0 ] || exit 1

     make clean
     make -j4 || exit 1
     make install || exit 1

     rm libavcodec/inverse.o
     $CC -lm -lz -shared --sysroot=$SYSROOT -Wl,--no-undefined -Wl,-z,noexecstack $EXTRA_LDFLAGS libavutil/*.o libavutil/arm/*.o libavcodec/*.o libavcodec/arm/*.o libavformat/*.o libswresample/*.o libswscale/*.o -o $PREFIX/libffmpeg.so

     cp $PREFIX/libffmpeg.so $PREFIX/libffmpeg-debug.so
     arm-linux-androideabi-strip --strip-unneeded $PREFIX/libffmpeg.so

    done

    https://www.vitamio.org/en/2013/Tutorial_0509/13.html

    The other files are the same as url provides

    Then the result is

    enter image description here

    I have deleted -Werror=strict-aliasing from CFLAGS and it generates the other .so files less libffmpeg.so

    enter image description here

    The error is in this code line

    $CC -lm -lz -shared --sysroot=$SYSROOT -Wl,--no-undefined -Wl,-z,noexecstack $EXTRA_LDFLAGS libavutil/*.o libavutil/arm/*.o libavcodec/*.o libavcodec/arm/*.o libavformat/*.o libswresample/*.o libswscale/*.o -o $PREFIX/libffmpeg.so

    I have removed ccache from export CC="ccache arm-linux-androideabi-gcc"
    and I have an error

    enter image description here

    I have changed —disable-asm to —enable-asm and I have compiled FFmpeg-Android.sh correctly

    enter image description here

    I copied the libffmpeg.so generated in armv6, armv7, neon and vfp files in my android studio project.

    I don’t know if I copied libffmpeg.so files in the correct place

    armv6 -> arm64-v8a
    armv7 -> armeabi-v7a
    neon  -> x86

    enter image description here

    And the result in Android Studio

    I/Vitamio[5.0.2][Player]: Copyright (c) YIXIA (http://yixia.com).
                             THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com)
    I/Vitamio[5.0.2][Player]: LOAD FFMPEG START: libffmpeg.so
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, av_copy_packet
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_register_all
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_uninit
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_get_by_name
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_inout_alloc
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_inout_free
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_graph_alloc
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_graph_create_filter
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_graph_parse
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_graph_parse2
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_graph_parse_ptr
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_graph_config
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, av_buffersrc_add_frame
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, av_buffersink_get_buffer_ref
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_unref_bufferp
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, avfilter_graph_free
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ffmpeg, av_abuffersink_params_alloc
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_shutdown
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_free
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_CTX_free
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_load_error_strings
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_library_init
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_CTX_new
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, TLS_client_method
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_new
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_set_fd
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_connect
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_read
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, SSL_write
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM ssl, ERR_print_errors_fp
    I/Vitamio[5.0.2][Player]: LOAD FFMPEG END: libffmpeg.so
    I/Vitamio[5.0.2][Player]: LOAD VVO START: libvvo.9.so
    E/Vitamio[5.0.2][Player]: FIND_NAME_SYM vvo, render_yuv
    I/Vitamio[5.0.2][Player]: LOAD VVO END: libvvo.9.so
    I/Vitamio[5.0.2][Player]: LOAD VAO START: libvao.0.so
    I/Vitamio[5.0.2][Player]: LOAD VAO END: libvao.0.so
    I/Vitamio[5.0.2][Player]: VPLAYER INIT BEGIN
    I/Vitamio[5.0.2][Player]: Application package name: **.*******.******************.*********

                             --------- beginning of crash
    A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 3334 (ez.**********
    Application terminated.