Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (44)

  • 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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (9749)

  • Android ffmpeg fails on second run

    5 juillet 2017, par Ante Braovic

    I have a problem with https://github.com/WritingMinds/ffmpeg-android-java. It’s Java wrapper lib for ffmpeg on Android and is was working pretty good. But is seems that you can not run two video encodings in a row. Actually it will encode video only once in a lifetime. Every next time you try to encode a video it will freeze. This is the output that I get when it freeze :

    Build.CPU_ABI : arm64-v8a
    Loading FFmpeg for armv7 CPU
    Running publishing updates method
    ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8 (GCC)
     configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20160731-WA0005.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 1
       compatible_brands: mp41mp42isom
       creation_time   : 2016-07-31 17:24:29
     Duration: 00:00:13.63, start: 0.000000, bitrate: 1641 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 544x960, 1573 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2016-07-31 17:24:29
         handler_name    : Core Media Video
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 62 kb/s (default)
       Metadata:
         creation_time   : 2016-07-31 17:24:29
         handler_name    : Core Media Audio

    I’m not sure what is going on. It seems like ffmpeg leaves something after the first encoding that locks it for any future encoding. And it will work only if i uninstall and then reinstall application.

    • If you kill an app from background this issue remains.
    • If you kill it and restart the device issue remains.
    • If you use force quit in the settings the issue remains.

    Only reinstall enables me to encode new video once. After that nothing works.

  • Better performance ffmpeg android

    9 mars 2020, par Brbcod1

    I’m running this command on ffmpeg for android :

    -i MYVIDEO -map 0:s:0? -c:v copy -preset veryfast -c:a copy -hls_flags single_file outputFile.m3u8 -frames:v 1 -q:v 2 outImage.jpg -y

    this is the ffmpeg library I’m using
    FFmpeg-Android-Java

    The speed of this command on the device is around 0.0900x (maximum I got is 0.1000x) : I need the speed to increase.

    Is it possible to increase the performance of ffmpeg or it depends on the device ?

    Ideally, I would like the ’time’ parameter that you see in the output to match the elapsed time, so each second elapsed is one second processed (right now, it needs around 15/20 seconds before the ’time’ parameter reaches ’00:00:01.00’).

    What do you suggest ?

    This is the log of ffmpeg when running the command :

    ffmpeg version n4.0-39-gda39990 Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 4.9.x (GCC) 20150123 (prerelease)
    configuration: --target-os=linux --cross-prefix=/root/bravobit/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/root/bravobit/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-ffprobe --enable-libopus --enable-libvorbis --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-libvpx --enable-libass --enable-yasm --enable-pthreads --disable-debug --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-linux-perf --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --enable-nonfree --enable-network --enable-avresample --enable-avformat --enable-avcodec --enable-indev=lavfi --enable-hwaccels --enable-ffmpeg --enable-zlib --enable-gpl --enable-small --enable-nonfree --pkg-config=pkg-config --pkg-config-flags=--static --prefix=/root/bravobit/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/root/bravobit/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/root/bravobit/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-cxxflags=
    libavutil 56. 14.100 / 56. 14.100
    libavcodec 58. 18.100 / 58. 18.100
    libavformat 58. 12.100 / 58. 12.100
    libavdevice 58. 3.100 / 58. 3.100
    libavfilter 7. 16.100 / 7. 16.100
    libavresample 4. 0. 0 / 4. 0. 0
    libswscale 5. 1.100 / 5. 1.100
    libswresample 3. 1.100 / 3. 1.100
    libpostproc 55. 1.100 / 55. 1.100
    .....
    .....
    .....
    frame= 8 fps=0.0 q=-1.0 q=0.0 size=N/A time=00:00:00.09 bitrate=N/A speed=0.16x
    frame= 11 fps=9.0 q=-1.0 q=0.0 size=N/A time=00:00:00.14 bitrate=N/A dup=0 drop=3 speed=0.12x
    frame= 13 fps=7.1 q=-1.0 q=0.0 size=N/A time=00:00:00.17 bitrate=N/A dup=0 drop=5 speed=0.0977x
    frame= 17 fps=7.1 q=-1.0 q=0.0 size=N/A time=00:00:00.24 bitrate=N/A dup=0 drop=9 speed=0.103x
    frame= 20 fps=6.9 q=-1.0 q=0.0 size=N/A time=00:00:00.29 bitrate=N/A dup=0 drop=12 speed=0.102x
    frame= 24 fps=6.7 q=-1.0 q=0.0 size=N/A time=00:00:00.36 bitrate=N/A dup=0 drop=16 speed=0.102x
    frame= 31 fps=6.6 q=-1.0 q=0.0 size=N/A time=00:00:00.47 bitrate=N/A dup=0 drop=23 speed=0.102x
    frame= 34 fps=6.4 q=-1.0 q=0.0 size=N/A time=00:00:00.52 bitrate=N/A dup=0 drop=26 speed=0.0996x
    frame= 37 fps=6.3 q=-1.0 q=0.0 size=N/A time=00:00:00.57 bitrate=N/A dup=0 drop=29 speed=0.0989x
    frame= 40 fps=6.2 q=-1.0 q=0.0 size=N/A time=00:00:00.63 bitrate=N/A dup=0 drop=32 speed=0.0982x
    frame= 43 fps=6.1 q=-1.0 q=0.0 size=N/A time=00:00:00.68 bitrate=N/A dup=0 drop=35 speed=0.0971x
    frame= 46 fps=6.1 q=-1.0 q=0.0 size=N/A time=00:00:00.73 bitrate=N/A dup=0 drop=38 speed=0.0967x
    frame= 50 fps=6.1 q=-1.0 q=0.0 size=N/A time=00:00:00.79 bitrate=N/A dup=0 drop=42 speed=0.0973x
    frame= 53 fps=5.9 q=-1.0 q=0.0 size=N/A time=00:00:00.84 bitrate=N/A dup=0 drop=45 speed=0.0947x
    frame= 56 fps=5.8 q=-1.0 q=0.0 size=N/A time=00:00:00.89 bitrate=N/A dup=0 drop=48 speed=0.0935x
    frame= 59 fps=5.8 q=-1.0 q=0.0 size=N/A time=00:00:00.94 bitrate=N/A dup=0 drop=51 speed=0.0934x
    frame= 62 fps=5.8 q=-1.0 q=0.0 size=N/A time=00:00:00.99 bitrate=N/A dup=0 drop=54 speed=0.0934x
    frame= 64 fps=5.7 q=-1.0 q=0.0 size=N/A time=00:00:01.03 bitrate=N/A dup=0 drop=56 speed=0.0921x
  • Error setting option pix_fmt to value -1 : Consider increasing the value for the 'analyzeduration' and 'probesize' options

    4 mars 2019, par Android Developer

    I am getting below error for some videos while using FFMpeg.

    ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n
    built with gcc 4.8 (GCC)\n configuration : —target-os=linux
    —cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
    —arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
    —enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
    -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
    -Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 /
    57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 /
    54. 0.100\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf41a4000] Could not find codec parameters for stream 0 (Video : h264 (avc1 / 0x31637661), none,
    1280x720, 1080 kb/s) : unspecified pixel format\nConsider increasing
    the value for the ’analyzeduration’ and ’probesize’ options
    \nInput #0,
    mov,mp4,m4a,3gp,3g2,mj2, from
    ’/storage/emulated/0/Movies/cut_video1.mp4’ :\n Metadata :\n
    major_brand : isom\n minor_version : 512\n
    compatible_brands : isomiso2avc1mp41\n encoder :
    Lavf57.25.100\n Duration : 00:04:25.01, start : 0.000000, bitrate : 1193
    kb/s\n Stream #0:0(und) : Video : h264 (avc1 / 0x31637661), none,
    1280x720, 1080 kb/s, 25 fps, 25 tbr, 12800 tbn, 25600 tbc (default)\n
    Metadata :\n handler_name : VideoHandler\n Stream #0:1(eng) :
    Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
    (default)\n Metadata :\n handler_name :
    SoundHandler\n[buffer @ 0xf3fe1060] Unable to parse option value
    \"-1\" as pixel format\n Last message repeated 1 times\n[buffer @
    0xf3fe1060] Error setting option pix_fmt to value -1.\n[graph 0 input
    from stream 0:0 @ 0xf41ae3d0] Error applying options to the
    filter.\nError opening filters !\n

    Sample command

    "-y", "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-i", yourRealPath, "-an", "-filter:v", "setpts=2.0*PTS", filePath

    What does the above error means ?And how can i resolve it ?