Node-fluent-ffmpeg: Video codec is not available

Created on 20 May 2016  Â·  13Comments  Â·  Source: fluent-ffmpeg/node-fluent-ffmpeg

Hi,

As i try to encode files, the only video codec that works is "mpeg4".

When i try mpeg2 or libx264, h264, vp9, mjpeg, or others, it doesn't work, i have an error message
"Video codec mpeg2 is not available".

i have listed the available codecs with "ffmpeg -codecs" and i have them all

what is the issue there ?

thnaks

best regards

Most helpful comment

The codec is installed because it can decode it but doesn't necessarily mean you can encode with it.

If you use the built in methods you can check which encoders fluent-ffmpeg thinks it can work with.

const FfmpegCommand = require('fluent-ffmpeg');

FfmpegCommand.getAvailableEncoders((err, encoders) => {
  console.log('getAvailableEncoders', encoders);
});

I have the same issue. I have h264 listed as a codec but not an encoder. I was able to use libx264.

(new FfmpegCommand('/input/path/to/file.avi')).videoCodec('libx264').format('mp4').save('/output/path/to/file.mp4')

All 13 comments

Please post your code, the error message and ffmpeg output as well as the output from ffmpeg -codecs.

Hi, ok i will do that as soos as possible. How can i retreive the ffmpeg output ?

Envoyé de mon iPhone

Le 22 mai 2016 Ă  11:35, Nicolas Joyard [email protected] a Ă©crit :

Please post your code, the error message and ffmpeg output as well as the output from ffmpeg -codecs.

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

Look at the 2nd and 3rd arguments for the 'error' handler, those contain ffmpeg stdout and stderr.

OK so my encode.html file code is :

 <head>
  <title>encode</title>
</head>

<body>
  <h1>Welcome to Meteor!</h1>

  {{> inputFile}}
</body>

<template name="inputFile">
   <form>
    <input type="file" class="input_file">
    <SELECT name="nom" class="aspect_ratio">
    <OPTION>16:9</OPTION>
    <OPTION>4:3</OPTION>
    </SELECT>
    <SELECT name="nom" class="codec">
    <OPTION>mpeg4</OPTION>
    <OPTION>vp9</OPTION>
    <OPTION>mpeg</OPTION>
    <OPTION>h264</OPTION>
    <OPTION>mjpeg</OPTION>
    <OPTION>hevc</OPTION>
    </SELECT>
    <input type="submit" value="Go" class="btn btn-primary">
  </form>
</template>


  <template name="show_file">

  </template>

The encode.js file is :

  Template.inputFile.events({
    'click .btn': function (evt) {
      evt.preventDefault();
      var input = $('.input_file').val(); // récupération avec Jquery de la valeur de l'input
      var inputAr = $('.aspect_ratio').val(); // récupération avec Jquery de la valeur de l'input
      var inputCodec = $('.codec').val(); // récupération avec Jquery de la valeur de l'input
      var inputok = input.replace("C:\\fakepath\\", "C:\\bin\\");
      var inputClean  = input.replace("C:\\fakepath\\", "");

       var searchedId = files.insert({name: inputok, status: 'inital', createdAt: new Date()});
       console.log(inputok);
       console.log(inputClean);
       console.log(inputCodec);

      //var searchId = files.findOne({}, {sort: {'_id': -1}});
       var inputId = searchedId;


          Meteor.call('sendEncode',inputok, inputAr, inputCodec, inputId, inputClean, function(error,response){
            if(error){
              console.log('ERROR :', error);
            }else{
              console.log('Response :', response);
            }
          })
       }

  });

and the encode.js file on the server folder is :

  Meteor.startup(function () {
    // code to run on server at startup

var  ffmpeg = Meteor.npmRequire('fluent-ffmpeg');
// var Fiber = Meteor.npmRequire('fibers');

ffmpeg.setFfmpegPath('C:\\bin\\ffmpeg.exe')
ffmpeg.setFfprobePath('C:\\bin\\ffprobe.exe')

//  ffmpeg.ffprobe('C:\\bin\\walking.avi', function(err, metadata) {
//     console.dir(metadata);
//     console.dir(err);
// });

 // var resolve = Meteor.wrapAsync(ffmpeg.on);

Meteor.methods({    

            'sendEncode': function(input, inputAr, inputVc,inputId,inputCl){ // récupération du paramètre passé par le meteor.call

            var FileToEncode = ffmpeg(input)
                  // set video bitrate
                  .videoBitrate(1024)
                  // set target codec
                  .videoCodec(inputVc)
                  // set aspect ratio
                  .aspect(inputAr)
                  // set size in percent
                  .size('50%')
                  // set fps
                  .fps(24)
                  // set audio bitrate
                  .audioBitrate('128k')
                  // set audio codec
                  .audioCodec('libmp3lame')
                  // set number of audio channels
                  .audioChannels(2)
                  // set output format to force
                  .format('avi')
                  // setup event handlers
                  .on('end', Meteor.bindEnvironment(function(stdout, stderr) {
                    console.log('file has been converted succesfully');
                     files.update({ _id: inputId }, { $set: { status: 'done' } });
                  }))
                  .on('error', function(err, stdout, stderr) {
                    console.log('an error happened: ' + err.message);
                  })
                   .on('stderr', function(stderrLine) {
                     console.log('Stderr output: ' + stderrLine);
                  })
                   .on('stdout', function(stdoutLine) {
                     console.log('Stdout output: ' + stdoutLine);
                  })
                  .on('progress', function(progress) {
                     console.log('Processing: ' + progress.percent + '% done');
                  })
                  // save to file
                  .save('C:\\apps\\'+ inputCl +'.avi');

so when i select a codec different from mpeg4 ( VP9 for example), i always get an error message : on my server console :
An error happened: Video codec VP9 is not available

the app is running on meteor

i don't have other error message as STDERR

and my ffmpeg -codecs command tells me :

ffmpeg version N-80011-gaf3e944 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 42.100 / 57. 42.100
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 45.100 /  6. 45.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Codecs:
 D..... = Decoding supported
 .E.... = Encoding supported
 ..V... = Video codec
 ..A... = Audio codec
 ..S... = Subtitle codec
 ...I.. = Intra frame-only codec
 ....L. = Lossy compression
 .....S = Lossless compression
 -------
 D.VI.. 012v                 Uncompressed 4:2:2 10-bit
 D.V.L. 4xm                  4X Movie
 D.VI.S 8bps                 QuickTime 8BPS video
 .EVIL. a64_multi            Multicolor charset for Commodore 64 (encoders: a64multi )
 .EVIL. a64_multi5           Multicolor charset for Commodore 64, extended with 5th color (colram) (encoders: a64multi5 )
 D.V..S aasc                 Autodesk RLE
 D.VIL. aic                  Apple Intermediate Codec
 DEVI.S alias_pix            Alias/Wavefront PIX image
 DEVIL. amv                  AMV Video
 D.V.L. anm                  Deluxe Paint Animation
 D.V.L. ansi                 ASCII/ANSI art
 DEV..S apng                 APNG (Animated Portable Network Graphics) image
 DEVIL. asv1                 ASUS V1
 DEVIL. asv2                 ASUS V2
 D.VIL. aura                 Auravision AURA
 D.VIL. aura2                Auravision Aura 2
 D.V... avrn                 Avid AVI Codec
 DEVI.. avrp                 Avid 1:1 10-bit RGB Packer
 D.V.L. avs                  AVS (Audio Video Standard) video
 DEVI.. avui                 Avid Meridien Uncompressed
 DEVI.. ayuv                 Uncompressed packed MS 4:4:4:4
 D.V.L. bethsoftvid          Bethesda VID video
 D.V.L. bfi                  Brute Force & Ignorance
 D.V.L. binkvideo            Bink video
 D.VI.. bintext              Binary text
 DEVI.S bmp                  BMP (Windows and OS/2 bitmap)
 D.V..S bmv_video            Discworld II BMV video
 D.VI.S brender_pix          BRender PIX image
 D.V.L. c93                  Interplay C93
 DEV.L. cavs                 Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile) (encoders: libxavs )  D.V.L. cdgraphics           CD Graphics video
 D.VIL. cdxl                 Commodore CDXL video
 D.V.L. cfhd                 Cineform HD
 DEV.L. cinepak              Cinepak
 DEVIL. cljr                 Cirrus Logic AccuPak
 D.VI.S cllc                 Canopus Lossless Codec
 D.V.L. cmv                  Electronic Arts CMV video (decoders: eacmv )
 D.V... cpia                 CPiA video format
 D.V..S cscd                 CamStudio (decoders: camstudio )
 D.VIL. cyuv                 Creative YUV (CYUV)
 ..V.LS daala                Daala
 D.VILS dds                  DirectDraw Surface image decoder
 D.V.L. dfa                  Chronomaster DFA
 DEV.LS dirac                Dirac (decoders: dirac libschroedinger ) (encoders: vc2 libschroedinger )
 DEVIL. dnxhd                VC3/DNxHD
 DEVI.S dpx                  DPX (Digital Picture Exchange) image
 D.V.L. dsicinvideo          Delphine Software International CIN video
 DEVIL. dvvideo              DV (Digital Video)
 D.V..S dxa                  Feeble Files/ScummVM DXA
 D.VI.S dxtory               Dxtory
 D.VIL. dxv                  Resolume DXV
 D.V.L. escape124            Escape 124
 D.V.L. escape130            Escape 130
 D.VILS exr                  OpenEXR image
 DEV..S ffv1                 FFmpeg video codec #1
 DEVI.S ffvhuff              Huffyuv FFmpeg variant
 D.V.L. fic                  Mirillis FIC
 DEV..S flashsv              Flash Screen Video v1
 DEV.L. flashsv2             Flash Screen Video v2
 D.V..S flic                 Autodesk Animator Flic video
 DEV.L. flv1                 FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (decoders: flv ) (encoders: flv )
 D.V..S fraps                Fraps
 D.VI.S frwu                 Forward Uncompressed
 D.V.L. g2m                  Go2Meeting
 DEV..S gif                  GIF (Graphics Interchange Format)
 DEV.L. h261                 H.261
 DEV.L. h263                 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
 D.V.L. h263i                Intel H.263
 DEV.L. h263p                H.263+ / H.263-1998 / H.263 version 2
 DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_qsv ) (encoders: libx264 libx264rgb h264_qsv )
 DEVIL. hap                  Vidvox Hap decoder
 DEV.L. hevc                 H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv ) (encoders: libx265 hevc_qsv )
 D.V.L. hnm4video            HNM 4 video
 D.VIL. hq_hqa               Canopus HQ/HQA
 D.VIL. hqx                  Canopus HQX
 DEVI.S huffyuv              HuffYUV
 D.V.L. idcin                id Quake II CIN video (decoders: idcinvideo )
 D.VI.. idf                  iCEDraw text
 D.V.L. iff_ilbm             IFF ACBM/ANIM/DEEP/ILBM/PBM (decoders: iff )
 D.V.L. indeo2               Intel Indeo 2
 D.V.L. indeo3               Intel Indeo 3
 D.V.L. indeo4               Intel Indeo Video Interactive 4
 D.V.L. indeo5               Intel Indeo Video Interactive 5
 D.V.L. interplayvideo       Interplay MVE video
 DEVILS jpeg2000             JPEG 2000 (decoders: jpeg2000 libopenjpeg ) (encoders: jpeg2000 libopenjpeg )
 DEVILS jpegls               JPEG-LS
 D.VIL. jv                   Bitmap Brothers JV video
 D.V.L. kgv1                 Kega Game Video
 D.V.L. kmvc                 Karl Morton's video codec
 D.VI.S lagarith             Lagarith lossless
 .EVI.S ljpeg                Lossless JPEG
 D.VI.S loco                 LOCO
 D.VI.S m101                 Matrox Uncompressed SD
 D.V.L. mad                  Electronic Arts Madcow Video (decoders: eamad )
 D.VIL. mdec                 Sony PlayStation MDEC (Motion DECoder)
 D.V.L. mimic                Mimic
 DEVIL. mjpeg                Motion JPEG
 D.VIL. mjpegb               Apple MJPEG-B
 D.V.L. mmvideo              American Laser Games MM Video
 D.V.L. motionpixels         Motion Pixels video
 DEV.L. mpeg1video           MPEG-1 video
 DEV.L. mpeg2video           MPEG-2 video (decoders: mpeg2video mpegvideo mpeg2_qsv ) (encoders: mpeg2video mpeg2_qsv )
 DEV.L. mpeg4                MPEG-4 part 2 (encoders: mpeg4 libxvid )
 ..V.L. mpegvideo_xvmc       MPEG-1/2 video XvMC (X-Video Motion Compensation)
 D.V.L. msa1                 MS ATC Screen
 D.V.L. msmpeg4v1            MPEG-4 part 2 Microsoft variant version 1
 DEV.L. msmpeg4v2            MPEG-4 part 2 Microsoft variant version 2
 DEV.L. msmpeg4v3            MPEG-4 part 2 Microsoft variant version 3 (decoders: msmpeg4 ) (encoders: msmpeg4 )
 D.V..S msrle                Microsoft RLE
 D.V.L. mss1                 MS Screen 1
 D.VIL. mss2                 MS Windows Media Video V9 Screen
 DEV.L. msvideo1             Microsoft Video 1
 D.VI.S mszh                 LCL (LossLess Codec Library) MSZH
 D.V.L. mts2                 MS Expression Encoder Screen
 D.VIL. mvc1                 Silicon Graphics Motion Video Compressor 1
 D.VIL. mvc2                 Silicon Graphics Motion Video Compressor 2
 D.V.L. mxpeg                Mobotix MxPEG video
 D.V.L. nuv                  NuppelVideo/RTJPEG
 D.V.L. paf_video            Amazing Studio Packed Animation File Video
 DEVI.S pam                  PAM (Portable AnyMap) image
 DEVI.S pbm                  PBM (Portable BitMap) image
 DEVI.S pcx                  PC Paintbrush PCX image
 DEVI.S pgm                  PGM (Portable GrayMap) image
 DEVI.S pgmyuv               PGMYUV (Portable GrayMap YUV) image
 D.VIL. pictor               Pictor/PC Paint
 DEV..S png                  PNG (Portable Network Graphics) image
 DEVI.S ppm                  PPM (Portable PixelMap) image
 DEVIL. prores               Apple ProRes (iCodec Pro) (decoders: prores prores_lgpl ) (encoders: prores prores_aw prores_ks )
 D.VIL. ptx                  V.Flash PTX image
 D.VI.S qdraw                Apple QuickDraw
 D.V.L. qpeg                 Q-team QPEG
 DEV..S qtrle                QuickTime Animation (RLE) video
 DEVI.S r10k                 AJA Kona 10-bit RGB Codec
 DEVI.S r210                 Uncompressed RGB 10-bit
 DEVI.S rawvideo             raw video
 D.VIL. rl2                  RL2 video
 DEV.L. roq                  id RoQ video (decoders: roqvideo ) (encoders: roqvideo )
 D.V.L. rpza                 QuickTime video (RPZA)
 D.V..S rscc                 innoHeim/Rsupport Screen Capture Codec
 DEV.L. rv10                 RealVideo 1.0
 DEV.L. rv20                 RealVideo 2.0
 D.V.L. rv30                 RealVideo 3.0
 D.V.L. rv40                 RealVideo 4.0
 D.V.L. sanm                 LucasArts SANM/SMUSH video
 D.V..S screenpresso         Screenpresso
 DEVI.S sgi                  SGI image
 D.VI.S sgirle               SGI RLE 8-bit
 D.V.L. smackvideo           Smacker video (decoders: smackvid )
 D.V.L. smc                  QuickTime Graphics (SMC)
 D.V... smvjpeg              Sigmatel Motion Video
 DEV.LS snow                 Snow
 D.VIL. sp5x                 Sunplus JPEG (SP5X)
 DEVI.S sunrast              Sun Rasterfile image
 DEV.L. svq1                 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
 D.V.L. svq3                 Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3
 DEVI.S targa                Truevision Targa image
 D.VI.. targa_y216           Pinnacle TARGA CineWave YUV16
 D.V.L. tdsc                 TDSC
 D.V.L. tgq                  Electronic Arts TGQ video (decoders: eatgq )
 D.V.L. tgv                  Electronic Arts TGV video (decoders: eatgv )
 DEV.L. theora               Theora (encoders: libtheora )
 D.VIL. thp                  Nintendo Gamecube THP video
 D.V.L. tiertexseqvideo      Tiertex Limited SEQ video
 DEVI.S tiff                 TIFF image
 D.VIL. tmv                  8088flex TMV
 D.V.L. tqi                  Electronic Arts TQI video (decoders: eatqi )
 D.V.L. truemotion1          Duck TrueMotion 1.0
 D.V.L. truemotion2          Duck TrueMotion 2.0
 D.V.L. truemotion2rt        Duck TrueMotion 2.0 Real Time
 D.V..S tscc                 TechSmith Screen Capture Codec (decoders: camtasia )
 D.V.L. tscc2                TechSmith Screen Codec 2
 D.VIL. txd                  Renderware TXD (TeXture Dictionary) image
 D.V.L. ulti                 IBM UltiMotion (decoders: ultimotion )
 DEVI.S utvideo              Ut Video
 DEVI.S v210                 Uncompressed 4:2:2 10-bit
 D.VI.S v210x                Uncompressed 4:2:2 10-bit
 DEVI.. v308                 Uncompressed packed 4:4:4
 DEVI.. v408                 Uncompressed packed QT 4:4:4:4
 DEVI.S v410                 Uncompressed 4:4:4 10-bit
 D.V.L. vb                   Beam Software VB
 D.VI.S vble                 VBLE Lossless Codec
 D.V.L. vc1                  SMPTE VC-1 (decoders: vc1 vc1_qsv )
 D.V.L. vc1image             Windows Media Video 9 Image v2
 D.VIL. vcr1                 ATI VCR1
 D.VIL. vixl                 Miro VideoXL (decoders: xl )
 D.V.L. vmdvideo             Sierra VMD video
 D.V..S vmnc                 VMware Screen Codec / VMware Video
 D.V.L. vp3                  On2 VP3
 D.V.L. vp5                  On2 VP5
 D.V.L. vp6                  On2 VP6
 D.V.L. vp6a                 On2 VP6 (Flash version, with alpha channel)
 D.V.L. vp6f                 On2 VP6 (Flash version)
 D.V.L. vp7                  On2 VP7
 DEV.L. vp8                  On2 VP8 (decoders: vp8 libvpx ) (encoders: libvpx )
 DEV.L. vp9                  Google VP9 (decoders: vp9 libvpx-vp9 ) (encoders: libvpx-vp9 )
 DEVILS webp                 WebP (encoders: libwebp )
 DEV.L. wmv1                 Windows Media Video 7
 DEV.L. wmv2                 Windows Media Video 8
 D.V.L. wmv3                 Windows Media Video 9
 D.V.L. wmv3image            Windows Media Video 9 Image
 D.VIL. wnv1                 Winnov WNV1
 .EV..S wrapped_avframe      AVFrame to AVPacket passthrough
 D.V.L. ws_vqa               Westwood Studios VQA (Vector Quantized Animation) video (decoders: vqavideo )
 D.V.L. xan_wc3              Wing Commander III / Xan
 D.V.L. xan_wc4              Wing Commander IV / Xxan
 D.VI.. xbin                 eXtended BINary text
 DEVI.S xbm                  XBM (X BitMap) image
 DEVIL. xface                X-face image
 DEVI.S xwd                  XWD (X Window Dump) image
 DEVI.. y41p                 Uncompressed YUV 4:1:1 12-bit
 D.V.L. yop                  Psygnosis YOP Video
 DEVI.. yuv4                 Uncompressed packed 4:2:0
 D.V..S zerocodec            ZeroCodec Lossless Video
 DEVI.S zlib                 LCL (LossLess Codec Library) ZLIB
 DEV..S zmbv                 Zip Motion Blocks Video
 ..A.L. 4gv                  4GV (Fourth Generation Vocoder)
 D.A.L. 8svx_exp             8SVX exponential
 D.A.L. 8svx_fib             8SVX fibonacci
 DEA.L. aac                  AAC (Advanced Audio Coding) (decoders: aac aac_fixed )
 D.A.L. aac_latm             AAC LATM (Advanced Audio Coding LATM syntax)
 DEA.L. ac3                  ATSC A/52A (AC-3) (decoders: ac3 ac3_fixed ) (encoders: ac3 ac3_fixed )
 D.A.L. adpcm_4xm            ADPCM 4X Movie
 DEA.L. adpcm_adx            SEGA CRI ADX ADPCM
 D.A.L. adpcm_afc            ADPCM Nintendo Gamecube AFC
 D.A.L. adpcm_aica           ADPCM Yamaha AICA
 D.A.L. adpcm_ct             ADPCM Creative Technology
 D.A.L. adpcm_dtk            ADPCM Nintendo Gamecube DTK
 D.A.L. adpcm_ea             ADPCM Electronic Arts
 D.A.L. adpcm_ea_maxis_xa    ADPCM Electronic Arts Maxis CDROM XA
 D.A.L. adpcm_ea_r1          ADPCM Electronic Arts R1
 D.A.L. adpcm_ea_r2          ADPCM Electronic Arts R2
 D.A.L. adpcm_ea_r3          ADPCM Electronic Arts R3
 D.A.L. adpcm_ea_xas         ADPCM Electronic Arts XAS
 DEA.L. adpcm_g722           G.722 ADPCM (decoders: g722 ) (encoders: g722 )
 DEA.L. adpcm_g726           G.726 ADPCM (decoders: g726 ) (encoders: g726 )
 D.A.L. adpcm_g726le         G.726 ADPCM little-endian (decoders: g726le )
 D.A.L. adpcm_ima_amv        ADPCM IMA AMV
 D.A.L. adpcm_ima_apc        ADPCM IMA CRYO APC
 D.A.L. adpcm_ima_dat4       ADPCM IMA Eurocom DAT4
 D.A.L. adpcm_ima_dk3        ADPCM IMA Duck DK3
 D.A.L. adpcm_ima_dk4        ADPCM IMA Duck DK4
 D.A.L. adpcm_ima_ea_eacs    ADPCM IMA Electronic Arts EACS
 D.A.L. adpcm_ima_ea_sead    ADPCM IMA Electronic Arts SEAD
 D.A.L. adpcm_ima_iss        ADPCM IMA Funcom ISS
 D.A.L. adpcm_ima_oki        ADPCM IMA Dialogic OKI
 DEA.L. adpcm_ima_qt         ADPCM IMA QuickTime
 D.A.L. adpcm_ima_rad        ADPCM IMA Radical
 D.A.L. adpcm_ima_smjpeg     ADPCM IMA Loki SDL MJPEG
 DEA.L. adpcm_ima_wav        ADPCM IMA WAV
 D.A.L. adpcm_ima_ws         ADPCM IMA Westwood
 DEA.L. adpcm_ms             ADPCM Microsoft
 D.A.L. adpcm_psx            ADPCM Playstation
 D.A.L. adpcm_sbpro_2        ADPCM Sound Blaster Pro 2-bit
 D.A.L. adpcm_sbpro_3        ADPCM Sound Blaster Pro 2.6-bit
 D.A.L. adpcm_sbpro_4        ADPCM Sound Blaster Pro 4-bit
 DEA.L. adpcm_swf            ADPCM Shockwave Flash
 D.A.L. adpcm_thp            ADPCM Nintendo THP
 D.A.L. adpcm_thp_le         ADPCM Nintendo THP (Little-Endian)
 D.A.L. adpcm_vima           LucasArts VIMA audio
 D.A.L. adpcm_xa             ADPCM CDROM XA
 DEA.L. adpcm_yamaha         ADPCM Yamaha
 DEA..S alac                 ALAC (Apple Lossless Audio Codec)
 DEA.L. amr_nb               AMR-NB (Adaptive Multi-Rate NarrowBand) (decoders: amrnb libopencore_amrnb ) (encoders: libopencore_amrnb )
 DEA.L. amr_wb               AMR-WB (Adaptive Multi-Rate WideBand) (decoders: amrwb libopencore_amrwb ) (encoders: libvo_amrwbenc )
 D.A..S ape                  Monkey's Audio
 D.A.L. atrac1               ATRAC1 (Adaptive TRansform Acoustic Coding)
 D.A.L. atrac3               ATRAC3 (Adaptive TRansform Acoustic Coding 3)
 D.A.L. atrac3p              ATRAC3+ (Adaptive TRansform Acoustic Coding 3+) (decoders: atrac3plus )
 D.A.L. avc                  On2 Audio for Video Codec (decoders: on2avc )
 D.A.L. binkaudio_dct        Bink Audio (DCT)
 D.A.L. binkaudio_rdft       Bink Audio (RDFT)
 D.A.L. bmv_audio            Discworld II BMV audio
 ..A.L. celt                 Constrained Energy Lapped Transform (CELT)
 DEA.L. comfortnoise         RFC 3389 Comfort Noise
 D.A.L. cook                 Cook / Cooker / Gecko (RealAudio G2)
 D.A.L. dsd_lsbf             DSD (Direct Stream Digital), least significant bit first
 D.A.L. dsd_lsbf_planar      DSD (Direct Stream Digital), least significant bit first, planar
 D.A.L. dsd_msbf             DSD (Direct Stream Digital), most significant bit first
 D.A.L. dsd_msbf_planar      DSD (Direct Stream Digital), most significant bit first, planar
 D.A.L. dsicinaudio          Delphine Software International CIN audio
 D.A.L. dss_sp               Digital Speech Standard - Standard Play mode (DSS SP)
 D.A..S dst                  DST (Direct Stream Transfer)
 DEA.LS dts                  DCA (DTS Coherent Acoustics) (decoders: dca ) (encoders: dca )
 D.A.L. dvaudio              DV audio
 DEA.L. eac3                 ATSC A/52B (AC-3, E-AC-3)
 D.A.L. evrc                 EVRC (Enhanced Variable Rate Codec)
 DEA..S flac                 FLAC (Free Lossless Audio Codec)
 DEA.L. g723_1               G.723.1
 D.A.L. g729                 G.729
 DEA.L. gsm                  GSM (decoders: gsm libgsm ) (encoders: libgsm )
 DEA.L. gsm_ms               GSM Microsoft variant (decoders: gsm_ms libgsm_ms ) (encoders: libgsm_ms )
 D.A.L. iac                  IAC (Indeo Audio Coder)
 DEA.L. ilbc                 iLBC (Internet Low Bitrate Codec) (decoders: libilbc ) (encoders: libilbc )
 D.A.L. imc                  IMC (Intel Music Coder)
 D.A.L. interplay_dpcm       DPCM Interplay
 D.A.L. interplayacm         Interplay ACM
 D.A.L. mace3                MACE (Macintosh Audio Compression/Expansion) 3:1
 D.A.L. mace6                MACE (Macintosh Audio Compression/Expansion) 6:1
 D.A.L. metasound            Voxware MetaSound
 D.A..S mlp                  MLP (Meridian Lossless Packing)
 D.A.L. mp1                  MP1 (MPEG audio layer 1) (decoders: mp1 mp1float )
 DEA.L. mp2                  MP2 (MPEG audio layer 2) (decoders: mp2 mp2float ) (encoders: mp2 mp2fixed libtwolame )
 DEA.L. mp3                  MP3 (MPEG audio layer 3) (decoders: mp3 mp3float ) (encoders: libmp3lame )
 D.A.L. mp3adu               ADU (Application Data Unit) MP3 (MPEG audio layer 3) (decoders: mp3adu mp3adufloat )
 D.A.L. mp3on4               MP3onMP4 (decoders: mp3on4 mp3on4float )
 D.A..S mp4als               MPEG-4 Audio Lossless Coding (ALS) (decoders: als )
 D.A.L. musepack7            Musepack SV7 (decoders: mpc7 )
 D.A.L. musepack8            Musepack SV8 (decoders: mpc8 )
 DEA.L. nellymoser           Nellymoser Asao
 DEA.L. opus                 Opus (Opus Interactive Audio Codec) (decoders: opus libopus ) (encoders: libopus )

 D.A.L. paf_audio            Amazing Studio Packed Animation File Audio
 DEA.L. pcm_alaw             PCM A-law / G.711 A-law
 D.A..S pcm_bluray           PCM signed 16|20|24-bit big-endian for Blu-ray media
 D.A..S pcm_dvd              PCM signed 20|24-bit big-endian
 DEA..S pcm_f32be            PCM 32-bit floating point big-endian
 DEA..S pcm_f32le            PCM 32-bit floating point little-endian
 DEA..S pcm_f64be            PCM 64-bit floating point big-endian
 DEA..S pcm_f64le            PCM 64-bit floating point little-endian
 D.A..S pcm_lxf              PCM signed 20-bit little-endian planar
 DEA.L. pcm_mulaw            PCM mu-law / G.711 mu-law
 DEA..S pcm_s16be            PCM signed 16-bit big-endian
 DEA..S pcm_s16be_planar     PCM signed 16-bit big-endian planar
 DEA..S pcm_s16le            PCM signed 16-bit little-endian
 DEA..S pcm_s16le_planar     PCM signed 16-bit little-endian planar
 DEA..S pcm_s24be            PCM signed 24-bit big-endian
 DEA..S pcm_s24daud          PCM D-Cinema audio signed 24-bit
 DEA..S pcm_s24le            PCM signed 24-bit little-endian
 DEA..S pcm_s24le_planar     PCM signed 24-bit little-endian planar
 DEA..S pcm_s32be            PCM signed 32-bit big-endian
 DEA..S pcm_s32le            PCM signed 32-bit little-endian
 DEA..S pcm_s32le_planar     PCM signed 32-bit little-endian planar
 DEA..S pcm_s8               PCM signed 8-bit
 DEA..S pcm_s8_planar        PCM signed 8-bit planar
 DEA..S pcm_u16be            PCM unsigned 16-bit big-endian
 DEA..S pcm_u16le            PCM unsigned 16-bit little-endian
 DEA..S pcm_u24be            PCM unsigned 24-bit big-endian
 DEA..S pcm_u24le            PCM unsigned 24-bit little-endian
 DEA..S pcm_u32be            PCM unsigned 32-bit big-endian
 DEA..S pcm_u32le            PCM unsigned 32-bit little-endian
 DEA..S pcm_u8               PCM unsigned 8-bit
 D.A.L. pcm_zork             PCM Zork
 D.A.L. qcelp                QCELP / PureVoice
 D.A.L. qdm2                 QDesign Music Codec 2
 ..A.L. qdmc                 QDesign Music
 DEA.L. ra_144               RealAudio 1.0 (14.4K) (decoders: real_144 ) (encoders: real_144 )
 D.A.L. ra_288               RealAudio 2.0 (28.8K) (decoders: real_288 )
 D.A..S ralf                 RealAudio Lossless
 DEA.L. roq_dpcm             DPCM id RoQ
 DEA..S s302m                SMPTE 302M
 D.A.L. sdx2_dpcm            DPCM Squareroot-Delta-Exact
 D.A..S shorten              Shorten
 D.A.L. sipr                 RealAudio SIPR / ACELP.NET
 D.A.L. smackaudio           Smacker audio (decoders: smackaud )
 ..A.L. smv                  SMV (Selectable Mode Vocoder)
 D.A.L. sol_dpcm             DPCM Sol
 DEA... sonic                Sonic
 .EA... sonicls              Sonic lossless
 DEA.L. speex                Speex (decoders: libspeex ) (encoders: libspeex )
 D.A..S tak                  TAK (Tom's lossless Audio Kompressor)
 D.A..S truehd               TrueHD
 D.A.L. truespeech           DSP Group TrueSpeech
 DEA..S tta                  TTA (True Audio)
 D.A.L. twinvq               VQF TwinVQ
 D.A.L. vmdaudio             Sierra VMD audio
 DEA.L. vorbis               Vorbis (decoders: vorbis libvorbis ) (encoders: vorbis libvorbis )
 ..A.L. voxware              Voxware RT29 Metasound
 D.A... wavesynth            Wave synthesis pseudo-codec
 DEA.LS wavpack              WavPack (encoders: wavpack libwavpack )
 D.A.L. westwood_snd1        Westwood Audio (SND1) (decoders: ws_snd1 )
 D.A..S wmalossless          Windows Media Audio Lossless
 D.A.L. wmapro               Windows Media Audio 9 Professional
 DEA.L. wmav1                Windows Media Audio 1
 DEA.L. wmav2                Windows Media Audio 2
 D.A.L. wmavoice             Windows Media Audio Voice
 D.A.L. xan_dpcm             DPCM Xan
 D.A.L. xma1                 Xbox Media Audio 1
 D.A.L. xma2                 Xbox Media Audio 2
 ..D... bin_data             binary data
 ..D... dvd_nav_packet       DVD Nav packet
 ..D... klv                  SMPTE 336M Key-Length-Value (KLV) metadata
 ..D... otf                  OpenType font
 ..D... timed_id3            timed ID3 metadata
 ..D... ttf                  TrueType font
 DES... ass                  ASS (Advanced SSA) subtitle (decoders: ssa ass ) (encoders: ssa ass )
 DES... dvb_subtitle         DVB subtitles (decoders: dvbsub ) (encoders: dvbsub )
 ..S... dvb_teletext         DVB teletext
 DES... dvd_subtitle         DVD subtitles (decoders: dvdsub ) (encoders: dvdsub )
 D.S... eia_608              EIA-608 closed captions (decoders: cc_dec )
 D.S... hdmv_pgs_subtitle    HDMV Presentation Graphic Stream subtitles (decoders: pgssub )
 ..S... hdmv_text_subtitle   HDMV Text subtitle
 D.S... jacosub              JACOsub subtitle
 D.S... microdvd             MicroDVD subtitle
 DES... mov_text             MOV text
 D.S... mpl2                 MPL2 subtitle
 D.S... pjs                  PJS (Phoenix Japanimation Society) subtitle
 D.S... realtext             RealText subtitle
 D.S... sami                 SAMI subtitle
 ..S... srt                  SubRip subtitle with embedded timing
 ..S... ssa                  SSA (SubStation Alpha) subtitle
 D.S... stl                  Spruce subtitle format
 DES... subrip               SubRip subtitle (decoders: srt subrip ) (encoders: srt subrip )
 D.S... subviewer            SubViewer subtitle
 D.S... subviewer1           SubViewer v1 subtitle
 DES... text                 raw UTF-8 text
 D.S... vplayer              VPlayer subtitle
 DES... webvtt               WebVTT subtitle
 DES... xsub                 XSUB

what can be the issue ?

thanks

Do you have libvpx installed ?

I am having the same issue. Did this ever get resolved?

I can run this from command line:

ffmpeg -rtsp_transport tcp -i rtsp://rtsp_url:10556/axis-media/media.amp -vcodec libx264 -acodec aac -f mp4 -t 60 output.mp4

But when running from fluent-ffmpeg I get the following error emitted:

Error: Video codec libx264 is not available

@ryanstinson what does ffmpeg -codecs output ?

I get the same problem on the pi 3. It works with same command line with -vcodec libx264 but setting it with .videoCodec('libx264') gives: Error: Video codec libx264 is not available

avconv version 11.7-6:11.7-1~deb8u1+rpi1, Copyright (c) 2000-2016 the Libav developers
  built on Jun 17 2016 02:13:49 with gcc 4.9.2 (Raspbian 4.9.2-10)
Codecs:
 D..... = Decoding supported
 .E.... = Encoding supported
 ..V... = Video codec
 ..A... = Audio codec
 ..S... = Subtitle codec
 ...I.. = Intra frame-only codec
 ....L. = Lossy compression
 .....S = Lossless compression
 -------
DEV.L. mpeg1video           MPEG-1 video
DEV.L. mpeg2video           MPEG-2 video
D.V.L. mpegvideo_xvmc       MPEG-1/2 video XvMC (X-Video Motion Compensation)
DEV.L. h261                 H.261
DEV.L. h263                 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
DEV.L. rv10                 RealVideo 1.0
DEV.L. rv20                 RealVideo 2.0
DEVIL. mjpeg                Motion JPEG
D.VIL. mjpegb               Apple MJPEG-B
DEV.L. mpeg4                MPEG-4 part 2 (encoders: mpeg4 libxvid )
DEVI.S rawvideo             raw video
D.V.L. msmpeg4v1            MPEG-4 part 2 Microsoft variant version 1
DEV.L. msmpeg4v2            MPEG-4 part 2 Microsoft variant version 2
DEV.L. msmpeg4v3            MPEG-4 part 2 Microsoft variant version 3 (decoders: msmpeg4 ) (encoders: msmpeg4 )
DEV.L. wmv1                 Windows Media Video 7
DEV.L. wmv2                 Windows Media Video 8
.EV.L. h263p                H.263+ / H.263-1998 / H.263 version 2
D.V.L. h263i                Intel H.263
DEV.L. flv1                 FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (decoders: flv ) (encoders: flv )
DEV.L. svq1                 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
D.V.L. svq3                 Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3
DEVIL. dvvideo              DV (Digital Video)
DEVI.S huffyuv              HuffYUV
D.VIL. cyuv                 Creative YUV (CYUV)
DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (encoders: libx264 )
D.V.L. indeo3               Intel Indeo 3
D.V.L. vp3                  On2 VP3
DEV.L. theora               Theora (encoders: libtheora )
DEVIL. asv1                 ASUS V1
DEVIL. asv2                 ASUS V2
DEV..S ffv1                 FFmpeg video codec #1
D.V.L. 4xm                  4X Movie
D.VIL. vcr1                 ATI VCR1
DEVIL. cljr                 Cirrus Logic AccuPak
D.VIL. mdec                 Sony PlayStation MDEC (Motion DECoder)
DEV.L. roq                  id RoQ video (decoders: roqvideo ) (encoders: roqvideo )
D.V.L. interplayvideo       Interplay MVE video
D.V.L. xan_wc3              Wing Commander III / Xan
D.V.L. xan_wc4              Wing Commander IV / Xxan
D.V.L. rpza                 QuickTime video (RPZA)
D.V.L. cinepak              Cinepak
D.V.L. ws_vqa               Westwood Studios VQA (Vector Quantized Animation) video (decoders: vqavideo )
D.V..S msrle                Microsoft RLE
D.V.L. msvideo1             Microsoft Video 1
D.V.L. idcin                id Quake II CIN video (decoders: idcinvideo )
D.VI.S 8bps                 QuickTime 8BPS video
D.V.L. smc                  QuickTime Graphics (SMC)
D.V..S flic                 Autodesk Animator Flic video
D.V.L. truemotion1          Duck TrueMotion 1.0
D.V.L. vmdvideo             Sierra VMD video
D.VI.S mszh                 LCL (LossLess Codec Library) MSZH
DEVI.S zlib                 LCL (LossLess Codec Library) ZLIB
DEV..S qtrle                QuickTime Animation (RLE) video
D.V..S tscc                 TechSmith Screen Capture Codec (decoders: camtasia )
D.V.L. ulti                 IBM UltiMotion (decoders: ultimotion )
D.VI.S qdraw                Apple QuickDraw
D.VIL. vixl                 Miro VideoXL (decoders: xl )
D.V.L. qpeg                 Q-team QPEG
DEVI.S ffvhuff              Huffyuv FFmpeg variant
D.V.L. rv30                 RealVideo 3.0
D.V.L. rv40                 RealVideo 4.0
D.V.L. vc1                  SMPTE VC-1
D.V.L. wmv3                 Windows Media Video 9
D.VI.S loco                 LOCO
D.VIL. wnv1                 Winnov WNV1
D.V..S aasc                 Autodesk RLE
D.V.L. indeo2               Intel Indeo 2
D.V..S fraps                Fraps
D.V.L. truemotion2          Duck TrueMotion 2.0
DEVI.S bmp                  BMP (Windows and OS/2 bitmap)
D.V..S cscd                 CamStudio (decoders: camstudio )
D.V.L. mmvideo              American Laser Games MM Video
DEV..S zmbv                 Zip Motion Blocks Video
D.V.L. avs                  AVS (Audio Video Standard) video
D.V.L. smackvideo           Smacker video (decoders: smackvid )
D.V.L. nuv                  NuppelVideo/RTJPEG
D.V.L. kmvc                 Karl Morton's video codec
DEV..S flashsv              Flash Screen Video v1
D.V.L. cavs                 Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile)
DEVILS jpeg2000             JPEG 2000 (decoders: jpeg2000 libopenjpeg ) (encoders: libopenjpeg )
D.V..S vmnc                 VMware Screen Codec / VMware Video
D.V.L. vp5                  On2 VP5
D.V.L. vp6                  On2 VP6
D.V.L. vp6f                 On2 VP6 (Flash version)
D.V.L. dsicinvideo          Delphine Software International CIN video
D.V.L. tiertexseqvideo      Tiertex Limited SEQ video
D.V..S dxa                  Feeble Files/ScummVM DXA
DEVIL. dnxhd                VC3/DNxHD
D.VIL. thp                  Nintendo Gamecube THP video
D.V.L. c93                  Interplay C93
D.V.L. bethsoftvid          Bethesda VID video
D.V.L. vp6a                 On2 VP6 (Flash version, with alpha channel)
D.VIL. amv                  AMV Video
D.V.L. vb                   Beam Software VB
D.V.L. indeo4               Intel Indeo Video Interactive 4
D.V.L. indeo5               Intel Indeo Video Interactive 5
D.V.L. mimic                Mimic
D.VIL. rl2                  RL2 video
D.V.L. escape124            Escape 124
DEV.LS dirac                Dirac (decoders: libschroedinger ) (encoders: libschroedinger )
D.V.L. bfi                  Brute Force & Ignorance
D.V.L. cmv                  Electronic Arts CMV video (decoders: eacmv )
D.V.L. motionpixels         Motion Pixels video
D.V.L. tgv                  Electronic Arts TGV video (decoders: eatgv )
D.V.L. tgq                  Electronic Arts TGQ video (decoders: eatgq )
D.V.L. tqi                  Electronic Arts TQI video (decoders: eatqi )
D.VIL. aura                 Auravision AURA
D.VIL. aura2                Auravision Aura 2
D.VI.S v210x                Uncompressed 4:2:2 10-bit
D.VIL. tmv                  8088flex TMV
DEVI.S v210                 Uncompressed 4:2:2 10-bit
D.V.L. mad                  Electronic Arts Madcow Video (decoders: eamad )
D.VI.S frwu                 Forward Uncompressed
D.V.L. flashsv2             Flash Screen Video v2
D.V.L. cdgraphics           CD Graphics video
D.VI.S r210                 Uncompressed RGB 10-bit
D.V.L. anm                  Deluxe Paint Animation
D.V.L. binkvideo            Bink video
D.V.L. iff_ilbm             IFF ILBM
D.V.L. iff_byterun1         IFF ByteRun1
D.V.L. kgv1                 Kega Game Video
D.V.L. yop                  Psygnosis YOP Video
DEV.L. vp8                  On2 VP8 (decoders: vp8 libvpx ) (encoders: libvpx )
DEV.L. vp9                  Google VP9 (decoders: vp9 libvpx-vp9 ) (encoders: libvpx-vp9 )
D.VIL. pictor               Pictor/PC Paint
.EVIL. a64_multi            Multicolor charset for Commodore 64 (encoders: a64multi )
.EVIL. a64_multi5           Multicolor charset for Commodore 64, extended with 5th color (colram) (encoders: a64multi5 )
D.VI.S r10k                 AJA Kona 10-bit RGB Codec
D.VIL. mvc1                 Silicon Graphics Motion Video Compressor 1
D.VIL. mvc2                 Silicon Graphics Motion Video Compressor 2
D.V.L. mxpeg                Mobotix MxPEG video
D.VI.S lagarith             Lagarith lossless
DEVIL. prores               Apple ProRes (iCodec Pro)
D.VIL. jv                   Bitmap Brothers JV video
D.V.L. dfa                  Chronomaster DFA
DEVI.S utvideo              Ut Video
D.V..S bmv_video            Discworld II BMV video
D.VI.S vble                 VBLE Lossless Codec
D.VI.S dxtory               Dxtory
DEVI.S v410                 Uncompressed 4:4:4 10-bit
D.V.L. cdxl                 Commodore CDXL video
D.V..S zerocodec            ZeroCodec Lossless Video
D.V.L. mss1                 MS Screen 1
D.V.L. msa1                 MS ATC Screen
D.V.L. tscc2                TechSmith Screen Codec 2
D.V.L. mts2                 MS Expression Encoder Screen
D.VI.S cllc                 Canopus Lossless Codec
D.VIL. mss2                 MS Windows Media Video V9 Screen
D.VIL. aic                  Apple Intermediate Codec
D.V.L. escape130            Escape 130
D.V.L. g2m                  Go2Meeting
D.V.L. hnm4video            HNM 4 video
D.V.L. hevc                 HEVC (High Efficiency Video Coding)
D.V.L. fic                  Mirillis FIC
D.V.L. paf_video            Amazing Studio Packed Animation File Video
D.V.L. vp7                  On2 VP7
D.V.L. sanm                 LucasArts SANM video
D.VI.S sgirle               SGI RLE 8-bit
DEVI.S alias_pix            Alias/Wavefront PIX image
D.V.L. ansi                 ASCII/ANSI art
D.VI.S brender_pix          BRender PIX image
DEVI.S dpx                  DPX image
D.VILS exr                  OpenEXR image
DEV..S gif                  GIF (Graphics Interchange Format)
DEVILS jpegls               JPEG-LS
.EVI.S ljpeg                Lossless JPEG
DEVI.S pam                  PAM (Portable AnyMap) image
DEVI.S pbm                  PBM (Portable BitMap) image
DEVI.S pcx                  PC Paintbrush PCX image
DEVI.S pgm                  PGM (Portable GrayMap) image
DEVI.S pgmyuv               PGMYUV (Portable GrayMap YUV) image
DEV..S png                  PNG (Portable Network Graphics) image
DEVI.S ppm                  PPM (Portable PixelMap) image
D.VIL. ptx                  V.Flash PTX image
DEVI.S sgi                  SGI image
D.VIL. sp5x                 Sunplus JPEG (SP5X)
DEVI.S sunrast              Sun Rasterfile image
DEVI.S targa                Truevision Targa image
DEVI.S tiff                 TIFF image
D.VIL. txd                  Renderware TXD (TeXture Dictionary) image
D.V.L. vc1image             Windows Media Video 9 Image v2
D.VILS webp                 WebP
D.V.L. wmv3image            Windows Media Video 9 Image
DEVI.S xbm                  XBM (X BitMap) image
DEVI.S xwd                  XWD (X Window Dump) image
DEA..S pcm_s16le            PCM signed 16-bit little-endian
DEA..S pcm_s16be            PCM signed 16-bit big-endian
DEA..S pcm_u16le            PCM unsigned 16-bit little-endian
DEA..S pcm_u16be            PCM unsigned 16-bit big-endian
DEA..S pcm_s8               PCM signed 8-bit
DEA..S pcm_u8               PCM unsigned 8-bit
DEA... pcm_mulaw            PCM mu-law
DEA... pcm_alaw             PCM A-law
DEA..S pcm_s32le            PCM signed 32-bit little-endian
DEA..S pcm_s32be            PCM signed 32-bit big-endian
DEA..S pcm_u32le            PCM unsigned 32-bit little-endian
DEA..S pcm_u32be            PCM unsigned 32-bit big-endian
DEA..S pcm_s24le            PCM signed 24-bit little-endian
DEA..S pcm_s24be            PCM signed 24-bit big-endian
DEA..S pcm_u24le            PCM unsigned 24-bit little-endian
DEA..S pcm_u24be            PCM unsigned 24-bit big-endian
DEA..S pcm_s24daud          PCM D-Cinema audio signed 24-bit
D.A.L. pcm_zork             PCM Zork
D.A..S pcm_s16le_planar     PCM 16-bit little-endian planar
D.A..S pcm_s24le_planar     PCM signed 24-bit little-endian planar
D.A..S pcm_s32le_planar     PCM signed 32-bit little-endian planar
D.A..S pcm_dvd              PCM signed 20|24-bit big-endian
DEA..S pcm_f32be            PCM 32-bit floating point big-endian
DEA..S pcm_f32le            PCM 32-bit floating point little-endian
DEA..S pcm_f64be            PCM 64-bit floating point big-endian
DEA..S pcm_f64le            PCM 64-bit floating point little-endian
D.A..S pcm_bluray           PCM signed 16|20|24-bit big-endian for Blu-ray media
D.A..S pcm_lxf              PCM signed 20-bit little-endian planar
D.A.L. s302m                SMPTE 302M
D.A..S pcm_s8_planar        PCM signed 8-bit planar
DEA.L. adpcm_ima_qt         ADPCM IMA QuickTime
DEA.L. adpcm_ima_wav        ADPCM IMA WAV
D.A.L. adpcm_ima_dk3        ADPCM IMA Duck DK3
D.A.L. adpcm_ima_dk4        ADPCM IMA Duck DK4
D.A.L. adpcm_ima_ws         ADPCM IMA Westwood
D.A.L. adpcm_ima_smjpeg     ADPCM IMA Loki SDL MJPEG
DEA.L. adpcm_ms             ADPCM Microsoft
D.A.L. adpcm_4xm            ADPCM 4X Movie
D.A.L. adpcm_xa             ADPCM CDROM XA
DEA.L. adpcm_adx            SEGA CRI ADX ADPCM
D.A.L. adpcm_ea             ADPCM Electronic Arts
DEA.L. adpcm_g726           G.726 ADPCM (decoders: g726 ) (encoders: g726 )
D.A.L. adpcm_ct             ADPCM Creative Technology
DEA.L. adpcm_swf            ADPCM Shockwave Flash
DEA.L. adpcm_yamaha         ADPCM Yamaha
D.A.L. adpcm_sbpro_4        ADPCM Sound Blaster Pro 4-bit
D.A.L. adpcm_sbpro_3        ADPCM Sound Blaster Pro 2.6-bit
D.A.L. adpcm_sbpro_2        ADPCM Sound Blaster Pro 2-bit
D.A.L. adpcm_thp            ADPCM Nintendo Gamecube THP
D.A.L. adpcm_ima_amv        ADPCM IMA AMV
D.A.L. adpcm_ea_r1          ADPCM Electronic Arts R1
D.A.L. adpcm_ea_r3          ADPCM Electronic Arts R3
D.A.L. adpcm_ea_r2          ADPCM Electronic Arts R2
D.A.L. adpcm_ima_ea_sead    ADPCM IMA Electronic Arts SEAD
D.A.L. adpcm_ima_ea_eacs    ADPCM IMA Electronic Arts EACS
D.A.L. adpcm_ea_xas         ADPCM Electronic Arts XAS
D.A.L. adpcm_ea_maxis_xa    ADPCM Electronic Arts Maxis CDROM XA
D.A.L. adpcm_ima_iss        ADPCM IMA Funcom ISS
DEA.L. adpcm_g722           G.722 ADPCM (decoders: g722 ) (encoders: g722 )
D.A.L. adpcm_ima_apc        ADPCM IMA CRYO APC
D.A.L. adpcm_vima           LucasArts VIMA audio
D.A.L. amr_nb               AMR-NB (Adaptive Multi-Rate NarrowBand) (decoders: amrnb )
D.A.L. amr_wb               AMR-WB (Adaptive Multi-Rate WideBand) (decoders: amrwb )
DEA.L. ra_144               RealAudio 1.0 (14.4K) (decoders: real_144 ) (encoders: real_144 )
D.A.L. ra_288               RealAudio 2.0 (28.8K) (decoders: real_288 )
DEA.L. roq_dpcm             DPCM id RoQ
D.A.L. interplay_dpcm       DPCM Interplay
D.A.L. xan_dpcm             DPCM Xan
D.A.L. sol_dpcm             DPCM Sol
DEA.L. mp2                  MP2 (MPEG audio layer 2) (decoders: mp2 mp2float )
DEA.L. mp3                  MP3 (MPEG audio layer 3) (decoders: mp3 mp3float ) (encoders: libmp3lame )
DEA.L. aac                  AAC (Advanced Audio Coding)
DEA.L. ac3                  ATSC A/52A (AC-3) (encoders: ac3 ac3_fixed )
D.A.LS dts                  DCA (DTS Coherent Acoustics) (decoders: dca )
DEA.L. vorbis               Vorbis (encoders: vorbis libvorbis )
..A.L. dvaudio              DV audio
DEA.L. wmav1                Windows Media Audio 1
DEA.L. wmav2                Windows Media Audio 2
D.A.L. mace3                MACE (Macintosh Audio Compression/Expansion) 3:1
D.A.L. mace6                MACE (Macintosh Audio Compression/Expansion) 6:1
D.A.L. vmdaudio             Sierra VMD audio
DEA..S flac                 FLAC (Free Lossless Audio Codec)
D.A.L. mp3adu               ADU (Application Data Unit) MP3 (MPEG audio layer 3) (decoders: mp3adu mp3adufloat )
D.A.L. mp3on4               MP3onMP4 (decoders: mp3on4 mp3on4float )
D.A..S shorten              Shorten
DEA..S alac                 ALAC (Apple Lossless Audio Codec)
D.A.L. westwood_snd1        Westwood Audio (SND1) (decoders: ws_snd1 )
DEA.L. gsm                  GSM (decoders: gsm libgsm ) (encoders: libgsm )
D.A.L. qdm2                 QDesign Music Codec 2
D.A.L. cook                 Cook / Cooker / Gecko (RealAudio G2)
D.A.L. truespeech           DSP Group TrueSpeech
D.A..S tta                  TTA (True Audio)
D.A.L. smackaudio           Smacker audio (decoders: smackaud )
D.A.L. qcelp                QCELP / PureVoice
D.A.LS wavpack              WavPack
D.A.L. dsicinaudio          Delphine Software International CIN audio
D.A.L. imc                  IMC (Intel Music Coder)
D.A.L. musepack7            Musepack SV7 (decoders: mpc7 )
D.A..S mlp                  MLP (Meridian Lossless Packing)
DEA.L. gsm_ms               GSM Microsoft variant (decoders: gsm_ms libgsm_ms ) (encoders: libgsm_ms )
D.A.L. atrac3               ATRAC3 (Adaptive TRansform Acoustic Coding 3)
..A.L. voxware              Voxware RT29 Metasound
D.A..S ape                  Monkey's Audio
DEA.L. nellymoser           Nellymoser Asao
D.A.L. musepack8            Musepack SV8 (decoders: mpc8 )
DEA.L. speex                Speex (decoders: libspeex ) (encoders: libspeex )
D.A.L. wmavoice             Windows Media Audio Voice
D.A.L. wmapro               Windows Media Audio 9 Professional
D.A..S wmalossless          Windows Media Audio Lossless
D.A.L. atrac3p              ATRAC3+ (Adaptive TRansform Acoustic Coding 3+) (decoders: atrac3plus )
DEA.L. eac3                 ATSC A/52B (AC-3, E-AC-3)
D.A.L. sipr                 RealAudio SIPR / ACELP.NET
D.A.L. mp1                  MP1 (MPEG audio layer 1) (decoders: mp1 mp1float )
D.A.L. twinvq               VQF TwinVQ
D.A..S truehd               TrueHD
D.A..S mp4als               MPEG-4 Audio Lossless Coding (ALS) (decoders: als )
D.A.L. atrac1               ATRAC1 (Adaptive TRansform Acoustic Coding)
D.A.L. binkaudio_rdft       Bink Audio (RDFT)
D.A.L. binkaudio_dct        Bink Audio (DCT)
D.A.L. aac_latm             AAC LATM (Advanced Audio Coding LATM syntax)
..A.L. qdmc                 QDesign Music
..A.L. celt                 Constrained Energy Lapped Transform (CELT)
D.A.L. g723_1               G.723.1
..A.L. g729                 G.729
D.A.L. 8svx_exp             8SVX exponential
D.A.L. 8svx_fib             8SVX fibonacci
D.A.L. bmv_audio            Discworld II BMV audio
D.A..S ralf                 RealAudio Lossless
D.A.L. iac                  IAC (Indeo Audio Coder)
..A.L. ilbc                 iLBC (Internet Low Bitrate Codec)
DEA.L. opus                 Opus (Opus Interactive Audio Codec) (decoders: opus libopus ) (encoders: libopus )
DEA.L. comfortnoise         RFC 3389 Comfort Noise
D.A..S tak                  TAK (Tom's lossless Audio Kompressor)
D.A.L. metasound            Voxware MetaSound
D.A.L. paf_audio            Amazing Studio Packed Animation File Audio
D.A.L. avc                  On2 Audio for Video Codec (decoders: on2avc )
DES... dvd_subtitle         DVD subtitles (decoders: dvdsub ) (encoders: dvdsub )
DES... dvb_subtitle         DVB subtitles (decoders: dvbsub ) (encoders: dvbsub )
..S... text                 raw UTF-8 text
DES... xsub                 XSUB
DES... ssa                  SSA (SubStation Alpha) / ASS (Advanced SSA) subtitle (decoders: ass ) (encoders: ass )
..S... mov_text             MOV text
D.S... hdmv_pgs_subtitle    HDMV Presentation Graphic Stream subtitles (decoders: pgssub )
..S... dvb_teletext         DVB teletext
D.S... srt                  SubRip Text

@Climax777 first, you're using avconv which is not compatible with fluent-ffmpeg. Second, you'll have to check that the corresponding libx264 is installed and that your ffmpeg version is built with support for it.

libx264 is installed and working from command line with the same command
fluent uses with ffmpeg. For some reason fluent doesn't sense it. Output of
ffmpeg and avconv is identical for the -codecs flag and 99% of other flags.

On Thu, 18 Aug 2016, 10:35 Nicolas Joyard [email protected] wrote:

@Climax777 https://github.com/Climax777 first, you're using avconv
which is not compatible with fluent-ffmpeg. Second, you'll have to check
that the corresponding libx264 is installed and that your ffmpeg version is
built with support for it.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/543#issuecomment-240659041,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAu7ncPkHVtL88_GqD-mbN6X2lf6ppcAks5qhBlAgaJpZM4IjBVW
.

@njoyard How do I check if libx264 library is installed? That's not something that comes with the standard installation of ffmpeg?

Thanks

The codec is installed because it can decode it but doesn't necessarily mean you can encode with it.

If you use the built in methods you can check which encoders fluent-ffmpeg thinks it can work with.

const FfmpegCommand = require('fluent-ffmpeg');

FfmpegCommand.getAvailableEncoders((err, encoders) => {
  console.log('getAvailableEncoders', encoders);
});

I have the same issue. I have h264 listed as a codec but not an encoder. I was able to use libx264.

(new FfmpegCommand('/input/path/to/file.avi')).videoCodec('libx264').format('mp4').save('/output/path/to/file.mp4')
...
  libx265: {
    type: 'video',
    description: 'libx265 H.265 / HEVC (codec hevc)',
    frameMT: false,
    sliceMT: false,
    experimental: false,
    drawHorizBand: false,
    directRendering: false
  },
....,
  'libvpx-vp9': {
    type: 'video',
    description: 'libvpx VP9 (codec vp9)',
    frameMT: false,
    sliceMT: false,
    experimental: false,
    drawHorizBand: false,
    directRendering: false
  },
  vp9_qsv: {
    type: 'video',
    description: 'VP9 video (Intel Quick Sync Video acceleration) (codec vp9)',
    frameMT: false,
    sliceMT: false,
    experimental: false,
    drawHorizBand: false,
    directRendering: false
  },
...

doing getAvailableEncodes gives me lots of encoders, alongwith the one I'm trying to encode.
Yet i get this error: unknown decoder libx265.

const command = ffmpeg({ source: video.path });
  command.inputOptions([
    '-i',
    video.path,
    '-c:v',
    'libx265',
    '-crf',
    '23',
    '-tag:v',
    'hvc1',
    '-pix_fmt',
    'yuv420p',
    '-color_primaries',
    '1',
    '-color_trc',
    '1',
    '-colorspace',
    '1',
    '-movflags',
    '+faststart'
  ]);
  command.output(`${video.path}720.mp4`);

  command.on('progress', (progress) => {
    console.log(progress);
  });

  command.on('stderr', (errLine) => {
    console.log(errLine);
  });

  command.on('error', function(err, stdout, stderr) {
    console.log('Cannot process video: ' + err.message);
  });

  command.on('end', function(stdout, stderr) {
    console.log('Transcoding succeeded !');
  });

  command.run();

This is my code.

Please help me! I have explored every possible place i could find info.

Edit: more info:
doing ffmpeg.getAvailableCodecs() gives me the following codecs:

hevc: {
    type: 'video',
    description: 'H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv )',
    canDecode: true,
    canEncode: true,
    intraFrameOnly: false,
    isLossy: true,
    isLossless: false
  },
  libx265: {
    type: 'video',
    description: 'H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv )',
    intraFrameOnly: false,
    isLossy: true,
    isLossless: false,
    canEncode: true
  },
  nvenc_hevc: {
    type: 'video',
    description: 'H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv )',
    intraFrameOnly: false,
    isLossy: true,
    isLossless: false,
    canEncode: true
  },
  hevc_amf: {
    type: 'video',
    description: 'H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv )',
    intraFrameOnly: false,
    isLossy: true,
    isLossless: false,
    canEncode: true
  },
  hevc_nvenc: {
    type: 'video',
    description: 'H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv )',
    intraFrameOnly: false,
    isLossy: true,
    isLossless: false,
    canEncode: true
  },
  hevc_qsv: {
    type: 'video',
    description: 'H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv )',
    intraFrameOnly: false,
    isLossy: true,
    isLossless: false,
    canEncode: true,
    canDecode: true
  },
  hevc_cuvid: {
    type: 'video',
    description: 'H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv )',
    intraFrameOnly: false,
    isLossy: true,
    isLossless: false,
    canDecode: true
  }

this suggests me i have many codes for H265 encoing of videos.
And if i change my code slighly as follows:

command.inputOptions([
    '-i',
    video.path,
    '-c:v',
    'hevc',
    '-crf',
    '23',
    '-tag:v',
    'hvc1',
    '-pix_fmt',
    'yuv420p',
    '-color_primaries',
    '1',
    '-color_trc',
    '1',
    '-colorspace',
    '1',
    '-movflags',
    '+faststart'
  ]);

I have changed the codec to hevc, and then i didn't get the error anymore.
But now i get a new error as follows: Option movflags not found.

Cannot process video: ffmpeg exited with code 1: Option movflags not
found.

Any help will be appreciated..

Was this page helpful?
0 / 5 - 0 ratings