Recherche avancée

Médias (91)

Autres articles (97)

  • 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 (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (11372)

  • why FFMPEG is not convert some audio file in 64k in android ?

    18 décembre 2019, par tailor

    There are many question regarding ffmpeg and might be this should be duplicate.
    I tried to convert any mp3 file in to lower bitrate 64k.
    It gets successfully but some mp3 files are not converted and ffmpeg direct call to onFinish command.

    Here is my command line :
    according to this

    -i /sdcard/vk2/in.mp3 -ar 44100 -ac 2 -ab 64k -f mp3 /sdcard/videokit/out.mp3";

    Here is my logcate
    on successfully

    2019-12-18 04:18:26.741 7733-7733/myapp I/audioCompression: start
    2019-12-18 04:18:27.104 7733-7733/myapp I/audioCompression: in_progress
    2019-12-18 04:18:27.104 7733-7733/myapp I/audioCompression: in_progress
    2019-12-18 04:18:42.165 7733-7733/myapp I/audioCompression: success
    2019-12-18 04:18:42.165 7733-7733/myapp I/audioCompression: finish

    otherwise

    2019-12-18 04:18:26.741 7733-7733/myapp I/audioCompression: start
    2019-12-18 04:18:27.104 7733-7733/myapp I/audioCompression: in_progress
    2019-12-18 04:18:27.104 7733-7733/myapp I/audioCompression: in_progress
    2019-12-18 04:18:42.165 7733-7733/myapp I/audioCompression: finish

    report

          2019-12-18 05:34:45.965 10635-10635/myapp V/audioCompression: start command : ffmpeg
    2019-12-18 05:34:46.124 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
    2019-12-18 05:34:46.124 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   built with gcc 4.8 (GCC)
    2019-12-18 05:34:46.124 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   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=
    2019-12-18 05:34:46.124 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   libavutil      55. 17.103 / 55. 17.103
    2019-12-18 05:34:46.124 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   libavcodec     57. 24.102 / 57. 24.102
    2019-12-18 05:34:46.124 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   libavformat    57. 25.100 / 57. 25.100
    2019-12-18 05:34:46.124 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   libavdevice    57.  0.101 / 57.  0.101
    2019-12-18 05:34:46.124 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   libavfilter     6. 31.100 /  6. 31.100
    2019-12-18 05:34:46.125 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   libswscale      4.  0.100 /  4.  0.100
    2019-12-18 05:34:46.125 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   libswresample   2.  0.101 /  2.  0.101
    2019-12-18 05:34:46.125 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   libpostproc    54.  0.100 / 54.  0.100
    2019-12-18 05:34:46.125 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg [mp3 @ 0xf6519000] Skipping 0 bytes of junk at 0.
    2019-12-18 05:34:46.125 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg [mp3 @ 0xf6519000] Estimating duration from bitrate, this may be inaccurate
    2019-12-18 05:34:46.125 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg Input #0, mp3, from '/storage/emulated/0/Download/HumnavaMereSongsMp3ioRingtone.mp3':
    2019-12-18 05:34:46.125 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   Duration: 00:00:24.19, start: 0.000000, bitrate: 320 kb/s
    2019-12-18 05:34:46.125 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg     Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    2019-12-18 05:34:46.126 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg Output #0, mp3, to '/storage/emulated/0/VideoCompressor/Temp/ok.mp3':
    2019-12-18 05:34:46.126 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   Metadata:
    2019-12-18 05:34:46.126 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg     TSSE            : Lavf57.25.100
    2019-12-18 05:34:46.126 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg     Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 64 kb/s
    2019-12-18 05:34:46.126 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg     Metadata:
    2019-12-18 05:34:46.126 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg       encoder         : Lavc57.24.102 libmp3lame
    2019-12-18 05:34:46.126 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg Stream mapping:
    2019-12-18 05:34:46.127 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg   Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
    2019-12-18 05:34:46.127 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg Press [q] to stop, [?] for help
    2019-12-18 05:34:46.577 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=       6kB time=00:00:00.73 bitrate=  68.9kbits/s speed=1.46x    
    2019-12-18 05:34:47.082 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      13kB time=00:00:01.56 bitrate=  66.3kbits/s speed=1.55x    
    2019-12-18 05:34:47.583 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      19kB time=00:00:02.37 bitrate=  65.5kbits/s speed=1.57x    
    2019-12-18 05:34:48.094 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      26kB time=00:00:03.21 bitrate=  65.1kbits/s speed=1.59x    
    2019-12-18 05:34:48.607 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      32kB time=00:00:04.05 bitrate=  64.9kbits/s speed= 1.6x    
    2019-12-18 05:34:49.110 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      38kB time=00:00:04.85 bitrate=  64.7kbits/s speed= 1.6x    
    2019-12-18 05:34:49.616 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      45kB time=00:00:05.66 bitrate=  64.6kbits/s speed= 1.6x    
    2019-12-18 05:34:50.117 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      51kB time=00:00:06.47 bitrate=  64.6kbits/s speed= 1.6x    
    2019-12-18 05:34:50.620 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      57kB time=00:00:07.28 bitrate=  64.5kbits/s speed= 1.6x    
    2019-12-18 05:34:51.128 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      64kB time=00:00:08.12 bitrate=  64.4kbits/s speed=1.61x    
    2019-12-18 05:34:51.635 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      70kB time=00:00:08.93 bitrate=  64.4kbits/s speed=1.61x    
    2019-12-18 05:34:52.143 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      77kB time=00:00:09.77 bitrate=  64.4kbits/s speed=1.61x    
    2019-12-18 05:34:52.651 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      83kB time=00:00:10.60 bitrate=  64.3kbits/s speed=1.61x    
    2019-12-18 05:34:53.156 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      90kB time=00:00:11.41 bitrate=  64.3kbits/s speed=1.61x    
    2019-12-18 05:34:53.659 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=      96kB time=00:00:12.22 bitrate=  64.3kbits/s speed=1.61x    
    2019-12-18 05:34:54.159 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     102kB time=00:00:13.03 bitrate=  64.3kbits/s speed=1.61x    
    2019-12-18 05:34:54.676 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     109kB time=00:00:13.87 bitrate=  64.3kbits/s speed=1.61x    
    2019-12-18 05:34:55.177 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     115kB time=00:00:14.68 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:34:55.685 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     122kB time=00:00:15.51 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:34:56.208 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     128kB time=00:00:16.35 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:34:56.701 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     135kB time=00:00:17.16 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:34:57.203 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     141kB time=00:00:17.97 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:34:57.717 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     147kB time=00:00:18.80 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:34:58.233 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     154kB time=00:00:19.64 bitrate=  64.2kbits/s speed=1.62x    
    2019-12-18 05:34:58.736 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     160kB time=00:00:20.45 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:34:59.238 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     167kB time=00:00:21.26 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:34:59.743 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     173kB time=00:00:22.07 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:35:00.258 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     179kB time=00:00:22.91 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:35:00.770 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     186kB time=00:00:23.72 bitrate=  64.2kbits/s speed=1.61x    
    2019-12-18 05:35:01.017 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg size=     189kB time=00:00:24.19 bitrate=  64.1kbits/s speed=1.62x    
    2019-12-18 05:35:01.017 10635-10635/myapp V/audioCompression: in_progress command : ffmpeg video:0kB audio:189kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.130598%
    2019-12-18 05:35:01.029 10635-10635/myapp V/audioCompression: success command : ffmpeg 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
       [mp3 @ 0xf6519000] Skipping 0 bytes of junk at 0.
       [mp3 @ 0xf6519000] Estimating duration from bitrate, this may be inaccurate
       Input #0, mp3, from '/storage/emulated/0/Download/HumnavaMereSongsMp3ioRingtone.mp3':
         Duration: 00:00:24.19, start: 0.000000, bitrate: 320 kb/s
           Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
       Output #0, mp3, to '/storage/emulated/0/VideoCompressor/Temp/ok.mp3':
         Metadata:
           TSSE            : Lavf57.25.100
           Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 64 kb/s
           Metadata:
             encoder         : Lavc57.24.102 libmp3lame
       Stream mapping:
         Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
       Press [q] to stop, [?] for help
       size=       6kB time=00:00:00.73 bitrate=  68.9kbits/s speed=1.46x    
       size=      13kB time=00:00:01.56 bitrate=  66.3kbits/s speed=1.55x    
       size=      19kB time=00:00:02.37 bitrate=  65.5kbits/s speed=1.57x    
       size=      26kB time=00:00:03.21 bitrate=  65.1kbits/s speed=1.59x    
       size=      32kB time=00:00:04.05 bitrate=  64.9kbits/s speed= 1.6x    
       size=      38kB time=00:00:04.85 bitrate=  64.7kbits/s speed= 1.6x    
       size=      45kB time=00:00:05.66 bitrate=  64.6kbits/s speed= 1.6x    
       size=      51kB time=00:00:06.47 bitrate=  64.6kbits/s speed= 1.6x    
       size=      57kB time=00:00:07.28 bitrate=  64.5kbits/s speed= 1.6x    
       size=      64kB time=00:00:08.12 bitrate=  64.4kbits/s speed=1.61x    
       size=      70kB time=00:00:08.93 bitrate=  64.4kbits/s speed=1.61x    
       size=      77kB time=00:00:09.77 bitrate=  64.4kbits/s speed=1.61x    
       size=      83kB time=00:00:10.60 bitrate=  64.3kbits/s speed=1.61x    
       size=      90kB time=00:00:11.41 bitrate=  64.3kbits/s speed=1.61x    
       size=      96kB time=00:00:12.22 bitrate=  64.3kbits/s speed=1.61x    
       size=     102kB time=00:00:13.03 bitrate=  64.3kbits/s speed=1.61x    
       size=     109kB time=00:00:13.87 bitrate=  64.3kbits/s speed=1.61x    
       size=     115kB time=00:00:14.68 bitrate=  64.2kbits/s speed=1.61x    
       size=     122kB time=00:00:15.51 bitrate=  64.2kbits/s speed=1.61x    
       size=     128kB time=00:00:16.35 bitrate=  64.2kbits/s speed=1.61x    
       size=     135kB time=00:00:17.16 bitrate=  64.2kbits/s speed=1.61x    
       size=     141kB time=00:00:17.97 bitrate=  64.2kbits/s speed=1.61x    
       size=     147kB time=00:00:18.80 bitrate=  64.2kbits/s speed=1.61x    
       size=     154kB time=00:00:19.64 bitrate=  64.2kbits/s speed=1.62x    
       size=     160kB time=00:00:20.45 bitrate=  64.2kbits/s speed=1.61x    
       size=     167kB time=00:00:21.26 bitrate=  64.2kbits/s speed=1.61x  
    2019-12-18 05:35:01.029 10635-10635/myapp V/audioCompression: Finished command : ffmpeg
  • FFmpeg error : Unable to find a suitable output format for ''

    11 juillet 2020, par Benjamin Basmaci

    I'm new to ffmpeg as well as Android programming. I'm trying to load a video from a URL and crop it with ffmpeg. I want to save that video to a file. This is the command I found online :

    


    "-i " + videoUrl + "-filter:v crop=240:120:100:100 -c:a copy test.mp4"


    


    I have tried it and got the error Unable to find a suitable output format for ''

    


    So I tried to narrow the possible cause down and tried these commands as well :

    


    "-i " + videoUrl + " -c:v copy -c:a copy test.mp4"
"-i " + videoUrl + " -c:v copy test.mp4"
"-i " + videoUrl + " -c:a copy test.mp4"
"-i " + videoUrl + " test.mp4"


    


    So with that last one I basically boiled it down to the bare minimum of what a comment needs, as far as I know. But still, same result.

    


    All of them give me the same error. Here is the full output I got via FFmpeg.getLatestOutput()

    


    ffmpeg version v4.2-dev-480 Copyright (c) 2000-2018 the FFmpeg developers
      built with Android (4751641 based on r328903) clang version 7.0.2 (https://android.googlesource.com/toolchain/clang 003100370607242ddd5815e4a043907ea9004281) (https://android.googlesource.com/toolchain/llvm 1d739ffb0366421d383e04ff80ec2ee591315116) (based on LLVM 7.0.2svn)
      configuration: --cross-prefix=i686-linux-android- 
                     --sysroot=/files/android-sdk/ndk-bundle/toolchains/mobile-ffmpeg-api-24-i686/sysroot
                     --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/ffmpeg 
                     --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 
                     --target-os=android --disable-neon --disable-asm --disable-inline-asm 
                     --enable-cross-compile --enable-pic --enable-jni --enable-lto 
                     --enable-optimizations --enable-swscale --enable-shared 
                     --disable-v4l2-m2m --disable-outdev=v4l2 
                     --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev 
                     --enable-small --disable-openssl --disable-xmm-clobber-test 
                     --disable-debug --disable-neon-clobber-test --disable-programs 
                     --disable-postproc --disable-doc --disable-htmlpages 
                     --disable-manpages --disable-podpages --disable-txtpages 
                     --disable-static --disable-sndio --disable-schannel 
                     --disable-securetransport --disable-xlib --disable-cuda 
                     --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau 
                     --disable-videotoolbox --disable-audiotoolbox --disable-appkit 
                     --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc 
                     --disable-vaapi --disable-vdpau --enable-libfontconfig 
                     --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls 
                     --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora 
                     --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 
                     --enable-libopencore-amrnb --enable-libopencore-amrwb 
                     --enable-libshine --enable-libspeex --enable-libwavpack 
                     --enable-libkvazaar --enable-libilbc --enable-libopus 
                     --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame 
                     --disable-sdl2 --enable-zlib --enable-mediacodec
      libavutil      56. 25.100 / 56. 25.100
      libavcodec     58. 42.104 / 58. 42.104
      libavformat    58. 25.100 / 58. 25.100
      libavdevice    58.  6.101 / 58.  6.101
      libavfilter     7. 46.101 /  7. 46.101
      libswscale      5.  4.100 /  5.  4.100
      libswresample   3.  4.100 /  3.  4.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://MyVideoUrl.com/example':
      Metadata:
        major_brand     : mp42
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 2019-01-28T13:44:03.000000Z
        encoder         : HandBrake 1.2.0 2018122200
      Duration: 00:00:14.33, start: 0.000000, bitrate: 4478 kb/s
        Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 1520x2700 [SAR 6075:4864 DAR 45:64], 4475 kb/s, 30.07 fps, 30 tbr, 90k tbn, 180k tbc (default)
        Metadata:
          creation_time   : 2019-01-28T13:44:03.000000Z
          handler_name    : VideoHandler
    [NULL @ 0x91833c00] Unable to find a suitable output format for ''
    : Invalid argument
    .


    


    Why does ffmpeg assume that I have given it no output format and what I need to do to make this work ?

    


    I'm using implementation 'com.arthenica:mobile-ffmpeg-full:4.2'.

    


  • How to compile ffmpeg to get only mp3 and mp4 support

    19 février 2019, par Enis Jasarovic

    I’m building Electron app and I use ffmpeg to convert m4a or webm files to mp3, and also to merge video only mp4 with m4a audio file to mp4.

    I am able to achieve this using [media-autobuild-suite] (https://github.com/jb-alvarado/media-autobuild_suite), using light build option, but the size of static files is arround 20mb and I’would like to shrink it a little bit more. I’ve compiled ffmpeg and ffprobe with this configuration.

    --disable-libaom
    --disable-version3
    # Full
    --disable-chromaprint
    --disable-cuda-sdk
    --disable-decklink
    --disable-frei0r
    --disable-libbs2b
    --disable-libcaca
    --disable-libcdio
    --disable-libfdk-aac
    --disable-libflite
    --disable-libfribidi
    --disable-libgme
    --disable-libgsm
    --disable-libilbc
    --disable-libkvazaar
    --disable-libmodplug
    --disable-libnpp
    --disable-libopenh264
    --disable-libopenmpt
    --disable-librtmp
    --disable-librubberband
    --disable-libssh
    --disable-libtesseract
    --disable-libxavs
    --disable-libzmq
    --disable-libzvbi
    --disable-opencl
    --disable-opengl
    --disable-libvmaf
    --disable-libcodec2
    --disable-libsrt
    --disable-ladspa
    --disable-ffplay
    #--enable-vapoursynth
    #--enable-liblensfun
    --disable-libndi_newtek

    --enable-demuxer=mp3
    --enable-demuxer=mov
    --enable-demuxer=opus

    --enable-parser=ac3
    --enable-parser=mpegaudio
    --enable-parser=h264
    --enable-parser=opus

    --enable-protocol=file
    --enable-protocol=pipe

    --enable-decoder=mp3
    --enable-decoder=mp4
    --enable-decoder=opus

    --enable-encoder=mp3
    --enable-encoder=mp4
    --enable-encoder=opus

    With this configuration I’m getting ffmpeg static file arround 2mb and ffprobe static file arround 2mb but with this error.

    C:\Users\Admin\Desktop\ffmpeg compilations\2mb\local64>ffmpeg -i simple.m4a simple.mp3
    ffmpeg version N-93147-g9326117bf6 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (Rev1, Built by MSYS2 project) 20181214
    configuration:  .... //here comes configuration as described above
    libavutil      56. 26.100 / 56. 26.100
    libavcodec     58. 47.102 / 58. 47.102
    libavformat    58. 26.101 / 58. 26.101
    libavdevice    58.  6.101 / 58.  6.101
    libavfilter     7. 48.100 /  7. 48.100
    libswscale      5.  4.100 /  5.  4.100
    libswresample   3.  4.100 /  3.  4.100
    libpostproc    55.  4.100 / 55.  4.100
    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'simple.m4a':
    Metadata:
     major_brand     : dash
     minor_version   : 0
     compatible_brands: iso6mp41
     creation_time   : 2018-10-31T19:47:32.000000Z
    Duration: 00:02:38.92, start: 0.000000, bitrate: 127 kb/s
    Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 7 kb/s (default)
    Metadata:
     creation_time   : 2018-10-31T19:47:32.000000Z
     handler_name    : SoundHandler
    [NULL @ 0000000000486200] Unable to find a suitable output format for 'simple.mp3'
    simple.mp3: Invalid argument

    Any ideas what else should I include into this static file ?