Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (7)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • Prérequis à l’installation

    31 janvier 2010, par

    Préambule
    Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
    Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
    Il (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (4267)

  • FFMPEG on Windows Server "Unknown encoder 'libfaac'" [duplicate]

    18 novembre 2020, par Jonathan

    I am doing this on a Windows server and is not already answered as per the other question on here on a Linux server.

    


    Im using FFMPEG on a project handling video uploads and I keep getting an issue with Videos with AAC audio encoding.

    


    I tried using aac and other aac encoders, but the windows version of FFMPEG says unknown encoders. I tried without setting an AudioCode so it might convert to native. But still the same.

    


    Please see the log output below :

    


    <pre>object(FFMpeg\Exception\RuntimeException)#35 (7) {&#xA;  ["message":protected]=>&#xA;  string(15) "Encoding failed"&#xA;  ["string":"Exception":private]=>&#xA;  string(0) ""&#xA;  ["code":protected]=>&#xA;  int(0)&#xA;  ["file":protected]=>&#xA;  string(108) "C:\inetpub\wwwroot\dev\ffmpeg-lib\ffmpeg-php\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AbstractVideo.php"&#xA;  ["line":protected]=>&#xA;  int(106)&#xA;  ["trace":"Exception":private]=>&#xA;  array(1) {&#xA;    [0]=>&#xA;    array(5) {&#xA;      ["file"]=>&#xA;      string(45) "C:\inetpub\wwwroot\dev\ffmpeg-lib\process.php"&#xA;      ["line"]=>&#xA;      int(35)&#xA;      ["function"]=>&#xA;      string(4) "save"&#xA;      ["class"]=>&#xA;      string(26) "FFMpeg\Media\AbstractVideo"&#xA;      ["type"]=>&#xA;      string(2) "->"&#xA;    }&#xA;  }&#xA;  ["previous":"Exception":private]=>&#xA;  object(Alchemy\BinaryDriver\Exception\ExecutionFailureException)#43 (9) {&#xA;    ["command":protected]=>&#xA;    string(397) "C:\ffmpeg\bin\ffmpeg.exe -y -ss 00:00:17.00 -i "temp/temp_20201110-100656_1080p-220mb.mp4" -t 00:00:52.00 -threads 12 -vcodec libx264 -acodec libfaac -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -flags &#x2B;loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -pass 1 -passlogfile "W:/TempIIS\ffmpeg-passes5fabd88bb6b0912dmm/pass-5fabd88bb6c3b" "temp/20201111-122651.mp4""&#xA;    ["errorOutput":protected]=>&#xA;    string(2301) "ffmpeg version git-2020-08-31-4a11a6f Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 10.2.1 (GCC) 20200805&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --enable-librav1e --enable-libsvtav1 --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 58.100 / 56. 58.100&#xA;  libavcodec     58.101.101 / 58.101.101&#xA;  libavformat    58. 51.101 / 58. 51.101&#xA;  libavdevice    58. 11.101 / 58. 11.101&#xA;  libavfilter     7. 87.100 /  7. 87.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;temp/temp_20201110-100656_1080p-220mb.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 19529854&#xA;    compatible_brands: mp42isom&#xA;    creation_time   : 2016-04-11T06:32:53.000000Z&#xA;  Duration: 00:02:25.98, start: 0.000000, bitrate: 13772 kb/s&#xA;    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2016-04-11T06:32:53.000000Z&#xA;      handler_name    : Sound Media Handler&#xA;    Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 13639 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2016-04-11T06:32:53.000000Z&#xA;      handler_name    : Video Media Handler&#xA;      encoder         : AVC Coding&#xA;Unknown encoder &#x27;libfaac&#x27;&#xA;"&#xA;    ["message":protected]=>&#xA;    string(2750) "ffmpeg failed to execute command C:\ffmpeg\bin\ffmpeg.exe -y -ss 00:00:17.00 -i "temp/temp_20201110-100656_1080p-220mb.mp4" -t 00:00:52.00 -threads 12 -vcodec libx264 -acodec libfaac -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -flags &#x2B;loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -pass 1 -passlogfile "W:/TempIIS\ffmpeg-passes5fabd88bb6b0912dmm/pass-5fabd88bb6c3b" "temp/20201111-122651.mp4":&#xA;&#xA;Error Output:&#xA;&#xA; ffmpeg version git-2020-08-31-4a11a6f Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 10.2.1 (GCC) 20200805&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --enable-librav1e --enable-libsvtav1 --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 58.100 / 56. 58.100&#xA;  libavcodec     58.101.101 / 58.101.101&#xA;  libavformat    58. 51.101 / 58. 51.101&#xA;  libavdevice    58. 11.101 / 58. 11.101&#xA;  libavfilter     7. 87.100 /  7. 87.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;temp/temp_20201110-100656_1080p-220mb.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 19529854&#xA;    compatible_brands: mp42isom&#xA;    creation_time   : 2016-04-11T06:32:53.000000Z&#xA;  Duration: 00:02:25.98, start: 0.000000, bitrate: 13772 kb/s&#xA;    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2016-04-11T06:32:53.000000Z&#xA;      handler_name    : Sound Media Handler&#xA;    Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 13639 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2016-04-11T06:32:53.000000Z&#xA;      handler_name    : Video Media Handler&#xA;      encoder         : AVC Coding&#xA;Unknown encoder &#x27;libfaac&#x27;&#xA;"&#xA;    ["string":"Exception":private]=>&#xA;    string(0) ""&#xA;    ["code":protected]=>&#xA;    int(0)&#xA;    ["file":protected]=>&#xA;    string(116) "C:\inetpub\wwwroot\dev\ffmpeg-lib\ffmpeg-php\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php"&#xA;    ["line":protected]=>&#xA;    int(95)&#xA;    ["trace":"Exception":private]=>&#xA;    array(5) {&#xA;      [0]=>&#xA;      array(5) {&#xA;        ["file"]=>&#xA;        string(116) "C:\inetpub\wwwroot\dev\ffmpeg-lib\ffmpeg-php\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php"&#xA;        ["line"]=>&#xA;        int(73)&#xA;        ["function"]=>&#xA;        string(18) "doExecutionFailure"&#xA;        ["class"]=>&#xA;        string(34) "Alchemy\BinaryDriver\ProcessRunner"&#xA;        ["type"]=>&#xA;        string(2) "->"&#xA;      }&#xA;      [1]=>&#xA;      array(5) {&#xA;        ["file"]=>&#xA;        string(117) "C:\inetpub\wwwroot\dev\ffmpeg-lib\ffmpeg-php\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php"&#xA;        ["line"]=>&#xA;        int(207)&#xA;        ["function"]=>&#xA;        string(3) "run"&#xA;        ["class"]=>&#xA;        string(34) "Alchemy\BinaryDriver\ProcessRunner"&#xA;        ["type"]=>&#xA;        string(2) "->"&#xA;      }&#xA;      [2]=>&#xA;      array(5) {&#xA;        ["file"]=>&#xA;        string(117) "C:\inetpub\wwwroot\dev\ffmpeg-lib\ffmpeg-php\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php"&#xA;        ["line"]=>&#xA;        int(136)&#xA;        ["function"]=>&#xA;        string(3) "run"&#xA;        ["class"]=>&#xA;        string(35) "Alchemy\BinaryDriver\AbstractBinary"&#xA;        ["type"]=>&#xA;        string(2) "->"&#xA;      }&#xA;      [3]=>&#xA;      array(5) {&#xA;        ["file"]=>&#xA;        string(108) "C:\inetpub\wwwroot\dev\ffmpeg-lib\ffmpeg-php\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AbstractVideo.php"&#xA;        ["line"]=>&#xA;        int(96)&#xA;        ["function"]=>&#xA;        string(7) "command"&#xA;        ["class"]=>&#xA;        string(35) "Alchemy\BinaryDriver\AbstractBinary"&#xA;        ["type"]=>&#xA;        string(2) "->"&#xA;      }&#xA;      [4]=>&#xA;      array(5) {&#xA;        ["file"]=>&#xA;        string(45) "C:\inetpub\wwwroot\dev\ffmpeg-lib\process.php"&#xA;        ["line"]=>&#xA;        int(35)&#xA;        ["function"]=>&#xA;        string(4) "save"&#xA;        ["class"]=>&#xA;        string(26) "FFMpeg\Media\AbstractVideo"&#xA;        ["type"]=>&#xA;        string(2) "->"&#xA;      }&#xA;    }&#xA;    ["previous":"Exception":private]=>&#xA;    NULL&#xA;  }&#xA;}&#xA;</pre>

    &#xA;

    Output of ffmpeg -encoders

    &#xA;

         V..... a64multi             Multicolor charset for Commodore 64 (codec a64_multi)&#xA; V..... a64multi5            Multicolor charset for Commodore 64, extended with 5th color (colram) (codec a64_multi5)&#xA; V..... alias_pix            Alias/Wavefront PIX image&#xA; V..... amv                  AMV Video&#xA; V..... apng                 APNG (Animated Portable Network Graphics) image&#xA; V..... asv1                 ASUS V1&#xA; V..... asv2                 ASUS V2&#xA; V..... libaom-av1           libaom AV1 (codec av1)&#xA; V..... librav1e             librav1e AV1 (codec av1)&#xA; V..... libsvtav1            SVT-AV1(Scalable Video Technology for AV1) encoder (codec av1)&#xA; V..... avrp                 Avid 1:1 10-bit RGB Packer&#xA; V..X.. avui                 Avid Meridien Uncompressed&#xA; V..... ayuv                 Uncompressed packed MS 4:4:4:4&#xA; V..... bmp                  BMP (Windows and OS/2 bitmap)&#xA; VF.... cfhd                 GoPro CineForm HD&#xA; V..... cinepak              Cinepak&#xA; V..... cljr                 Cirrus Logic AccuPak&#xA; V.S... vc2                  SMPTE VC-2 (codec dirac)&#xA; VFS... dnxhd                VC3/DNxHD&#xA; V..... dpx                  DPX (Digital Picture Exchange) image&#xA; VFS... dvvideo              DV (Digital Video)&#xA; V.S... ffv1                 FFmpeg video codec #1&#xA; VF.... ffvhuff              Huffyuv FFmpeg variant&#xA; V..... fits                 Flexible Image Transport System&#xA; V..... flashsv              Flash Screen Video&#xA; V..... flashsv2             Flash Screen Video Version 2&#xA; V..... flv                  FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (codec flv1)&#xA; V..... gif                  GIF (Graphics Interchange Format)&#xA; V..... h261                 H.261&#xA; V..... h263                 H.263 / H.263-1996&#xA; V.S... h263p                H.263&#x2B; / H.263-1998 / H.263 version 2&#xA; V..... libx264              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)&#xA; V..... libx264rgb           libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)&#xA; V..... h264_amf             AMD AMF H.264 Encoder (codec h264)&#xA; V..... h264_mf              H264 via MediaFoundation (codec h264)&#xA; V..... h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)&#xA; V..... h264_qsv             H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)&#xA; V..... nvenc                NVIDIA NVENC H.264 encoder (codec h264)&#xA; V..... nvenc_h264           NVIDIA NVENC H.264 encoder (codec h264)&#xA; V..... hap                  Vidvox Hap&#xA; V..... libx265              libx265 H.265 / HEVC (codec hevc)&#xA; V..... nvenc_hevc           NVIDIA NVENC hevc encoder (codec hevc)&#xA; V..... hevc_amf             AMD AMF HEVC encoder (codec hevc)&#xA; V..... hevc_mf              HEVC via MediaFoundation (codec hevc)&#xA; V..... hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)&#xA; V..... hevc_qsv             HEVC (Intel Quick Sync Video acceleration) (codec hevc)&#xA; VF.... huffyuv              Huffyuv / HuffYUV&#xA; V..... jpeg2000             JPEG 2000&#xA; VF.... libopenjpeg          OpenJPEG JPEG 2000 (codec jpeg2000)&#xA; VF.... jpegls               JPEG-LS&#xA; VF.... ljpeg                Lossless JPEG&#xA; VF.... magicyuv             MagicYUV video&#xA; VFS... mjpeg                MJPEG (Motion JPEG)&#xA; V..... mjpeg_qsv            MJPEG (Intel Quick Sync Video acceleration) (codec mjpeg)&#xA; V.S... mpeg1video           MPEG-1 video&#xA; V.S... mpeg2video           MPEG-2 video&#xA; V..... mpeg2_qsv            MPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video)&#xA; V.S... mpeg4                MPEG-4 part 2&#xA; V..... libxvid              libxvidcore MPEG-4 part 2 (codec mpeg4)&#xA; V..... msmpeg4v2            MPEG-4 part 2 Microsoft variant version 2&#xA; V..... msmpeg4              MPEG-4 part 2 Microsoft variant version 3 (codec msmpeg4v3)&#xA; V..... msvideo1             Microsoft Video-1&#xA; V..... pam                  PAM (Portable AnyMap) image&#xA; V..... pbm                  PBM (Portable BitMap) image&#xA; V..... pcx                  PC Paintbrush PCX image&#xA; V..... pgm                  PGM (Portable GrayMap) image&#xA; V..... pgmyuv               PGMYUV (Portable GrayMap YUV) image&#xA; VF.... png                  PNG (Portable Network Graphics) image&#xA; V..... ppm                  PPM (Portable PixelMap) image&#xA; VF.... prores               Apple ProRes&#xA; VF.... prores_aw            Apple ProRes (codec prores)&#xA; VFS... prores_ks            Apple ProRes (iCodec Pro) (codec prores)&#xA; V..... qtrle                QuickTime Animation (RLE) video&#xA; V..... r10k                 AJA Kona 10-bit RGB Codec&#xA; V..... r210                 Uncompressed RGB 10-bit&#xA; V..... rawvideo             raw video&#xA; V..... roqvideo             id RoQ video (codec roq)&#xA; V..... rpza                 QuickTime video (RPZA)&#xA; V..... rv10                 RealVideo 1.0&#xA; V..... rv20                 RealVideo 2.0&#xA; V..... sgi                  SGI image&#xA; V..... snow                 Snow&#xA; V..... sunrast              Sun Rasterfile image&#xA; V..... svq1                 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1&#xA; V..... targa                Truevision Targa image&#xA; V..... libtheora            libtheora Theora (codec theora)&#xA; VF.... tiff                 TIFF image&#xA; VF.... utvideo              Ut Video&#xA; V..... v210                 Uncompressed 4:2:2 10-bit&#xA; V..... v308                 Uncompressed packed 4:4:4&#xA; V..... v408                 Uncompressed packed QT 4:4:4:4&#xA; V..... v410                 Uncompressed 4:4:4 10-bit&#xA; V..... libvpx               libvpx VP8 (codec vp8)&#xA; V..... libvpx-vp9           libvpx VP9 (codec vp9)&#xA; V..... vp9_qsv              VP9 video (Intel Quick Sync Video acceleration) (codec vp9)&#xA; V..... libwebp_anim         libwebp WebP image (codec webp)&#xA; V..... libwebp              libwebp WebP image (codec webp)&#xA; V..... wmv1                 Windows Media Video 7&#xA; V..... wmv2                 Windows Media Video 8&#xA; V..... wrapped_avframe      AVFrame to AVPacket passthrough&#xA; V..... xbm                  XBM (X BitMap) image&#xA; V..... xface                X-face image&#xA; V..... xwd                  XWD (X Window Dump) image&#xA; V..... y41p                 Uncompressed YUV 4:1:1 12-bit&#xA; V..... yuv4                 Uncompressed packed 4:2:0&#xA; VF.... zlib                 LCL (LossLess Codec Library) ZLIB&#xA; V..... zmbv                 Zip Motion Blocks Video&#xA; A..... aac                  AAC (Advanced Audio Coding)&#xA; A..... aac_mf               AAC via MediaFoundation (codec aac)&#xA; A..... ac3                  ATSC A/52A (AC-3)&#xA; A..... ac3_fixed            ATSC A/52A (AC-3) (codec ac3)&#xA; A..... ac3_mf               AC3 via MediaFoundation (codec ac3)&#xA; A..... adpcm_adx            SEGA CRI ADX ADPCM&#xA; A..... adpcm_argo           ADPCM Argonaut Games&#xA; A..... g722                 G.722 ADPCM (codec adpcm_g722)&#xA; A..... g726                 G.726 ADPCM (codec adpcm_g726)&#xA; A..... g726le               G.726 little endian ADPCM ("right-justified") (codec adpcm_g726le)&#xA; A..... adpcm_ima_apm        ADPCM IMA Ubisoft APM&#xA; A..... adpcm_ima_qt         ADPCM IMA QuickTime&#xA; A..... adpcm_ima_ssi        ADPCM IMA Simon &amp; Schuster Interactive&#xA; A..... adpcm_ima_wav        ADPCM IMA WAV&#xA; A..... adpcm_ms             ADPCM Microsoft&#xA; A..... adpcm_swf            ADPCM Shockwave Flash&#xA; A..... adpcm_yamaha         ADPCM Yamaha&#xA; A..... alac                 ALAC (Apple Lossless Audio Codec)&#xA; A..... libopencore_amrnb    OpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band) (codec amr_nb)&#xA; A..... libvo_amrwbenc       Android VisualOn AMR-WB (Adaptive Multi-Rate Wide-Band) (codec amr_wb)&#xA; A..... aptx                 aptX (Audio Processing Technology for Bluetooth)&#xA; A..... aptx_hd              aptX HD (Audio Processing Technology for Bluetooth)&#xA; A..... comfortnoise         RFC 3389 comfort noise generator&#xA; A..X.. dca                  DCA (DTS Coherent Acoustics) (codec dts)&#xA; A..... eac3                 ATSC A/52 E-AC-3&#xA; A..... flac                 FLAC (Free Lossless Audio Codec)&#xA; A..... g723_1               G.723.1&#xA; A..... libgsm               libgsm GSM (codec gsm)&#xA; A..... libgsm_ms            libgsm GSM Microsoft variant (codec gsm_ms)&#xA; A..X.. mlp                  MLP (Meridian Lossless Packing)&#xA; A..... mp2                  MP2 (MPEG audio layer 2)&#xA; A..... mp2fixed             MP2 fixed point (MPEG audio layer 2) (codec mp2)&#xA; A..... libtwolame           libtwolame MP2 (MPEG audio layer 2) (codec mp2)&#xA; A..... libmp3lame           libmp3lame MP3 (MPEG audio layer 3) (codec mp3)&#xA; A..... libshine             libshine MP3 (MPEG audio layer 3) (codec mp3)&#xA; A..... mp3_mf               MP3 via MediaFoundation (codec mp3)&#xA; A..... nellymoser           Nellymoser Asao&#xA; A..X.. opus                 Opus&#xA; A..... libopus              libopus Opus (codec opus)&#xA; A..... pcm_alaw             PCM A-law / G.711 A-law&#xA; A..... pcm_dvd              PCM signed 16|20|24-bit big-endian for DVD media&#xA; A..... pcm_f32be            PCM 32-bit floating point big-endian&#xA; A..... pcm_f32le            PCM 32-bit floating point little-endian&#xA; A..... pcm_f64be            PCM 64-bit floating point big-endian&#xA; A..... pcm_f64le            PCM 64-bit floating point little-endian&#xA; A..... pcm_mulaw            PCM mu-law / G.711 mu-law&#xA; A..... pcm_s16be            PCM signed 16-bit big-endian&#xA; A..... pcm_s16be_planar     PCM signed 16-bit big-endian planar&#xA; A..... pcm_s16le            PCM signed 16-bit little-endian&#xA; A..... pcm_s16le_planar     PCM signed 16-bit little-endian planar&#xA; A..... pcm_s24be            PCM signed 24-bit big-endian&#xA; A..... pcm_s24daud          PCM D-Cinema audio signed 24-bit&#xA; A..... pcm_s24le            PCM signed 24-bit little-endian&#xA; A..... pcm_s24le_planar     PCM signed 24-bit little-endian planar&#xA; A..... pcm_s32be            PCM signed 32-bit big-endian&#xA; A..... pcm_s32le            PCM signed 32-bit little-endian&#xA; A..... pcm_s32le_planar     PCM signed 32-bit little-endian planar&#xA; A..... pcm_s64be            PCM signed 64-bit big-endian&#xA; A..... pcm_s64le            PCM signed 64-bit little-endian&#xA; A..... pcm_s8               PCM signed 8-bit&#xA; A..... pcm_s8_planar        PCM signed 8-bit planar&#xA; A..... pcm_u16be            PCM unsigned 16-bit big-endian&#xA; A..... pcm_u16le            PCM unsigned 16-bit little-endian&#xA; A..... pcm_u24be            PCM unsigned 24-bit big-endian&#xA; A..... pcm_u24le            PCM unsigned 24-bit little-endian&#xA; A..... pcm_u32be            PCM unsigned 32-bit big-endian&#xA; A..... pcm_u32le            PCM unsigned 32-bit little-endian&#xA; A..... pcm_u8               PCM unsigned 8-bit&#xA; A..... pcm_vidc             PCM Archimedes VIDC&#xA; A..... real_144             RealAudio 1.0 (14.4K) (codec ra_144)&#xA; A..... roq_dpcm             id RoQ DPCM&#xA; A..X.. s302m                SMPTE 302M&#xA; A..... sbc                  SBC (low-complexity subband codec)&#xA; A..X.. sonic                Sonic&#xA; A..X.. sonicls              Sonic lossless&#xA; A..... libspeex             libspeex Speex (codec speex)&#xA; A..X.. truehd               TrueHD&#xA; A..... tta                  TTA (True Audio)&#xA; A..X.. vorbis               Vorbis&#xA; A..... libvorbis            libvorbis (codec vorbis)&#xA; A..... wavpack              WavPack&#xA; A..... libwavpack            (codec wavpack)&#xA; A..... wmav1                Windows Media Audio 1&#xA; A..... wmav2                Windows Media Audio 2&#xA; S..... ssa                  ASS (Advanced SubStation Alpha) subtitle (codec ass)&#xA; S..... ass                  ASS (Advanced SubStation Alpha) subtitle&#xA; S..... dvbsub               DVB subtitles (codec dvb_subtitle)&#xA; S..... dvdsub               DVD subtitles (codec dvd_subtitle)&#xA; S..... mov_text             3GPP Timed Text subtitle&#xA; S..... srt                  SubRip subtitle (codec subrip)&#xA; S..... subrip               SubRip subtitle&#xA; S..... text                 Raw text subtitle&#xA; S..... webvtt               WebVTT subtitle&#xA; S..... xsub                 DivX subtitles (XSUB)&#xA;

    &#xA;

  • Ffmpeg frame extraction with Nvidia GPU acceleration throws "Output file #0 does not contain any stream"

    16 mai 2020, par nickthefreak

    I am trying to use nvidia gpu accelerated decoder api with ffmpeg, to extract all frames from a video file (.MTS) to a folder, but it looks like it's failing for some reason ; I could not find an answer or similar issues.

    &#xA;&#xA;

    Command used :

    &#xA;&#xA;

    ffmpeg -vsync 0 -hwaccel cuvid -c:v mpeg2_cuvid -i raw_video.MTS -q:v 2 -f image2 output_folder/image_%05d.jpg

    &#xA;&#xA;

    Traceback :

    &#xA;&#xA;

    ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 9.3.0 (Arch Linux 9.3.0-1)&#xA;  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;[mpegts @ 0x563fcc5616c0] start time for stream 0 is not set in estimate_timings_from_pts&#xA;[mpegts @ 0x563fcc5616c0] PES packet size mismatch&#xA;[mpegts @ 0x563fcc5616c0] Could not find codec parameters for stream 0 (Video: mpeg2video (HDMV / 0x564D4448), none(tv)): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;Input #0, mpegts, from &#x27;raw_video.MTS&#x27;:&#xA;  Duration: 00:07:15.68, start: 1010.210356, bitrate: 41186 kb/s&#xA;  Program 1 &#xA;    Stream #0:0[0x1011]: Video: mpeg2video (HDMV / 0x564D4448), none(tv), 90k tbr, 90k tbn, 90k tbc&#xA;    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s&#xA;    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080&#xA;Output #0, image2, to &#x27;output_folder/image_%05d.jpg&#x27;:&#xA;Output file #0 does not contain any stream&#xA;

    &#xA;&#xA;

    I am pretty sure -hwaccel cuvid -c:v mpeg2_cuvid is correct as the file type seems to be MPEG-2 in the file properties, but similar issues happen with the other cuvid decoders as well :

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    I have also tried to run without -c:v flag but then a cuda error is raised and it runs on the cpu :

    &#xA;&#xA;

    [h264 @ 0x55949e6d7e00] decoder->cvdl->cuvidCreateDecoder(&amp;decoder->decoder, params) failed -> CUDA_ERROR_INVALID_VALUE: invalid argument&#xA;[h264 @ 0x55949e6d7e00] Failed setup for format cuda: hwaccel initialisation returned error.

    &#xA;&#xA;

    Any help will be much appreciated.

    &#xA;&#xA;

    Edit :

    &#xA;&#xA;

      &#xA;
    • OS : Arch Linux
    • &#xA;

    • GPU : Nvidia 1050Ti
    • &#xA;

    • CUDA Version : 10.2
    • &#xA;

    • NVIDIA-SMI : 440.82
    • &#xA;

    &#xA;&#xA;

    Edit 2 :

    &#xA;&#xA;

    ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 9.3.0 (Arch Linux 9.3.0-1)&#xA;  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[mpegts @ 0x55714390c540] PES packet size mismatch&#xA;Input #0, mpegts, from &#x27;raw_video.MTS&#x27;:&#xA;  Duration: 00:18:30.97, start: 113.284733, bitrate: 16850 kb/s&#xA;  Program 1 &#xA;    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc&#xA;    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s&#xA;    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080&#xA;At least one output file must be specified&#xA;

    &#xA;

  • "Could not demultiplex stream" in loading Video recorded by Opencv's VideoWriter

    16 juin 2016, par batuman

    My program is

    int main(){
       cout &lt;&lt; "Start the process" &lt;&lt; endl;
       cv::VideoCapture vcap("rtsp://root:pass@192.168.0.90/axis-media/media.amp?camera=1");
       cout &lt;&lt; "Camera connection done!" &lt;&lt; endl;
       cv::Mat image, small;
       //Output video
       cv::Size S = cv::Size((int) vcap.get(CV_CAP_PROP_FRAME_WIDTH), (int) vcap.get(CV_CAP_PROP_FRAME_HEIGHT));
       int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));
       int fps = vcap.get(CV_CAP_PROP_FPS);
       cout &lt;&lt; "fps " &lt;&lt; fps &lt;&lt; " ex " &lt;&lt; ex &lt;&lt; endl;
       cv::VideoWriter outputVideo;
       outputVideo.open("TEST.avi", ex/*CV_FOURCC('X', '2', '6', '4')*/, vcap.get(CV_CAP_PROP_FPS), S, true);
       if(!outputVideo.isOpened()){
           cout &lt;&lt; "Could not open the output video for write" &lt;&lt; endl;
           return -1;
       }

       for(;;){
           if(!vcap.read(image)){
               std::cout &lt;&lt; "No frame" &lt;&lt; std::endl;
               cv::waitKey(0);
           }

           cv::resize(image, small, image.size()/2, 0, 0 , cv::INTER_LINEAR);
           cv::imshow("Display", small);
           cv::waitKey(1);
           outputVideo.write(small);
           if(getkey() == '\n')
               break;
       }
       cout &lt;&lt; "Camera release" &lt;&lt; endl;
       outputVideo.release();
       vcap.release();
       image.release();
       small.release();
       return 0;
    }
    </int>

    int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));</int> ex is 0 here.

    I can record the TEST.avi, but can’t be read by cv::VideoCapture vcap("TEST.avi") ; or VLC player or Videos in Ubuntu.
    The error is "Could not demultiplex stream".

    If I changed to

    outputVideo.open("TEST.avi", CV_FOURCC('X', '2', '6', '4'), vcap.get(CV_CAP_PROP_FPS), S, true);
    outputVideo.open("TEST.avi", CV_FOURCC('P','I','M','1'), vcap.get(CV_CAP_PROP_FPS), S, true);
    outputVideo.open("TEST.avi", CV_FOURCC('M', 'P', '4', '2'), vcap.get(CV_CAP_PROP_FPS), S, true);
    etc.

    all have same problem.

    If I set

    outputVideo.open("TEST.avi", CV_FOURCC('i', 'Y', 'U', 'V'), vcap.get(CV_CAP_PROP_FPS), S, true);

    I have error as Opencv: FFMPEG iYUV is not supported with codec id 14

    For

    outputVideo.open("TEST.avi", CV_FOURCC('M', 'J', 'P', 'G'), vcap.get(CV_CAP_PROP_FPS), S, true);


    OpenCV Error: Assertion failed (img.cols == width &amp;&amp; img.rows == height &amp;&amp; chann
    els == 3) in write, file /home/Softwares/opencv/opencv/modules/videoio/src/
    cap_mjpeg_encoder.cpp, line 829
    terminate called after throwing an instance of 'cv::Exception'
     what():  /home/Softwares/opencv/opencv/modules/videoio/src/cap_mjpeg_enco
    der.cpp:829: error: (-215) img.cols == width &amp;&amp; img.rows == height &amp;&amp; channels =
    = 3 in function write

    What could be wrong ? Is that my FFMPEG has problem ?