[root@localhost mediasdk-tutorials-0.0.3]# ffmpeg -i to_m.mp4 -vcodec h264_qsv -an out_qsv.h264 ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --enable-libmfx --enable-nonfree --disable-yasm libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 to_m.mp4: No such file or directory [root@localhost mediasdk-tutorials-0.0.3]# cd _build/ [root@localhost _build]# ffmpeg -i to_m.mp4 -vcodec h264_qsv -an out_qsv.h264 ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --enable-libmfx --enable-nonfree --disable-yasm libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'to_m.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2013-12-21 20:57:24 Duration: 00:01:10.08, start: 0.000000, bitrate: 2242 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 2047 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default) Metadata: creation_time : 2013-12-21 20:57:25 handler_name : IsoMedia File Produced by Google, 5-11-2011 libva info: VA-API version 0.35.0 libva info: va_getDriverName() returns 0 libva info: User requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_0_32 libva info: va_openDriver() returns 0 Output #0, h264, to 'out_qsv.h264': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 encoder : Lavf57.25.100 Stream #0:0(und): Video: h264 (h264_qsv), nv12, 1280x720, q=2-31, 1000 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc57.24.102 h264_qsv Side data: unknown side data type 10 (24 bytes) Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv)) Press [q] to stop, [?] for help frame= 2100 fps=248 q=-0.0 Lsize= 8464kB time=00:01:10.03 bitrate= 990.0kbits/s speed=8.29x video:8464kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% [root@localhost _build]# ffmpeg -i to_m.mp4 -vn -acodec copy output.aac ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --enable-libmfx --enable-nonfree --disable-yasm libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'to_m.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2013-12-21 20:57:24 Duration: 00:01:10.08, start: 0.000000, bitrate: 2242 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 2047 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default) Metadata: creation_time : 2013-12-21 20:57:25 handler_name : IsoMedia File Produced by Google, 5-11-2011 Output #0, adts, to 'output.aac': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 encoder : Lavf57.25.100 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 191 kb/s (default) Metadata: creation_time : 2013-12-21 20:57:25 handler_name : IsoMedia File Produced by Google, 5-11-2011 Stream mapping: Stream #0:1 -> #0:0 (copy) Press [q] to stop, [?] for help size= 1663kB time=00:01:10.07 bitrate= 194.4kbits/s speed=5.34e+03x video:0kB audio:1642kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.256104% [root@localhost _build]# ./simple_decode out_qsv.h264 raw libva info: VA-API version 0.35.0 libva info: va_getDriverName() returns 0 libva info: User requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_0_32 libva info: va_openDriver() returns 0 Frame number: 2100 Execution time: 33.01 s (63.62 fps) ^C [root@localhost _build]# ./simple_encode -g 1280x720 -b 1000 -f 30/1 out_qsv.h264 op.mp4 libva info: VA-API version 0.35.0 libva info: va_getDriverName() returns 0 libva info: User requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_0_32 libva info: va_openDriver() returns 0 Frame number: 6 Execution time: 0.04 s (135.87 fps) [root@localhost _build]# ffmpeg -i op.mp4 -i output.aac try.mp4 ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --enable-libmfx --enable-nonfree --disable-yasm libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 Input #0, h264, from 'op.mp4': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1200k tbn, 60 tbc [aac @ 0x1e9cba0] Estimating duration from bitrate, this may be inaccurate Input #1, aac, from 'output.aac': Duration: 00:01:10.11, bitrate: 194 kb/s Stream #1:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 194 kb/s Output #0, mp4, to 'try.mp4': Metadata: encoder : Lavf57.25.100 Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 30 fps, 15360 tbn, 30 tbc Metadata: encoder : Lavc57.24.102 mpeg4 Side data: unknown side data type 10 (24 bytes) Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc57.24.102 aac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native)) Stream #1:0 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help frame= 6 fps=2.2 q=9.7 Lsize= 1974kB time=00:01:10.07 bitrate= 230.8kbits/s speed= 26x video:882kB audio:1079kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.676221% [aac @ 0x1e96b40] Qavg: 3510.735