Advertisement
rowntreerob

heroku ffmpeg java

Dec 22nd, 2012
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.84 KB | None | 0 0
  1. Dont have to use Vulcan to build ffmpeg libs on heroku hardware. The precompiled linux-64 binary from the download page will work. Just get it and include in ./vendor/bin of your project.
  2.  
  3. http://ffmpeg.org/download.html - download the ffmpeg binary and run as shown in logs below:
  4.  
  5. heroku logs...
  6.  
  7. 3 posts below - ffmpeg pass1, ffmpeg pass2, download mp4 created by pass2
  8.  
  9. [ffmpeg, -y, -i, me760935400.jpg, -i, 20121216113810.wav, -r, 1/2, -pass, 1, -vcodec, libx264, -b:v, 200k, -bt, 50k, -threads, 0, -an, -f, mp4, -strict, -2, -passlogfile, mydummy, /dev/null]
  10.  
  11. [ffmpeg, -y, -i, me760935400.jpg, -i, 20121216113810.wav, -r, 1/2, -pass, 2, -ar, 44100, -vcodec, libx264, -b:v, 200k, -bt, 50k, -threads, 0, -an, -f, mp4, -strict, -2, -passlogfile, mydummy, dummy.mp4]
  12.  
  13. method=GET path=/blob/dummy.mp4
  14.  
  15. 2012-12-22T19:53:01+00:00 app[web.1]: Starting process [ffmpeg, -y, -i, me760935400.jpg, -i, 20121216113810.wav, -r, 1/2, -pass, 1, -vcodec, libx264, -b:v, 200k, -bt, 50k, -threads, 0, -an, -f, mp4, -strict, -2, -passlogfile, mydummy, /dev/null]
  16.  
  17. 2012-12-22T19:53:01+00:00 app[web.1]: ffmpeg version N-47810-geee8c94 Copyright (c) 2000-2012 the FFmpeg developers
  18. 2012-12-22T19:53:01+00:00 app[web.1]:   built on Dec 13 2012 09:06:31 with gcc 4.7 (Debian 4.7.2-4)
  19. 2012-12-22T19:53:01+00:00 app[web.1]:   configuration: --extra-cflags=-I../static/include --extra-ldflags='-L../static/lib -static' --enable-gpl --enable-version3 --enable-static --disable-shared --disable-debug --enable-runtime-cpudetect --disable-x11grab --enable-libmp3lame --enable-libx264 --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --disable-ffserver
  20. 2012-12-22T19:53:01+00:00 app[web.1]:   libavutil      52. 12.100 / 52. 12.100
  21. 2012-12-22T19:53:01+00:00 app[web.1]:   libavcodec     54. 79.102 / 54. 79.102
  22. 2012-12-22T19:53:01+00:00 app[web.1]:   libavformat    54. 49.101 / 54. 49.101
  23. 2012-12-22T19:53:01+00:00 app[web.1]:   libavdevice    54.  3.102 / 54.  3.102
  24. 2012-12-22T19:53:01+00:00 app[web.1]:   libavfilter     3. 27.101 /  3. 27.101
  25. 2012-12-22T19:53:01+00:00 app[web.1]:   libswscale      2.  1.103 /  2.  1.103
  26. 2012-12-22T19:53:01+00:00 app[web.1]:   libswresample   0. 17.102 /  0. 17.102
  27. 2012-12-22T19:53:01+00:00 app[web.1]:   libpostproc    52.  2.100 / 52.  2.100
  28. 2012-12-22T19:53:01+00:00 app[web.1]: Input #0, image2, from 'me760935400.jpg':
  29. 2012-12-22T19:53:01+00:00 app[web.1]:   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
  30. 2012-12-22T19:53:01+00:00 app[web.1]:     Stream #0:0: Video: mjpeg, yuvj420p, 1296x972 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
  31. 2012-12-22T19:53:01+00:00 app[web.1]: [wav @ 0x255bd60] max_analyze_duration 5000000 reached at 5120000
  32. 2012-12-22T19:53:01+00:00 app[web.1]: Guessed Channel Layout for  Input Stream #1.0 : mono
  33. 2012-12-22T19:53:01+00:00 app[web.1]: Input #1, wav, from '20121216113810.wav':
  34. 2012-12-22T19:53:01+00:00 app[web.1]:   Duration: 00:00:21.27, bitrate: 256 kb/s
  35. 2012-12-22T19:53:01+00:00 app[web.1]:     Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s
  36. 2012-12-22T19:53:01+00:00 app[web.1]: [libx264 @ 0x255a2e0] using SAR=1/1
  37. 2012-12-22T19:53:01+00:00 app[web.1]: [libx264 @ 0x255a2e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
  38. 2012-12-22T19:53:01+00:00 app[web.1]: [libx264 @ 0x255a2e0] profile Main, level 3.2
  39. 2012-12-22T19:53:01+00:00 app[web.1]: [libx264 @ 0x255a2e0] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 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=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  40. 2012-12-22T19:53:01+00:00 app[web.1]: Output #0, mp4, to '/dev/null':
  41. 2012-12-22T19:53:01+00:00 app[web.1]:   Metadata:
  42. 2012-12-22T19:53:01+00:00 app[web.1]:     encoder         : Lavf54.49.101
  43. 2012-12-22T19:53:01+00:00 app[web.1]:     Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1296x972 [SAR 1:1 DAR 4:3], q=-1--1, pass 1, 200 kb/s, 16384 tbn, 0.50 tbc
  44. 2012-12-22T19:53:01+00:00 app[web.1]: Stream mapping:
  45. 2012-12-22T19:53:01+00:00 app[web.1]:   Stream #0:0 -> #0:0 (mjpeg -> libx264)
  46. 2012-12-22T19:53:01+00:00 app[web.1]: Press [q] to stop, [?] for help
  47. 2012-12-22T19:53:02+00:00 app[web.1]: frame=    1 fps=0.0 q=4.0 Lsize=     848kB time=00:00:02.00 bitrate=3472.1kbits/s    
  48. 2012-12-22T19:53:02+00:00 app[web.1]: video:847kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.087747%
  49. 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] frame I:1     Avg QP: 5.49  size:866529
  50. 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] mb I  I16..4:  7.4%  0.0% 92.6%
  51. 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] final ratefactor: 28.98
  52. 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] coded y,uvDC,uvAC intra: 99.8% 99.8% 99.7%
  53. 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] i16 v,h,dc,p: 10%  5% 70% 15%
  54. 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 14% 12%  6%  6%  7% 14%  8% 13%
  55. 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] i8c dc,h,v,p: 45% 19% 22% 14%
  56. 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] kb/s:3466.12
  57. 2012-12-22T19:53:02+00:00 heroku[router]: at=info method=GET path=/ffmpeg?infil1=me760935400.jpg&infil2=20121216113810.wav&outfil=pass1 host=nameless-sands-7303.herokuapp.com fwd=108.192.16.200 dyno=web.1 queue=0 wait=0ms connect=14ms service=1536ms status=200 bytes=19
  58. ==ENDOF response 1
  59.  
  60. 2012-12-22T19:53:38+00:00 app[web.1]: Starting process [ffmpeg, -y, -i, me760935400.jpg, -i, 20121216113810.wav, -r, 1/2, -pass, 2, -ar, 44100, -vcodec, libx264, -b:v, 200k, -bt, 50k, -threads, 0, -an, -f, mp4, -strict, -2, -passlogfile, mydummy, dummy.mp4]
  61.  
  62. 2012-12-22T19:53:38+00:00 app[web.1]: ffmpeg version N-47810-geee8c94 Copyright (c) 2000-2012 the FFmpeg developers
  63. 2012-12-22T19:53:38+00:00 app[web.1]:   built on Dec 13 2012 09:06:31 with gcc 4.7 (Debian 4.7.2-4)
  64. 2012-12-22T19:53:38+00:00 app[web.1]:   configuration: --extra-cflags=-I../static/include --extra-ldflags='-L../static/lib -static' --enable-gpl --enable-version3 --enable-static --disable-shared --disable-debug --enable-runtime-cpudetect --disable-x11grab --enable-libmp3lame --enable-libx264 --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --disable-ffserver
  65. 2012-12-22T19:53:38+00:00 app[web.1]:   libavutil      52. 12.100 / 52. 12.100
  66. 2012-12-22T19:53:38+00:00 app[web.1]:   libavcodec     54. 79.102 / 54. 79.102
  67. 2012-12-22T19:53:38+00:00 app[web.1]:   libavformat    54. 49.101 / 54. 49.101
  68. 2012-12-22T19:53:38+00:00 app[web.1]:   libavdevice    54.  3.102 / 54.  3.102
  69. 2012-12-22T19:53:38+00:00 app[web.1]:   libavfilter     3. 27.101 /  3. 27.101
  70. 2012-12-22T19:53:38+00:00 app[web.1]:   libswscale      2.  1.103 /  2.  1.103
  71. 2012-12-22T19:53:38+00:00 app[web.1]:   libswresample   0. 17.102 /  0. 17.102
  72. 2012-12-22T19:53:38+00:00 app[web.1]:   libpostproc    52.  2.100 / 52.  2.100
  73. 2012-12-22T19:53:38+00:00 app[web.1]: Input #0, image2, from 'me760935400.jpg':
  74. 2012-12-22T19:53:38+00:00 app[web.1]:   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
  75. 2012-12-22T19:53:38+00:00 app[web.1]:     Stream #0:0: Video: mjpeg, yuvj420p, 1296x972 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
  76. 2012-12-22T19:53:38+00:00 app[web.1]: [wav @ 0x3f7dd60] max_analyze_duration 5000000 reached at 5120000
  77. 2012-12-22T19:53:38+00:00 app[web.1]: Guessed Channel Layout for  Input Stream #1.0 : mono
  78. 2012-12-22T19:53:38+00:00 app[web.1]: Input #1, wav, from '20121216113810.wav':
  79. 2012-12-22T19:53:38+00:00 app[web.1]:   Duration: 00:00:21.27, bitrate: 256 kb/s
  80. 2012-12-22T19:53:38+00:00 app[web.1]:     Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s
  81. 2012-12-22T19:53:38+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] using SAR=1/1
  82. 2012-12-22T19:53:38+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
  83. 2012-12-22T19:53:38+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] profile High, level 3.2
  84. 2012-12-22T19:53:38+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=2pass mbtree=1 bitrate=200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.40 aq=1:1.00
  85. 2012-12-22T19:53:38+00:00 app[web.1]: Output #0, mp4, to 'dummy.mp4':
  86. 2012-12-22T19:53:38+00:00 app[web.1]:   Metadata:
  87. 2012-12-22T19:53:38+00:00 app[web.1]:     encoder         : Lavf54.49.101
  88. 2012-12-22T19:53:38+00:00 app[web.1]:     Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1296x972 [SAR 1:1 DAR 4:3], q=-1--1, pass 2, 200 kb/s, 16384 tbn, 0.50 tbc
  89. 2012-12-22T19:53:38+00:00 app[web.1]: Stream mapping:
  90. 2012-12-22T19:53:38+00:00 app[web.1]:   Stream #0:0 -> #0:0 (mjpeg -> libx264)
  91. 2012-12-22T19:53:38+00:00 app[web.1]: Press [q] to stop, [?] for help
  92. 2012-12-22T19:53:39+00:00 app[web.1]: frame=    1 fps=0.0 q=28.0 Lsize=     120kB time=00:00:02.00 bitrate= 490.2kbits/s    
  93. 2012-12-22T19:53:39+00:00 app[web.1]: video:119kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.624841%
  94. 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] frame I:1     Avg QP:29.61  size:121021
  95. 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] mb I  I16..4:  5.3% 41.2% 53.5%
  96. 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] 8x8 transform intra:41.2%
  97. 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] coded y,uvDC,uvAC intra: 80.4% 70.0% 29.1%
  98. 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] i16 v,h,dc,p: 50% 17% 14% 19%
  99. 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 21% 14%  5%  5%  5% 13%  6% 11%
  100. 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 21% 11%  5%  5%  6% 13%  6%  8%
  101. 2012-12-22T19:53:39+00:00 heroku[router]: at=info method=GET path=/ffmpeg?infil1=me760935400.jpg&infil2=20121216113810.wav&outfil=dummy.mp4 host=nameless-sands-7303.herokuapp.com fwd=108.192.16.200 dyno=web.1 queue=0 wait=0ms connect=14ms service=256ms status=200 bytes=19
  102. 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] i8c dc,h,v,p: 51% 20% 22%  7%
  103. 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] kb/s:484.08
  104. ==ENDOF response 2
  105.  
  106. 2012-12-22T19:55:00+00:00 app[web.1]: File dummy.mp4 requested
  107. 2012-12-22T19:55:00+00:00 app[web.1]: File dummy.mp4 successfully downloaded in 0s
  108. 2012-12-22T19:55:00+00:00 heroku[router]: at=info method=GET path=/blob/dummy.mp4 host=nameless-sands-7303.herokuapp.com fwd=108.192.16.200 dyno=web.1 queue=0 wait=0ms connect=14ms service=53ms status=200 bytes=122677
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement