'#!/bin/bash PARAMFILE=${1} . ${PARAMFILE} extractVideo () { # Split the portion of the video that we want to work on directly from the source file # converting the video to frame files one PNG file per frame and # splitting the audio to to an mp3 file rm -fr "${OUTPUTFILE}-frames" mkdir -p "${OUTPUTFILE}-frames" ./ffmpeg -threads 4 \ -i ${INPUTFILE} -ss ${SCENESTART} -t ${SCENEDURATION} \ -f image2 -y "${OUTPUTFILE}-frames"/frame%d.png \ -c:a libvo_aacenc -y "${OUTPUTFILE}.mkv" # -c:a copy -y "${OUTPUTFILE}.mkv" } createIntro () { # Create the introduction image by merging the logo file with the titles for the video convert ${LOGO} -gravity Center -font DejaVu-Sans-Book \ -pointsize 20 -fill gray -draw "text 1,21 'University'" \ -fill white -draw "text 0,20 'University'" \ -pointsize 50 -fill gray -draw "text 2,72 '${SPEAKER}'" \ -fill white -draw "text 0,70 '${SPEAKER}'" \ -pointsize 30 -fill gray -draw "text 1,131 '${TITLE}'" \ -fill white -draw "text 0,130 '${TITLE}'" \ -pointsize 20 -fill gray -draw "text 1,171 '${DATE}'" \ -fill white -draw "text 0,170 '${DATE}'" \ "${OUTPUTFILE}-intro.png" # Create still video from the introduction image and silence ./ffmpeg -ar 48000 -t ${LOGOLENGTH} -f s16le -c:a pcm_s16le -i /dev/zero -ab 64K -c:a libvo_aacenc -y silence.mkv ./ffmpeg -loop 1 -i "${OUTPUTFILE}-intro.png" -q:v 1 -r 29.97 -t ${LOGOLENGTH} -y -f MP4 "${OUTPUTFILE}-logo1.mkv" ./ffmpeg -i "${OUTPUTFILE}-logo1.mkv" -i "silence.mkv" \ -c:v copy -c:a copy -map 0:0 -map 1:0 -threads 4 \ -y -f MP4 "${OUTPUTFILE}-intro.mkv" } createExit () { # Merge the logo file with the closing for the video convert ${LOGO} -gravity Center -font DejaVu-Sans-Book \ -pointsize 20 -fill gray -draw "text 1,21 'University'" \ -fill white -draw "text 0,20 'University'" \ -pointsize 20 -fill gray -draw "text 1,71 'Jason'" \ -fill white -draw "text 0,70 'IA Jason Ladew'" \ -pointsize 20 -fill gray -draw "text 1,101 'trademarks'" \ -fill white -draw "text 0,100 'trademarks'" \ -pointsize 20 -fill gray -draw "text 1,141 'URL'" \ -fill white -draw "text 0,140 'URL'" \ "${OUTPUTFILE}-exit.png" # Create still video from the exit image and silence ./ffmpeg -ar 48000 -t ${LOGOLENGTH} -f s16le -c:a pcm_s16le -i /dev/zero -ab 64K -c:a libvo_aacenc -y silence.mkv ./ffmpeg -loop 1 -i "${OUTPUTFILE}-exit.png" -q:v 1 -r 29.97 -t ${LOGOLENGTH} -y -f MP4 "${OUTPUTFILE}-logo2.mkv" ./ffmpeg -i "${OUTPUTFILE}-logo2.mkv" -i "silence.mkv" \ -c:v copy -c:a copy -map 0:0 -map 1:0 -threads 4 \ -y -f MP4 "${OUTPUTFILE}-exit.mkv" } fadeOutIntro () { # Fadeout intro into the first 3 seconds of the video (3 seconds at 29.97 frames per second ~ 90 ) mkdir -p "${OUTPUTFILE}-frames2" for i in {1..90}; do percent=$(echo "scale=3; ${i}*100/90" | bc ) convert -compose dissolve -gravity center -define compose:args=${percent} \ -composite "${OUTPUTFILE}-intro.png" "${OUTPUTFILE}-frames"/frame${i}.png "${OUTPUTFILE}-frames2"/frame${i}.png done } reasembleVideo () { # Merge the modified frames onto the original frames cp "${OUTPUTFILE}-frames2"/frame*.png "${OUTPUTFILE}-frames" # Reassembles the modified frames and the audio into an output video ./ffmpeg -threads 4 \ -r 29.97 -f image2 -i "${OUTPUTFILE}-frames"/frame%d.png \ -i "${OUTPUTFILE}.mkv" -c:a copy \ -map 0:0 -map 1:0 -f MP4 -y "${OUTPUTFILE}.mkv" ./ffmpeg -threads 4 \ -i concat:"${OUTPUTFILE}-intro.mkv"\|"${OUTPUTFILE}.mkv"\|"${OUTPUTFILE}-exit.mkv" \ -r 29.97 -y "${OUTPUTFILE}.mkv" } # These functions do not depend on each other. They can be executed in parallel extractVideo & echo "CREATE INTRO ROUTINE" createIntro & echo "CREATE EXIT ROUTINE" createExit & echo processing wait echo "Creating overlays" # These functions do not depend on each other. They can be executed in parallel fadeOutIntro reasembleVideo # Done! echo "Done!" ` The following is the full output from the script: ` processing ffmpeg version N-57401-ga443b97 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 25 2013 05:34:36 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg- libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ssh_main.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 1970-01-01 00:00:00 Duration: 00:00:51.00, start: 0.000000, bitrate: 359 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1720x752, 280 kb/s, 10 fps, 10 tbr, 10 tbn, 20 tbc (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 75 kb/s (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : SoundHandler [libx264 @ 0x32e1200] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 ffmpeg version N-57401-ga443b97 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 25 2013 05:34:36 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' -- libpostproc 52. 3.100 / 52. 3.100 ffmpeg version N-57401-ga443b97 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 25 2013 05:34:36 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver libpostproc 52. 3.100 / 52. 3.100 [libx264 @ 0x32e1200] profile High, level 3.2 [libx264 @ 0x32e1200] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, image2, to 'ssh_basic_1-frames/frame%d.png': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.19.104 Stream #0:0(und): Video: png, rgb24, 1720x752, q=2-31, 200 kb/s, 90k tbn, 10 tbc (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Output #1, matroska, to 'ssh_basic_1.mkv': Metadata: major_brand : Guessed Channel Layout for Input Stream #0.0 : mono isom Input #0, s16le, from '/dev/zero': minor_version : Duration: 512N/A , bitrate: compatible_brands: 768 kb/sisomiso2avc1mp41Guessed Channel Layout for Input Stream #0.0 : mono Input #0, s16le, from '/dev/zero': Stream #0:0 encoder : Duration: : Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/sN/ALavf55.19.104 , bitrate: 768 kb/s Stream #1:0 (und) Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1720x752, q=-1--1: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s, 1k tbn , 10 tbc (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #1:1(und): Audio: aac (libvo_aacenc) ([255][0][0][0] / 0x00FF), 44100 Hz, mono, s16, 128 kb/s (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> png) Stream #0:0 -> #1:0 (h264 -> libx264) Stream #0:1 -> #1:1 (aac -> libvo_aacenc) Press [q] to stop, [?] for help Output #0, matroska, to 'silence.mkv': Metadata: encoder : Lavf55.19.104 Stream #0:0: Audio: aac (libvo_aacenc) ([255][0][0][0] / 0x00FF), 48000 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le -> libvo_aacenc) Press [q] to stop, [?] for help Output #0, matroska, to 'silence.mkv': Metadata: encoder : Lavf55.19.104 Stream #0:0: Audio: aac (libvo_aacenc) ([255][0][0][0] / 0x00FF), 48000 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le -> libvo_aacenc) Press [q] to stop, [?] for help size= 9kB time=00:00:01.01 bitrate= 73.0kbits/s video:0kB audio:8kB subtitle:0 global headers:0kB muxing overhead 10.353898% size= 9kB time=00:00:01.01 bitrate= 73.0kbits/s video:0kB audio:8kB subtitle:0 global headers:0kB muxing overhead 10.353898% ffmpeg version N-57401-ga443b97 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 25 2013 05:34:36 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' -- Input #0, image2, from 'ssh_basic_1-intro.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, rgba, 200x72 [SAR 72:72 DAR 25:9], 25 fps, 25 tbr, 25 tbn, 25 tbc Input #0, image2, from 'ssh_basic_1-exit.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, rgba, 200x72 [SAR 72:72 DAR 25:9], 25 fps, 25 tbr, 25 tbn, 25 tbc No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x2b3b140] using SAR=1/1 No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x3794140] using SAR=1/1 [libx264 @ 0x2b3b140] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x3794140] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x2b3b140] profile High 4:4:4 Predictive, level 1.1, 4:4:4 8-bit [libx264 @ 0x2b3b140] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'ssh_basic_1-logo2.mkv': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 200x72 [SAR 1:1 DAR 25:9], q=-1--1, 11988 tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (png -> libx264)[libx264 @ 0x3794140] profile High 4:4:4 Predictive, level 1.1, 4:4:4 8-bit Press [q] to stop, [?] for help [libx264 @ 0x3794140] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'ssh_basic_1-logo1.mkv': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 200x72 [SAR 1:1 DAR 25:9], q=-1--1, 11988 tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (png -> libx264) Press [q] to stop, [?] for help frame= 30 fps=0.0 q=-1.0 Lsize= 4kB time=00:00:00.93 bitrate= 34.0kbits/s dup=5 drop=0 video:3kB audio:0kB subtitle:0 global headers:0kB muxing overhead 41.057488% [libx264 @ 0x2b3b140] frame I:1 Avg QP:26.17 size: 1546 [libx264 @ 0x2b3b140] frame P:8 Avg QP:31.53 size: 26 [libx264 @ 0x2b3b140] frame B:21 Avg QP:34.67 size: 16 [libx264 @ 0x2b3b140] consecutive B-frames: 6.7% 0.0% 0.0% 93.3% [libx264 @ 0x2b3b140] mb I I16..4: 36.9% 27.7% 35.4% [libx264 @ 0x2b3b140] mb P I16..4: 0.0% 0.8% 0.0% P16..4: 2.7% 0.4% 0.0% 0.0% 0.0% skip:96.2% [libx264 @ 0x2b3b140] mb B I16..4: 0.0% 0.6% 0.0% B16..8: 2.6% 0.0% 0.0% direct: 0.0% skip:96.8% L0:55.6% L1:44.4% BI: 0.0% [libx264 @ 0x2b3b140] 8x8 transform intra:39.0% inter:75.0% [libx264 @ 0x2b3b140] coded y,u,v intra: 22.1% 20.1% 14.9% inter: 0.0% 0.0% 0.0% [libx264 @ 0x2b3b140] i16 v,h,dc,p: 8% 92% 0% 0% [libx264 @ 0x2b3b140] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 30% 40% 0% 0% 0% 0% 0% 0% [libx264 @ 0x2b3b140] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 23% 14% 2% 3% 5% 4% 3% 4% [libx264 @ 0x2b3b140] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x2b3b140] ref P L0: 15.6% 15.6% 18.8% 50.0% [libx264 @ 0x2b3b140] ref B L0: 70.0% 25.0% 5.0% [libx264 @ 0x2b3b140] ref B L1: 93.8% 6.2% [libx264 @ 0x2b3b140] kb/s:16.71 frame= 30 fps=0.0 q=-1.0 Lsize= 4kB time=00:00:00.93 bitrate= 34.0kbits/s dup=5 drop=0 video:3kB audio:0kB subtitle:0 global headers:0kB muxing overhead 41.057488% [libx264 @ 0x3794140] frame I:1 Avg QP:26.17 size: 1546 [libx264 @ 0x3794140] frame P:8 Avg QP:31.53 size: 26 [libx264 @ 0x3794140] frame B:21 Avg QP:34.67 size: 16 [libx264 @ 0x3794140] consecutive B-frames: 6.7% 0.0% 0.0% 93.3% [libx264 @ 0x3794140] mb I I16..4: 36.9% 27.7% 35.4% [libx264 @ 0x3794140] mb P I16..4: 0.0% 0.8% 0.0% P16..4: 2.7% 0.4% 0.0% 0.0% 0.0% skip:96.2% [libx264 @ 0x3794140] mb B I16..4: 0.0% 0.6% 0.0% B16..8: 2.6% 0.0% 0.0% direct: 0.0% skip:96.8% L0:55.6% L1:44.4% BI: 0.0% ffmpeg version N-57401-ga443b97 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 25 2013 05:34:36 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' -- libpostproc 52. 3.100 / 52. 3.100 8x8 transform intra:39.0% inter:75.0% [libx264 @ 0x3794140] coded y,u,v intra: 22.1% 20.1% 14.9% inter: 0.0% 0.0% 0.0% [libx264 @ 0x3794140] i16 v,h,dc,p: 8% 92% 0% 0% [libx264 @ 0x3794140] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 30% 40% 0% 0% 0% 0% 0% 0% [libx264 @ 0x3794140] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 23% 14% 2% 3% 5% 4% 3% 4% [libx264 @ 0x3794140] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x3794140] ref P L0: 15.6% 15.6% 18.8% 50.0% [libx264 @ 0x3794140] ref B L0: 70.0% 25.0% 5.0% [libx264 @ 0x3794140] ref B L1: 93.8% 6.2% [libx264 @ 0x3794140] kb/s:16.71 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ssh_basic_1-logo2.mkv': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.19.104 Duration: 00:00:01.00, start: 0.000000, bitrate: 31 kb/s Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 200x72 [SAR 1:1 DAR 25:9], 22 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Input #1, matroska,webm, from 'silence.mkv': Metadata: ENCODER : Lavf55.19.104 Duration: 00:00:01.03, start: 0.000000, bitrate: 71 kb/s Stream #1:0: Audio: aac, 48000 Hz, mono, fltp (default) Output #0, mp4, to 'ssh_basic_1-exit.mkv': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.19.104 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 200x72 [SAR 1:1 DAR 25:9], q=2-31, 22 kb/s, 29.97 fps, 11988 tbn, 11988 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, mono (default) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help ffmpeg version N-57401-ga443b97 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 25 2013 05:34:36 with gcc 4.6 (Debian 4.6.3-1) libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ssh_basic_1-logo1.mkv': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.19.104 Duration: 00:00:01.00, start: 0.000000, bitrate: 31 kb/s Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 200x72 [SAR 1:1 DAR 25:9], 22 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Input #1, matroska,webm, from 'silence.mkv': Metadata: ENCODER : Lavf55.19.104 Duration: 00:00:01.03, start: 0.000000, bitrate: 71 kb/s Stream #1:0: Audio: aac, 48000 Hz, mono, fltp (default) Output #0, mp4, to 'ssh_basic_1-intro.mkv': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.19.104 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 200x72 [SAR 1:1 DAR 25:9], q=2-31, 22 kb/s, 29.97 fps, 11988 tbn, 11988 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, mono (default) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 30 fps=0.0 q=-1.0 Lsize= 13kB time=00:00:01.04 bitrate= 103.7kbits/s video:3kB audio:8kB subtitle:0 global headers:0kB muxing overhead 21.567044% frame= 30 fps=0.0 q=-1.0 Lsize= 13kB time=00:00:01.04 bitrate= 103.7kbits/s video:3kB audio:8kB subtitle:0 global headers:0kB muxing overhead 21.567044% frame= 17 fps=0.0 q=0.0 q=0.0 size=N/A time=00:00:02.88 bitrate=N/A frame= 36 fps= 34 q=0.0 q=0.0 size=N/A time=00:00:04.79 bitrate=N/A frame= 50 fps= 31 q=0.0 q=25.0 size=N/A time=00:00:06.21 bitrate=N/A frame= 64 fps= 30 q=0.0 q=25.0 size=N/A time=00:00:07.60 bitrate=N/A frame= 82 fps= 31 q=0.0 q=25.0 size=N/A time=00:00:09.39 bitrate=N/A frame= 90 fps= 28 q=0.0 q=25.0 size=N/A time=00:00:10.90 bitrate=N/A frame= 90 fps= 24 q=0.0 q=25.0 size=N/A time=00:00:14.40 bitrate=N/A frame= 90 fps= 22 q=0.0 q=25.0 size=N/A time=00:00:16.70 bitrate=N/A frame= 90 fps= 19 q=0.0 q=25.0 size=N/A time=00:00:19.63 bitrate=N/A frame= 90 fps= 17 q=0.0 q=25.0 size=N/A time=00:00:22.48 bitrate=N/A frame= 90 fps= 16 q=0.0 q=25.0 size=N/A time=00:00:25.50 bitrate=N/A frame= 90 fps= 14 q=0.0 q=25.0 size=N/A time=00:00:28.73 bitrate=N/A frame= 90 fps= 13 q=0.0 q=25.0 size=N/A time=00:00:32.70 bitrate=N/A frame= 90 fps= 12 q=0.0 q=25.0 size=N/A time=00:00:36.30 bitrate=N/A frame= 90 fps= 12 q=0.0 q=25.0 size=N/A time=00:00:39.99 bitrate=N/A frame= 90 fps= 11 q=0.0 q=25.0 size=N/A time=00:00:43.71 bitrate=N/A frame= 90 fps= 10 q=0.0 q=25.0 size=N/A time=00:00:47.10 bitrate=N/A frame= 90 fps=9.6 q=0.0 q=25.0 size=N/A time=00:00:50.30 bitrate=N/A frame= 90 fps=9.0 q=0.0 Lq=-1.0 size=N/A time=00:00:50.80 bitrate=N/A video:34108kB audio:788kB subtitle:0 global headers:0kB muxing overhead -100.000062% [libx264 @ 0x32e1200] frame I:3 Avg QP:13.05 size: 67561 [libx264 @ 0x32e1200] frame P:149 Avg QP:15.56 size: 6279 [libx264 @ 0x32e1200] frame B:358 Avg QP:18.72 size: 489 [libx264 @ 0x32e1200] consecutive B-frames: 5.5% 2.4% 1.2% 91.0% [libx264 @ 0x32e1200] mb I I16..4: 80.1% 1.8% 18.1% [libx264 @ 0x32e1200] mb P I16..4: 3.1% 0.3% 0.7% P16..4: 9.1% 0.8% 0.6% 0.0% 0.0% skip:85.4% [libx264 @ 0x32e1200] mb B I16..4: 0.4% 0.0% 0.0% B16..8: 6.1% 0.1% 0.0% direct: 0.3% skip:93.1% L0:48.3% L1:51.5% BI: 0.1% [libx264 @ 0x32e1200] 8x8 transform intra:5.5% inter:33.0% [libx264 @ 0x32e1200] coded y,uvDC,uvAC intra: 15.7% 26.4% 14.8% inter: 0.9% 1.8% 0.7% [libx264 @ 0x32e1200] i16 v,h,dc,p: 44% 40% 4% 12% [libx264 @ 0x32e1200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 33% 44% 3% 1% 1% 3% 1% 3% [libx264 @ 0x32e1200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 31% 18% 5% 6% 3% 7% 2% 5% [libx264 @ 0x32e1200] i8c dc,h,v,p: 53% 33% 12% 2% [libx264 @ 0x32e1200] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x32e1200] ref P L0: 85.2% 1.8% 9.4% 3.6% [libx264 @ 0x32e1200] ref B L0: 69.3% 27.8% 2.9% [libx264 @ 0x32e1200] ref B L1: 95.1% 4.9% [libx264 @ 0x32e1200] kb/s:206.00 Creating overlays ffmpeg version N-57401-ga443b97 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 25 2013 05:34:36 with gcc 4.6 (Debian 4.6.3-1) libpostproc 52. 3.100 / 52. 3.100 Input #0, image2, from 'ssh_basic_1-frames/frame%d.png': Duration: 00:00:03.00, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, rgba, 200x72 [SAR 72:72 DAR 25:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc Input #1, matroska,webm, from 'ssh_basic_1.mkv': Metadata: MAJOR_BRAND : isom MINOR_VERSION : 512 COMPATIBLE_BRANDS: isomiso2avc1mp41 ENCODER : Lavf55.19.104 Duration: 00:00:51.20, start: 0.000000, bitrate: 334 kb/s Stream #1:0(und): Video: h264 (High), yuv420p, 1720x752, SAR 1:1 DAR 215:94, 10 fps, 10 tbr, 1k tbn, 20 tbc (default) Metadata: CREATION_TIME : 1970-01-01 00:00:00 LANGUAGE : und HANDLER_NAME : VideoHandler Stream #1:1(und): Audio: aac, 44100 Hz, mono, fltp (default) Metadata: CREATION_TIME : 1970-01-01 00:00:00 LANGUAGE : und HANDLER_NAME : SoundHandler No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x2a58520] using SAR=1/1 [libx264 @ 0x2a58520] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x2a58520] profile High 4:4:4 Predictive, level 1.1, 4:4:4 8-bit [libx264 @ 0x2a58520] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [libx264 @ 0x27d0280] using SAR=1/1 [libx264 @ 0x27d0280] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x27d0280] profile High, level 3.2 [libx264 @ 0x27d0280] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'ssh_basic_1.mkv': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 200x72 [SAR 1:1 DAR 25:9], q=-1--1, 11988 tbn, 29.97 tbc Stream #0:1(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1720x752 [SAR 1:1 DAR 215:94], q=-1--1, 10240 tbn, 10 tbc (default) Metadata: CREATION_TIME : 1970-01-01 00:00:00 LANGUAGE : und HANDLER_NAME : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (png -> libx264) Stream #1:0 -> #0:1 (h264 -> libx264) Press [q] to stop, [?] for help [matroska,webm @ 0x27bbee0] Read error frame= 90 fps=0.0 q=-1.0 Lq=-1.0 size= 78kB time=00:00:02.93 bitrate= 217.0kbits/s dup=4 drop=0 video:75kB audio:0kB subtitle:0 global headers:0kB muxing overhead 3.187354% [libx264 @ 0x2a58520] frame I:2 Avg QP:21.83 size: 4450 [libx264 @ 0x2a58520] frame P:45 Avg QP:25.69 size: 277 [libx264 @ 0x2a58520] frame B:43 Avg QP:27.89 size: 44 [libx264 @ 0x2a58520] consecutive B-frames: 34.4% 4.4% 3.3% 57.8% [libx264 @ 0x2a58520] mb I I16..4: 17.7% 3.1% 79.2% delete output Done!