Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> SRT file:
- 1
- 00:00:00,000 --> 00:00:00,001
- 2
- 00:00:00,001 –-> 00:00:04,761
- He drives to school every morning
- 3
- 00:00:04,761 –-> 00:00:13,061
- Cause love comes slow and it goes so fast
- 4
- 00:00:13,061 –-> 00:00:17,391
- Boy meets girl makes her his wife
- 5
- 00:00:17,391 –-> 00:00:23,151
- Remembering him comes in flashbacks and echoes
- 6
- 00:00:23,151 –-> 00:00:29,441
- I think when it's all over it just comes back and flashes you know?
- 7
- 00:00:29,441 –-> 00:00:37,951
- High dive into frozen waves where the past comes back to life
- 8
- 00:00:37,951 –-> 00:00:42,911
- She sees them walking in a straight line
- >> Ass file (tried as an alternative via ffmpeg but appears not to be rendering correctly)
- [Script Info]
- ; Script generated by FFmpeg/Lavc56.13.100
- ScriptType: v4.00+
- PlayResX: 384
- PlayResY: 288
- [V4+ Styles]
- Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
- Style: Default,Arial,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,100,100,0,0,1,1,0,2,10,10,10,0
- [Events]
- Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
- Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,, \N2\N00:00:00,001 –-> 00:00:04,761\NHe drives to school every morning
- >> Command:
- `ffmpeg -i #{mp4inputfile} -filter:v subtitles=#{srt_file} #{outputfile}`
- >> OUTPUT:
- configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libass --enable-vda
- libavutil 54. 15.100 / 54. 15.100
- libavcodec 56. 13.100 / 56. 13.100
- libavformat 56. 15.102 / 56. 15.102
- libavdevice 56. 3.100 / 56. 3.100
- libavfilter 5. 2.103 / 5. 2.103
- libavresample 2. 1. 0 / 2. 1. 0
- libswscale 3. 1.101 / 3. 1.101
- libswresample 1. 1.100 / 1. 1.100
- libpostproc 53. 3.100 / 53. 3.100
- Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/JW/Dropbox/T10/SBRI/_code/videos_final/3rd person present tense (303).mp4':
- Metadata:
- major_brand : isom
- minor_version : 512
- compatible_brands: isomiso2avc1mp41
- encoder : Lavf56.15.102
- Duration: 00:00:43.17, start: 0.036281, bitrate: 862 kb/s
- Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x406 [SAR 406:405 DAR 16:9], 732 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
- Metadata:
- handler_name : VideoHandler
- Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
- Metadata:
- handler_name : SoundHandler
- [libx264 @ 0x7f904c806800] using SAR=406/405
- [libx264 @ 0x7f904c806800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
- [libx264 @ 0x7f904c806800] profile High, level 3.0
- [libx264 @ 0x7f904c806800] 264 - core 142 r2495 6a301b6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - 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=23 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 '/Users/JW/Dropbox/T10/SBRI/_code/videos_final/3rd person present tense (303)_subs.mp4':
- Metadata:
- major_brand : isom
- minor_version : 512
- compatible_brands: isomiso2avc1mp41
- encoder : Lavf56.15.102
- Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x406 [SAR 406:405 DAR 16:9], q=-1--1, 23.98 fps, 24k tbn, 23.98 tbc (default)
- Metadata:
- handler_name : VideoHandler
- encoder : Lavc56.13.100 libx264
- Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
- Metadata:
- handler_name : SoundHandler
- encoder : Lavc56.13.100 libvo_aacenc
- Stream mapping:
- Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
- Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))
- Press [q] to stop, [?] for help
- frame= 65 fps=0.0 q=28.0 size= 135kB time=00:00:02.81 bitrate= 392.0kbits/s dup=1 drop=0 frame= 91 fps= 90 q=25.0 size= 297kB time=00:00:03.91 bitrate= 622.8kbits/s dup=1 drop=0 frame= 123 fps= 79 q=28.0 size= 559kB time=00:00:05.25 bitrate= 870.5kbits/s dup=1 drop=0 frame= 149 fps= 72 q=28.0 size= 759kB time=00:00:06.32 bitrate= 983.2kbits/s dup=1 drop=0 frame= 170 fps= 66 q=28.0 size= 950kB time=00:00:07.20 bitrate=1079.7kbits/s dup=1 drop=0 frame= 199 fps= 63 q=28.0 size= 1047kB time=00:00:08.41 bitrate=1018.9kbits/s dup=1 drop=0 frame= 228 fps= 61 q=28.0 size= 1147kB time=00:00:09.62 bitrate= 976.8kbits/s dup=1 drop=0 frame= 256 fps= 61 q=28.0 size= 1270kB time=00:00:10.78 bitrate= 964.6kbits/s dup=1 drop=0 frame= 283 fps= 59 q=28.0 size= 1428kB time=00:00:11.92 bitrate= 981.4kbits/s dup=1 drop=0 frame= 314 fps= 60 q=28.0 size= 1617kB time=00:00:13.22 bitrate=1002.0kbits/s dup=1 drop=0 frame= 364 fps= 63 q=28.0 size= 1716kB time=00:00:15.28 bitrate= 919.2kbits/s dup=1 drop=0 frame= 409 fps= 65 q=28.0 size= 1786kB time=00:00:17.16 bitrate= 852.1kbits/s dup=1 drop=0 frame= 448 fps= 66 q=28.0 size= 1888kB time=00:00:18.79 bitrate= 823.1kbits/s dup=1 drop=0 frame= 480 fps= 66 q=28.0 size= 1981kB time=00:00:20.14 bitrate= 805.6kbits/s dup=1 drop=0 frame= 506 fps= 65 q=28.0 size= 2121kB time=00:00:21.23 bitrate= 818.2kbits/s dup=1 drop=0 frame= 529 fps= 64 q=28.0 size= 2234kB time=00:00:22.18 bitrate= 824.7kbits/s dup=1 drop=0 frame= 547 fps= 62 q=28.0 size= 2393kB time=00:00:22.95 bitrate= 854.3kbits/s dup=1 drop=0 frame= 560 fps= 60 q=28.0 size= 2506kB time=00:00:23.48 bitrate= 874.2kbits/s dup=1 drop=0 frame= 579 fps= 59 q=28.0 size= 2652kB time=00:00:24.27 bitrate= 895.0kbits/s dup=1 drop=0 frame= 598 fps= 58 q=28.0 size= 2810kB time=00:00:25.06 bitrate= 918.5kbits/s dup=1 drop=0 frame= 630 fps= 58 q=28.0 size= 2985kB time=00:00:26.38 bitrate= 926.8kbits/s dup=1 drop=0 frame= 682 fps= 60 q=28.0 size= 3093kB time=00:00:28.57 bitrate= 887.0kbits/s dup=1 drop=0 frame= 732 fps= 61 q=28.0 size= 3266kB time=00:00:30.63 bitrate= 873.4kbits/s dup=1 drop=0 frame= 784 fps= 63 q=28.0 size= 3411kB time=00:00:32.81 bitrate= 851.3kbits/s dup=1 drop=0 frame= 824 fps= 63 q=28.0 size= 3484kB time=00:00:34.49 bitrate= 827.6kbits/s dup=1 drop=0 frame= 856 fps= 63 q=28.0 size= 3550kB time=00:00:35.81 bitrate= 812.0kbits/s dup=1 drop=0 frame= 893 fps= 64 q=28.0 size= 3672kB time=00:00:37.37 bitrate= 804.8kbits/s dup=1 drop=0 frame= 930 fps= 64 q=28.0 size= 3776kB time=00:00:38.90 bitrate= 795.0kbits/s dup=1 drop=0 frame= 959 fps= 64 q=28.0 size= 3961kB time=00:00:40.11 bitrate= 809.1kbits/s dup=1 drop=0 frame= 991 fps= 64 q=28.0 size= 4033kB time=00:00:41.45 bitrate= 797.0kbits/s dup=1 drop=0 frame= 1007 fps= 63 q=28.0 size= 4068kB time=00:00:42.10 bitrate= 791.5kbits/s dup=1 drop=0 frame= 1016 fps= 61 q=28.0 size= 4100kB time=00:00:42.50 bitrate= 790.2kbits/s dup=1 drop=0 frame= 1030 fps= 60 q=-1.0 Lsize= 4320kB time=00:00:43.17 bitrate= 819.7kbits/s dup=1 drop=0
- video:3612kB audio:675kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.752495%
- [libx264 @ 0x7f904c806800] frame I:44 Avg QP:17.58 size: 16186
- [libx264 @ 0x7f904c806800] frame P:495 Avg QP:22.62 size: 5016
- [libx264 @ 0x7f904c806800] frame B:491 Avg QP:23.30 size: 1026
- [libx264 @ 0x7f904c806800] consecutive B-frames: 24.1% 34.6% 7.6% 33.8%
- [libx264 @ 0x7f904c806800] mb I I16..4: 27.3% 43.8% 28.9%
- [libx264 @ 0x7f904c806800] mb P I16..4: 5.9% 14.8% 2.9% P16..4: 31.2% 10.7% 4.3% 0.0% 0.0% skip:30.3%
- [libx264 @ 0x7f904c806800] mb B I16..4: 0.2% 0.5% 0.2% B16..8: 26.1% 3.3% 0.6% direct: 1.1% skip:67.9% L0:40.7% L1:52.4% BI: 6.9%
- [libx264 @ 0x7f904c806800] 8x8 transform intra:57.6% inter:72.8%
- [libx264 @ 0x7f904c806800] coded y,uvDC,uvAC intra: 41.3% 60.3% 22.0% inter: 9.1% 14.5% 0.6%
- [libx264 @ 0x7f904c806800] i16 v,h,dc,p: 41% 25% 11% 22%
- [libx264 @ 0x7f904c806800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 20% 23% 4% 5% 6% 5% 5% 4%
- [libx264 @ 0x7f904c806800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 20% 12% 5% 8% 9% 7% 6% 4%
- [libx264 @ 0x7f904c806800] i8c dc,h,v,p: 53% 20% 21% 6%
- [libx264 @ 0x7f904c806800] Weighted P-Frames: Y:14.1% UV:9.9%
- [libx264 @ 0x7f904c806800] ref P L0: 68.6% 14.5% 12.3% 4.2% 0.4%
- [libx264 @ 0x7f904c806800] ref B L0: 91.8% 7.5% 0.8%
- [libx264 @ 0x7f904c806800] ref B L1: 98.4% 1.6%
- [libx264 @ 0x7f904c806800] kb/s:688.73
- ffprobe output of the mp4 file:
- >> $ ffprobe '/Users/JW/Dropbox/T10/SBRI/_code/videos_final/3rd person present tense (303).mp4'ffprobe version 2.5.4 Copyright (c) 2007-2015 the FFmpeg developers
- built on Feb 25 2015 15:52:19 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
- configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libass --enable-vda
- libavutil 54. 15.100 / 54. 15.100
- libavcodec 56. 13.100 / 56. 13.100
- libavformat 56. 15.102 / 56. 15.102
- libavdevice 56. 3.100 / 56. 3.100
- libavfilter 5. 2.103 / 5. 2.103
- libavresample 2. 1. 0 / 2. 1. 0
- libswscale 3. 1.101 / 3. 1.101
- libswresample 1. 1.100 / 1. 1.100
- libpostproc 53. 3.100 / 53. 3.100
- Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/JW/Dropbox/T10/SBRI/_code/videos_final/3rd person present tense (303).mp4':
- Metadata:
- major_brand : isom
- minor_version : 512
- compatible_brands: isomiso2avc1mp41
- encoder : Lavf56.15.102
- Duration: 00:00:43.17, start: 0.036281, bitrate: 862 kb/s
- Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x406 [SAR 406:405 DAR 16:9], 732 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
- Metadata:
- handler_name : VideoHandler
- Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
- Metadata:
- handler_name : SoundHandler
- [FORMAT]
- filename=/Users/JW/Dropbox/T10/SBRI/_code/videos_final/3rd person present tense (303).mp4
- nb_streams=2
- nb_programs=0
- format_name=mov,mp4,m4a,3gp,3g2,mj2
- format_long_name=QuickTime / MOV
- start_time=-0.036281
- duration=43.165000
- size=4653139
- bit_rate=862391
- probe_score=100
- TAG:major_brand=isom
- TAG:minor_version=512
- TAG:compatible_brands=isomiso2avc1mp41
- TAG:encoder=Lavf56.15.102
- [/FORMAT]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement