Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
835
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.78 KB | None | 0 0
  1. >> SRT file:
  2.  
  3. 1
  4. 00:00:00,000 --> 00:00:00,001
  5.    
  6. 2
  7. 00:00:00,001 –-> 00:00:04,761
  8. He drives to school every morning
  9.  
  10. 3
  11. 00:00:04,761 –-> 00:00:13,061
  12. Cause love comes slow and it goes so fast
  13.  
  14. 4
  15. 00:00:13,061 –-> 00:00:17,391
  16. Boy meets girl makes her his wife
  17.  
  18. 5
  19. 00:00:17,391 –-> 00:00:23,151
  20. Remembering him comes in flashbacks and echoes
  21.  
  22. 6
  23. 00:00:23,151 –-> 00:00:29,441
  24. I think when it's all over it just comes back and flashes you know?
  25.  
  26. 7
  27. 00:00:29,441 –-> 00:00:37,951
  28. High dive into frozen waves where the past comes back to life
  29.  
  30. 8
  31. 00:00:37,951 –-> 00:00:42,911
  32. She sees them walking in a straight line
  33.  
  34. >> Ass file (tried as an alternative via ffmpeg but appears not to be rendering correctly)
  35. [Script Info]
  36. ; Script generated by FFmpeg/Lavc56.13.100
  37. ScriptType: v4.00+
  38. PlayResX: 384
  39. PlayResY: 288
  40.  
  41. [V4+ Styles]
  42. Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
  43. Style: Default,Arial,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,100,100,0,0,1,1,0,2,10,10,10,0
  44.  
  45. [Events]
  46. Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
  47. 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
  48.  
  49. >> Command:
  50. `ffmpeg -i #{mp4inputfile} -filter:v subtitles=#{srt_file} #{outputfile}`
  51.  
  52. >> OUTPUT:
  53. 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
  54.  libavutil      54. 15.100 / 54. 15.100
  55.  libavcodec     56. 13.100 / 56. 13.100
  56.  libavformat    56. 15.102 / 56. 15.102
  57.  libavdevice    56.  3.100 / 56.  3.100
  58.  libavfilter     5.  2.103 /  5.  2.103
  59.  libavresample   2.  1.  0 /  2.  1.  0
  60.  libswscale      3.  1.101 /  3.  1.101
  61.  libswresample   1.  1.100 /  1.  1.100
  62.  libpostproc    53.  3.100 / 53.  3.100
  63. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/JW/Dropbox/T10/SBRI/_code/videos_final/3rd person present tense (303).mp4':
  64.  Metadata:
  65.    major_brand     : isom
  66.    minor_version   : 512
  67.    compatible_brands: isomiso2avc1mp41
  68.    encoder         : Lavf56.15.102
  69.  Duration: 00:00:43.17, start: 0.036281, bitrate: 862 kb/s
  70.    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)
  71.    Metadata:
  72.      handler_name    : VideoHandler
  73.    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
  74.    Metadata:
  75.      handler_name    : SoundHandler
  76. [libx264 @ 0x7f904c806800] using SAR=406/405
  77. [libx264 @ 0x7f904c806800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
  78. [libx264 @ 0x7f904c806800] profile High, level 3.0
  79. [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
  80. Output #0, mp4, to '/Users/JW/Dropbox/T10/SBRI/_code/videos_final/3rd person present tense (303)_subs.mp4':
  81.  Metadata:
  82.    major_brand     : isom
  83.    minor_version   : 512
  84.    compatible_brands: isomiso2avc1mp41
  85.    encoder         : Lavf56.15.102
  86.    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)
  87.    Metadata:
  88.      handler_name    : VideoHandler
  89.      encoder         : Lavc56.13.100 libx264
  90.    Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
  91.    Metadata:
  92.      handler_name    : SoundHandler
  93.      encoder         : Lavc56.13.100 libvo_aacenc
  94. Stream mapping:
  95.  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  96.  Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))
  97. Press [q] to stop, [?] for help
  98. 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
  99. video:3612kB audio:675kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.752495%
  100. [libx264 @ 0x7f904c806800] frame I:44    Avg QP:17.58  size: 16186
  101. [libx264 @ 0x7f904c806800] frame P:495   Avg QP:22.62  size:  5016
  102. [libx264 @ 0x7f904c806800] frame B:491   Avg QP:23.30  size:  1026
  103. [libx264 @ 0x7f904c806800] consecutive B-frames: 24.1% 34.6%  7.6% 33.8%
  104. [libx264 @ 0x7f904c806800] mb I  I16..4: 27.3% 43.8% 28.9%
  105. [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%
  106. [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%
  107. [libx264 @ 0x7f904c806800] 8x8 transform intra:57.6% inter:72.8%
  108. [libx264 @ 0x7f904c806800] coded y,uvDC,uvAC intra: 41.3% 60.3% 22.0% inter: 9.1% 14.5% 0.6%
  109. [libx264 @ 0x7f904c806800] i16 v,h,dc,p: 41% 25% 11% 22%
  110. [libx264 @ 0x7f904c806800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 20% 23%  4%  5%  6%  5%  5%  4%
  111. [libx264 @ 0x7f904c806800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 20% 12%  5%  8%  9%  7%  6%  4%
  112. [libx264 @ 0x7f904c806800] i8c dc,h,v,p: 53% 20% 21%  6%
  113. [libx264 @ 0x7f904c806800] Weighted P-Frames: Y:14.1% UV:9.9%
  114. [libx264 @ 0x7f904c806800] ref P L0: 68.6% 14.5% 12.3%  4.2%  0.4%
  115. [libx264 @ 0x7f904c806800] ref B L0: 91.8%  7.5%  0.8%
  116. [libx264 @ 0x7f904c806800] ref B L1: 98.4%  1.6%
  117. [libx264 @ 0x7f904c806800] kb/s:688.73
  118.  
  119.  
  120. ffprobe output of the mp4 file:
  121. >> $ 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
  122.  built on Feb 25 2015 15:52:19 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  123.  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
  124.  libavutil      54. 15.100 / 54. 15.100
  125.  libavcodec     56. 13.100 / 56. 13.100
  126.  libavformat    56. 15.102 / 56. 15.102
  127.  libavdevice    56.  3.100 / 56.  3.100
  128.  libavfilter     5.  2.103 /  5.  2.103
  129.  libavresample   2.  1.  0 /  2.  1.  0
  130.  libswscale      3.  1.101 /  3.  1.101
  131.  libswresample   1.  1.100 /  1.  1.100
  132.  libpostproc    53.  3.100 / 53.  3.100
  133. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/JW/Dropbox/T10/SBRI/_code/videos_final/3rd person present tense (303).mp4':
  134.  Metadata:
  135.    major_brand     : isom
  136.    minor_version   : 512
  137.    compatible_brands: isomiso2avc1mp41
  138.    encoder         : Lavf56.15.102
  139.  Duration: 00:00:43.17, start: 0.036281, bitrate: 862 kb/s
  140.    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)
  141.    Metadata:
  142.      handler_name    : VideoHandler
  143.    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
  144.    Metadata:
  145.      handler_name    : SoundHandler
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement