# Pastebin AXeiu4PG [root@ip-172-31-26-142 ec2-user]# ffmpeg -y -i ~ec2-user/Eucalyptus-Ansible-Deploy.mp4 -b:v 5M -acodec copy -vcodec h264_nvenc /var/tmp/test.mp4 ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9) configuration: --prefix=/opt/ffmpeg_build --extra-cflags=-I/opt/ffmpeg_build/include --extra-ldflags=-L/opt/ffmpeg_build/lib --bindir=/opt/bin --extra-libs=-ldl --enable-version3 --enable-libvpx --enable-libmp3lame --enable-libtheora $ -enable-libvorbis --enable-libx264 --enable-libxvid --disable-ffplay --enable-gpl --enable-nvenc libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ec2-user/Eucalyptus-Ansible-Deploy.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2014-10-01 17:11:35 title : Eucalyptus-Ansible-Deploy artist : John Mille Duration: 00:20:23.11, start: 0.000000, bitrate: 295 kb/s Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 166 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2014-10-01 17:11:35 handler_name : Mainconcept MP4 Video Media Handler encoder : AVC Coding Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: creation_time : 2014-10-01 17:11:35 handler_name : Mainconcept MP4 Sound Media Handler [h264_nvenc @ 0x3103a00] Failed to create nvenc instance: invalid version (15) Output #0, mp4, to '/var/tmp/test.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 artist : John Mille title : Eucalyptus-Ansible-Deploy Stream #0:0(eng): Unknown: none, SAR 1:1 DAR 0:0 (default) Metadata: creation_time : 2014-10-01 17:11:35 handler_name : Mainconcept MP4 Video Media Handler encoder : Lavc57.48.101 h264_nvenc Stream #0:1(eng): Unknown: none (default) Metadata: creation_time : 2014-10-01 17:11:35 handler_name : Mainconcept MP4 Sound Media Handler Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc)) Stream #0:1 -> #0:1 (copy) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height