I’m trying to upload video via the api using Fabric, and getting this back from api each time:
E/Twitter: Unexpected response: {"request":"\/1.1\/media\/upload.json","error":"InvalidContent."}
But, other video file able to upload, so my code is maybe not bad.
This is video information of unable to upload.
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.7.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --enable-opencl --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'up.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-05-16 07:10:09
Duration: 00:00:05.47, start: 0.000000, bitrate: 1082 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 422x640, 983 kb/s, SAR 1:1 DAR 211:320, 28.79 fps, 90k tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2016-05-16 07:10:09
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 118 kb/s (default)
Metadata:
creation_time : 2016-05-16 07:10:09
handler_name : SoundHandle
At least one output file must be specified
-rwxr----- 1 tomoya.hirano 1522739515 740294 5 16 16:10 up.mp4