Title: Error while opening encoder for output stream #0:0
Last modified: August 22, 2016

---

# Error while opening encoder for output stream #0:0

 *  [rhyshudson](https://wordpress.org/support/users/rhyshudson/)
 * (@rhyshudson)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-while-opening-encoder-for-output-stream-00/)
 * Every time we try to encode a video, we get the error Error while opening encoder
   for output stream #0:0
 * Any ideas?
 * [https://wordpress.org/plugins/video-embed-thumbnail-generator/](https://wordpress.org/plugins/video-embed-thumbnail-generator/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-while-opening-encoder-for-output-stream-00/#post-5693568)
 * Please paste the full output of the FFMPEG test output area from the bottom of
   the FFMPEG Settings tab of the plugin settings page. Make sure you put the code
   between backticks so it’s formatted properly.
 * If there aren’t any errors in the test output, post a link to a video you’re 
   having a problem with. Does it happen with every video? Have you ever been able
   to encode videos and did something change?
 *  Thread Starter [rhyshudson](https://wordpress.org/support/users/rhyshudson/)
 * (@rhyshudson)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-while-opening-encoder-for-output-stream-00/#post-5693571)
 * Hi, thanks for the quick response. It happens to all videos but only since we
   changed server. FFMPEG is installed. Am I missing something?
 *     ```
       ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
         built on Apr 13 2014 13:00:18 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
         configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
         libavutil      52. 66.100 / 52. 66.100
         libavcodec     55. 52.102 / 55. 52.102
         libavformat    55. 33.100 / 55. 33.100
         libavdevice    55. 10.100 / 55. 10.100
         libavfilter     4.  2.100 /  4.  2.100
         libswscale      2.  5.102 /  2.  5.102
         libswresample   0. 18.100 /  0. 18.100
         libpostproc    52.  3.100 / 52.  3.100
       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/dingvideo/public_html/wp-content/plugins/video-embed-thumbnail-generator/images/sample-video-h264.mp4':
         Metadata:
           major_brand     : isom
           minor_version   : 512
           compatible_brands: isomiso2avc1mp41
           encoder         : Lavf55.33.100
         Duration: 00:00:01.02, start: 0.021333, bitrate: 123 kb/s
           Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 109 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn, 47.95 tbc (default)
           Metadata:
             handler_name    : VideoHandler
           Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
           Metadata:
             handler_name    : SoundHandler
       Please use -b:a or -b:v, -b is ambiguous
       Codec AVOption rc_lookahead (Number of frames to look ahead for alternate reference frame selection) specified for output file #0 (/home/dingvideo/public_html/wp-content/uploads/sample-video-h264-480.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
       [NULL @ 0x1a91f60] [Eval @ 0x7fffd4628990] Undefined constant or missing '(' in 'chroma'
       [NULL @ 0x1a91f60] Unable to parse option value "+chroma"
       [NULL @ 0x1a91f60] Error setting option cmp to value +chroma.
       Output #0, mp4, to '/home/dingvideo/public_html/wp-content/uploads/sample-video-h264-480.mp4':
         Metadata:
           major_brand     : isom
           minor_version   : 512
           compatible_brands: isomiso2avc1mp41
           encoder         : Lavf55.33.100
           Stream #0:0(eng): Video: h264, yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 90k tbn, 23.98 tbc (default)
           Metadata:
             handler_name    : VideoHandler
           Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, fltp, 128 kb/s (default)
           Metadata:
             handler_name    : SoundHandler
       Stream mapping:
         Stream #0:0 -> #0:0 (h264 -> libx264)
         Stream #0:1 -> #0:1 (aac -> aac)
       Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
       ```
   
 *  Plugin Author [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-while-opening-encoder-for-output-stream-00/#post-5693574)
 * You have a new version of FFMPEG so you should disable the legacy FFMPEG options
   in the FFFMPEG settings tab.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error while opening encoder for output stream #0:0’ is closed to new 
replies.

 * ![](https://ps.w.org/video-embed-thumbnail-generator/assets/icon.svg?rev=2965979)
 * [Videopack](https://wordpress.org/plugins/video-embed-thumbnail-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/video-embed-thumbnail-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/error-while-opening-encoder-for-output-stream-00/#post-5693574)
 * Status: not resolved