agermanidis / SnapchatBot

[deprecated] Python library for building bots that live on Snapchat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error sending the welcome image

N07070 opened this issue · comments

2015-02-23 12:46:05,912] [FbStoryBot-f149] User ... added me
[2015-02-23 12:46:05,912] [FbStoryBot-f149] ... has added me !
ffmpeg version 0.8.16-6:0.8.16-1, Copyright (c) 2000-2014 the Libav developers
  built on Sep 17 2014 13:32:57 with gcc 4.7.2
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
Input #0, image2, from 'resources/auto_welcome.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: png, bgra, 290x600, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'bgra' for codec 'libx264', auto-selecting format 'yuv420p'
[buffer @ 0x90f9640] w:290 h:600 pixfmt:bgra
[avsink @ 0x90f9800] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x9100300] w:290 h:600 fmt:bgra -> w:290 h:600 fmt:yuv420p flags:0x4
[libx264 @ 0x90f8a60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 0x90f8a60] profile Main, level 2.1
[libx264 @ 0x90f8a60] 264 - core 123 r2189 35cf912 - 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=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 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.25 aq=1:1.00
Output #0, mp4, to '/tmp/tmpZNe5Xg.snap.mp4':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0: Video: libx264, yuv420p, 290x600, q=-1--1, 25 tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
frame=    1 fps=  0 q=28.0 Lsize=      10kB time=10000000000.00 bitrate=   0.0kbits/s    
video:9kB audio:0kB global headers:0kB muxing overhead 8.308453%
frame I:1     Avg QP:26.82  size:  9006
[libx264 @ 0x90f8a60] mb I  I16..4: 73.4%  0.0% 26.6%
[libx264 @ 0x90f8a60] coded y,uvDC,uvAC intra: 18.3% 28.0% 27.3%
[libx264 @ 0x90f8a60] i16 v,h,dc,p: 90%  5%  4%  0%
[libx264 @ 0x90f8a60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 24% 22%  2%  3%  4%  4%  5%  4%
[libx264 @ 0x90f8a60] i8c dc,h,v,p: 77% 15%  5%  3%
[libx264 @ 0x90f8a60] kb/s:1801.20
[2015-02-23 12:46:05,981] [FbStoryBot-f149] Preparing to send snap 2eef8d6b20424370ae7bbe6af186b4bf
[2015-02-23 12:46:05,981] [FbStoryBot-f149] Uploading snap 2eef8d6b20424370ae7bbe6af186b4bf
[2015-02-23 12:46:05,982] Starting new HTTPS connection (1): feelinsonice-hrd.appspot.com
[2015-02-23 12:46:06,210] "POST /bq/upload HTTP/1.1" 200 0
[2015-02-23 12:46:06,212] [FbStoryBot-f149] Sending snap 2eef8d6b20424370ae7bbe6af186b4bf to ...
[2015-02-23 12:46:06,213] Starting new HTTPS connection (1): feelinsonice-hrd.appspot.com
[2015-02-23 12:46:06,895] "POST /bq/send HTTP/1.1" 200 0

But it seems that the user never gets the snap. Also, the image is maybe not supposed to pass through ffmpeg ?