Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- http://ffmpeg.org/download.html - download the ffmpeg binary and run as shown in logs below:
- heroku logs...
- 3 posts below - ffmpeg pass1, ffmpeg pass2, download mp4 created by pass2
- [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]
- [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]
- method=GET path=/blob/dummy.mp4
- 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]
- 2012-12-22T19:53:01+00:00 app[web.1]: ffmpeg version N-47810-geee8c94 Copyright (c) 2000-2012 the FFmpeg developers
- 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)
- 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
- 2012-12-22T19:53:01+00:00 app[web.1]: libavutil 52. 12.100 / 52. 12.100
- 2012-12-22T19:53:01+00:00 app[web.1]: libavcodec 54. 79.102 / 54. 79.102
- 2012-12-22T19:53:01+00:00 app[web.1]: libavformat 54. 49.101 / 54. 49.101
- 2012-12-22T19:53:01+00:00 app[web.1]: libavdevice 54. 3.102 / 54. 3.102
- 2012-12-22T19:53:01+00:00 app[web.1]: libavfilter 3. 27.101 / 3. 27.101
- 2012-12-22T19:53:01+00:00 app[web.1]: libswscale 2. 1.103 / 2. 1.103
- 2012-12-22T19:53:01+00:00 app[web.1]: libswresample 0. 17.102 / 0. 17.102
- 2012-12-22T19:53:01+00:00 app[web.1]: libpostproc 52. 2.100 / 52. 2.100
- 2012-12-22T19:53:01+00:00 app[web.1]: Input #0, image2, from 'me760935400.jpg':
- 2012-12-22T19:53:01+00:00 app[web.1]: Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
- 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
- 2012-12-22T19:53:01+00:00 app[web.1]: [wav @ 0x255bd60] max_analyze_duration 5000000 reached at 5120000
- 2012-12-22T19:53:01+00:00 app[web.1]: Guessed Channel Layout for Input Stream #1.0 : mono
- 2012-12-22T19:53:01+00:00 app[web.1]: Input #1, wav, from '20121216113810.wav':
- 2012-12-22T19:53:01+00:00 app[web.1]: Duration: 00:00:21.27, bitrate: 256 kb/s
- 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
- 2012-12-22T19:53:01+00:00 app[web.1]: [libx264 @ 0x255a2e0] using SAR=1/1
- 2012-12-22T19:53:01+00:00 app[web.1]: [libx264 @ 0x255a2e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
- 2012-12-22T19:53:01+00:00 app[web.1]: [libx264 @ 0x255a2e0] profile Main, level 3.2
- 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
- 2012-12-22T19:53:01+00:00 app[web.1]: Output #0, mp4, to '/dev/null':
- 2012-12-22T19:53:01+00:00 app[web.1]: Metadata:
- 2012-12-22T19:53:01+00:00 app[web.1]: encoder : Lavf54.49.101
- 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
- 2012-12-22T19:53:01+00:00 app[web.1]: Stream mapping:
- 2012-12-22T19:53:01+00:00 app[web.1]: Stream #0:0 -> #0:0 (mjpeg -> libx264)
- 2012-12-22T19:53:01+00:00 app[web.1]: Press [q] to stop, [?] for help
- 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
- 2012-12-22T19:53:02+00:00 app[web.1]: video:847kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.087747%
- 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] frame I:1 Avg QP: 5.49 size:866529
- 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] mb I I16..4: 7.4% 0.0% 92.6%
- 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] final ratefactor: 28.98
- 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] coded y,uvDC,uvAC intra: 99.8% 99.8% 99.7%
- 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] i16 v,h,dc,p: 10% 5% 70% 15%
- 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%
- 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] i8c dc,h,v,p: 45% 19% 22% 14%
- 2012-12-22T19:53:02+00:00 app[web.1]: [libx264 @ 0x255a2e0] kb/s:3466.12
- 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
- ==ENDOF response 1
- 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]
- 2012-12-22T19:53:38+00:00 app[web.1]: ffmpeg version N-47810-geee8c94 Copyright (c) 2000-2012 the FFmpeg developers
- 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)
- 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
- 2012-12-22T19:53:38+00:00 app[web.1]: libavutil 52. 12.100 / 52. 12.100
- 2012-12-22T19:53:38+00:00 app[web.1]: libavcodec 54. 79.102 / 54. 79.102
- 2012-12-22T19:53:38+00:00 app[web.1]: libavformat 54. 49.101 / 54. 49.101
- 2012-12-22T19:53:38+00:00 app[web.1]: libavdevice 54. 3.102 / 54. 3.102
- 2012-12-22T19:53:38+00:00 app[web.1]: libavfilter 3. 27.101 / 3. 27.101
- 2012-12-22T19:53:38+00:00 app[web.1]: libswscale 2. 1.103 / 2. 1.103
- 2012-12-22T19:53:38+00:00 app[web.1]: libswresample 0. 17.102 / 0. 17.102
- 2012-12-22T19:53:38+00:00 app[web.1]: libpostproc 52. 2.100 / 52. 2.100
- 2012-12-22T19:53:38+00:00 app[web.1]: Input #0, image2, from 'me760935400.jpg':
- 2012-12-22T19:53:38+00:00 app[web.1]: Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
- 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
- 2012-12-22T19:53:38+00:00 app[web.1]: [wav @ 0x3f7dd60] max_analyze_duration 5000000 reached at 5120000
- 2012-12-22T19:53:38+00:00 app[web.1]: Guessed Channel Layout for Input Stream #1.0 : mono
- 2012-12-22T19:53:38+00:00 app[web.1]: Input #1, wav, from '20121216113810.wav':
- 2012-12-22T19:53:38+00:00 app[web.1]: Duration: 00:00:21.27, bitrate: 256 kb/s
- 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
- 2012-12-22T19:53:38+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] using SAR=1/1
- 2012-12-22T19:53:38+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
- 2012-12-22T19:53:38+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] profile High, level 3.2
- 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
- 2012-12-22T19:53:38+00:00 app[web.1]: Output #0, mp4, to 'dummy.mp4':
- 2012-12-22T19:53:38+00:00 app[web.1]: Metadata:
- 2012-12-22T19:53:38+00:00 app[web.1]: encoder : Lavf54.49.101
- 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
- 2012-12-22T19:53:38+00:00 app[web.1]: Stream mapping:
- 2012-12-22T19:53:38+00:00 app[web.1]: Stream #0:0 -> #0:0 (mjpeg -> libx264)
- 2012-12-22T19:53:38+00:00 app[web.1]: Press [q] to stop, [?] for help
- 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
- 2012-12-22T19:53:39+00:00 app[web.1]: video:119kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.624841%
- 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] frame I:1 Avg QP:29.61 size:121021
- 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] mb I I16..4: 5.3% 41.2% 53.5%
- 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] 8x8 transform intra:41.2%
- 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] coded y,uvDC,uvAC intra: 80.4% 70.0% 29.1%
- 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] i16 v,h,dc,p: 50% 17% 14% 19%
- 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%
- 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%
- 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
- 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] i8c dc,h,v,p: 51% 20% 22% 7%
- 2012-12-22T19:53:39+00:00 app[web.1]: [libx264 @ 0x3f7c2e0] kb/s:484.08
- ==ENDOF response 2
- 2012-12-22T19:55:00+00:00 app[web.1]: File dummy.mp4 requested
- 2012-12-22T19:55:00+00:00 app[web.1]: File dummy.mp4 successfully downloaded in 0s
- 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