Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (68)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (6379)

  • FFMPEG Android concat videos

    19 novembre 2016, par Willian Feltri

    I’m getting strange message when concatening some videos in my Android App. How shoould i fix that ?

    command : String[] cmd = "-auto_convert", "1", "-f", "concat", "-safe", "0", "-i", txtFilePath, "-c", "copy", finalHighlightVideoPath ;

    For the txtFilePath, it has a list of mp4 videos that I need to concat.

    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
                                                         [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb7b621f0] Auto-inserting h264_mp4toannexb bitstream filter
                                                         Input #0, concat, from '/data/user/0/com.qouyou.qouyou/cache/ffmpegvideosfinalfile-2042067805.txt':
                                                           Duration: N/A, start: 0.000000, bitrate: 4364 kb/s
                                                             Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 4296 kb/s, 25.28 fps, 120 tbr, 90k tbn, 180k tbc
                                                             Metadata:
                                                               handler_name    : VideoHandler
                                                             Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 68 kb/s
                                                             Metadata:
                                                               handler_name    : SoundHandler
                                                         Output #0, mp4, to '/storage/emulated/0/Movies/videohighlight.mp4':
                                                           Metadata:
                                                             encoder         : Lavf57.25.100
                                                             Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=2-31, 4296 kb/s, 25.28 fps, 120 tbr, 90k tbn, 90k tbc
                                                             Metadata:
                                                               handler_name    : VideoHandler
                                                             Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 68 kb/s
                                                             Metadata:
                                                               handler_name    : SoundHandler
                                                         Stream mapping:
                                                           Stream #0:0 -> #0:0 (copy)
                                                           Stream #0:1 -> #0:1 (copy)
                                                         Press [q] to stop, [?] for help
                                                         [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb7b67030] Auto-inserting h264_mp4toannexb bitstream filter
                                                         [mp4 @ 0xb7bda280] Non-monotonous DTS in output stream 0:0; previous: 377898, current: 64352; changing to 377899. This may result in incorrect timestamps in the output file.
                                                         [mp4 @ 0xb7bda280] Non-monotonous DTS in output stream 0:0; previous: 377899, current: 64864; changing to 377900. This may result in incorrect timestamps in the output file.
                                                         [mp4 @ 0xb7bda280] Non-monotonous DTS in output stream 0:1; previous: 201520, current: 186675; changing to 201521. This may result in incorrect timestamps in the output file.
                                                         [mp4 @ 0xb7bda280] Non-monotonous DTS in output stream 0:0; previous: 377900, current: 65376; changing to 377901. This may result in incorrect timestamps in the output file.
                                                         [mp4 @ 0xb7bda280] Non-monotonous DTS in output stream 0:1; previous: 201521, current: 187699; changing to 201522. This may result in incorrect timestamps in the output file.
                                                         [mp4 @ 0xb7bda280] Non-monotonous DTS in output stream 0:1; previous: 201522, current: 188723; changing to 201523. This may result in incorrect timestamps in the output file.
                                                         [mp4 @ 0xb7bda280] Non-monotonous DTS in output stream 0:0; previous: 377901, current: 65888; changing to 377902. This may result in incorrect timestamps in the output file.
                                                         [mp4 @ 0xb7bda280] Non-monotonous DTS in output stream 0:1; previous: 201523, current: 189747; changing to 201524. This may result in incorrect timestamps in
  • ffmpeg library Androd : permission denied rtsp

    26 avril 2020, par DOMENICO TAFFURI

    I'm trying to record an .mp4 file from rtsp source on Android using ffmpeg library. I enabled the permission for Writing external storage but I get "Permission denied" from rtsp source. If I use the same source on VLC, it works.

    



    I/FFmpeg: Loading FFmpeg for armv7 CPU
I/System.out: INIZIO
W/VRSystemServiceManager: vr service is not alive
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwPointEventFilter: support AFT
I/System.out: [/data/user/0/com.example.rtsp/files/ffmpeg, -i, rtsp://xxxxxxx:xxxxx@ipAddress:554/stream2, -acodec, copy, -vcodec, copy, /storage/emulated/0/Movies/recording1.mp4]
    null
    null
    Calling by::className:com.github.hiteshsondhi88.libffmpeg.ShellCommand  MethodName:run
I/OpenGLRenderer: Initialized EGL, version 1.4
W/linker: /vendor/lib64/libhwuibp.so: unused DT entry: type 0xf arg 0xe3a
I/System.out: PROGRESS: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
I/System.out: PROGRESS:   built with gcc 4.8 (GCC)
    PROGRESS:   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=
    PROGRESS:   libavutil      55. 17.103 / 55. 17.103
    PROGRESS:   libavcodec     57. 24.102 / 57. 24.102
    PROGRESS:   libavformat    57. 25.100 / 57. 25.100
    PROGRESS:   libavdevice    57.  0.101 / 57.  0.101
    PROGRESS:   libavfilter     6. 31.100 /  6. 31.100
    PROGRESS:   libswscale      4.  0.100 /  4.  0.100
    PROGRESS:   libswresample   2.  0.101 /  2.  0.101
    PROGRESS:   libpostproc    54.  0.100 / 54.  0.100
    PROGRESS: rtsp://xxxxxxx:xxxxx@ipAddress:554/stream2: Permission denied
I/System.out: FAIL: 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
    rtsp://xxxxxxx:xxxxx@ipAddress/stream2: Permission denied
    FINISH


    


  • How to reduce conversion/compression time in FFmpeg and How to merge command ?

    21 novembre 2018, par Patel Pinkal

    I want to reduce time taken to create new video after adding text in original video using FFmpeg
    I had tried to search and I found this code given below for reducing time.

    -y -i /sdcard/videokit/in.mp4 -strict experimental -vcodec libx264 -preset ultrafast -crf 24 -acodec aac -ar 44100 -ac 2 -b 36000k -s 1280x720 -aspect 16:9 -metadata:s:v:0 rotate=0 /sdcard/videokit/out3.mp4

    Now, I want to add text in video and it is done in FFmpeg, by this command and its 100% working.

     String[] addTextCommand = {
               "-i",
               "" + realFilePath,
               "-vf",
               "drawtext=fontsize=50:fontfile=/storage/emulated/0/Download/Cerbetica-regular.ttf:fontcolor=red:text='"
                       + strText +
                       "':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2",
               "-strict",
               "-2",
               outputFilePath};

    Now my problem is how do I merge this two code and make one single command to make an edited video and also take less time to create a new video. In this, I have tried this command but it’s not working.

      String[] addTextCommand = {
               "-i",
               "" + realVideoPath,
               "-vf",
               "-c:v", "libx264",
               "-preset", "ultrafast",
               "-crf", "24",
               "-acodec", "aac",
               "-ar", "44100",
               "-ac", "2",
               "-b", "36000k",
               "-s", "1280x720",
               "-aspect", "16:9",
               "-metadata:s:v:0 rotate=0",
               "drawtext=fontsize=50:fontfile=/storage/emulated/0/Download/Cerbetica-regular.ttf:fontcolor=red:text='"
                       + strText +
                       "':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2",
               "-strict",
               "-2",
               outputFilePath};

    If anyone has an idea how to make command of FFmpeg please describe it and explain how to use it.

    Using command of @Mulvya I got this in the console.

        D/MainActivity: FAILED with output : WARNING: linker: /data/user/0/com.inheritx.videoprocessing/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
                      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/i686-linux-android- --arch=x86 --cpu=i686 --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/x86 --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --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
                      Unrecognized option '2'.
                      Error splitting the argument list: Option not found
      D/MainActivity: Finished command : ffmpeg -i
      D/MainActivity: Finished command : ffmpeg /storage/emulated/0/Download/spacetestSMALL_512kb.mp4
      D/MainActivity: Finished command : ffmpeg -vf
      D/MainActivity: Finished command : ffmpeg drawtext=fontsize=50:fontfile=/system/fonts/DroidSans.ttf:fontcolor=red:text='Hello':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2
      D/MainActivity: Finished command : ffmpeg -c:v
      D/MainActivity: Finished command : ffmpeg libx264
      D/MainActivity: Finished command : ffmpeg -preset
      D/MainActivity: Finished command : ffmpeg ultrafast
      D/MainActivity: Finished command : ffmpeg -crf
      D/MainActivity: Finished command : ffmpeg 24
      D/MainActivity: Finished command : ffmpeg -acodec
      D/MainActivity: Finished command : ffmpeg aac
      D/MainActivity: Finished command : ffmpeg -ar
      D/MainActivity: Finished command : ffmpeg 44100
      D/MainActivity: Finished command : ffmpeg -s
      D/MainActivity: Finished command : ffmpeg 1280x720
      D/MainActivity: Finished command : ffmpeg -aspect
      D/MainActivity: Finished command : ffmpeg 16:9
      D/MainActivity: Finished command : ffmpeg -metadata:s:v:0 rotate=0
      D/MainActivity: Finished command : ffmpeg -strict
      D/MainActivity: Finished command : ffmpeg -2
      D/MainActivity: Finished command : ffmpeg /storage/emulated/0/Movies/add_text25.mp4