Closed StoryStar closed 8 years ago
Are you trying to process it without logging in, or you managed to log in ?
@mzahlag I'm able to log in successfully. The issue appears during the download of stories, using $snapchat->getFriendStories(true);
@StoryStar how did you manage to login and getting the attestation i believe snapchat has closed this method please share
@StoryStar he kept the auth file, like everyone should have done
@fis60 @mgp25 Yup, kept the auth file.
Can we keep discussion in here focused on the posted issue please? I'm still having issues with incomplete files being downloaded. Maybe it could be related to the version of ffmpeg?
@mgp25 how long does the auth stays for and does it link to your username for example if a user logout but we saved the auth in our server and he tries to login again will it generate a new one or the old one can be pulled from the server?
@StoryStar check if ffmpeg is getting the file correctly, otherwise maybe the command we wrote isnt perfect and cause some error with some medias. Im not very experienced with ffmpeg
Is there anyway to find the auth-</username/>.dat from Rooted Bluestacks with my snapchat account logged in with casper in order to use this account with the API?
@mgp25 I'm not sure what you mean by check if it's getting the file correctly - are the raw files downloaded somewhere first and then processed? How can I check that? I suppose I could comment out the ffmpeg commands, where in the script are they located?
From what I can see, the png overlay and the mp4 are both downloaded to SC-API/src/stories/[mysnapchatusername]/[contentcreatorusername]/ and then ffmpeg is immediately called to perform the overlay with the mp4 and pngs as inputs, where the output overwrites the mp4.
I'm not very experienced with ffmpeg myself, but I have been writing a script to concatenate all the videos downloaded from SC-API (including building mp4s from jpgs, and previously overlaying pngs on mp4s) - this was the command I was using for the overlay previously, with success:
ffmpeg -i "orig/$MP4NAME" -i "orig/$PNGNAME" -filter_complex \
"[1:v]scale=$VID_WIDTH:$VID_HEIGHT[wat];[0:v][wat]overlay=0:main_h-overlay_h-10[outv]" \
-map "[outv]" -map 0:a "$MP4NAME"
$VID_WIDTH and $VIDHEIGHT were taken from the output of: `eval $(ffprobe -v error -of flat=s= -select_streams v:0 -show_entries stream=height,width "$MP4NAME")`
@StoryStar feel free to send a pull request
@mgp25 I'll look into it and see what I can do, at least check what command you're using right now and if a different one will work better.
In the meantime, can anyone confirm? I'm seeing broken/partial files (usually <1sec, frequently its a static image with sound but not always), stretched text/image overlays, files without file extensions...
Yes, I also frequently get video files exactly as you describe.
@mgfigueroa thanks for confirming
@mgp25 It looks like you were already using just about the same command:
ffprobe -v error -select_streams v:0 -show_entries stream=width,height \-of default=nokey=1:noprint_wrappers=1 $files[0]
ffmpeg -y -i $files[1] -vf scale=$videoSize[0]:$videoSize[1] $files[1]
ffmpeg -y -i $files[0] -i $files[1] -strict -2 -filter_complex overlay -c:a copy -flags global_header $files[0]
I've changed one line, the command with filter complex. Here are the changes, unfortunately it looks like my auth has expired or something as I'm not able to log back in to snapchat now. Maybe someone else can test it?
snapchat.php, line 2587:
shell_exec("ffmpeg -i $files[0] -i $files[1] -filter_complex '[1:v]scale=$videoSize[0]:$videoSize[1][wat];[0:v][wat]overlay=0:main_h-overlay_h-10[outv]' -map '[outv]' -map 0:a $files[1]");
I dont have a pc right now, but you can test it by using a sample video and png filter.
On 2/12/2015, at 20:21, StoryStar notifications@github.com wrote:
@mgfigueroa thanks for confirming
@mgp25 It looks like you were already using just about the same command:
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of default=nokey=1:noprint_wrappers=1 $files[0]
ffmpeg -y -i $files[1] -vf scale=$videoSize[0]:$videoSize[1] $files[1] ffmpeg -y -i $files[0] -i $files[1] -strict -2 -filter_complex overlay -c:a copy -flags global_header $files[0] I've changed one line, the command with filter complex. Here are the changes, unfortunately it looks like my auth has expired or something as I'm not able to log back in to snapchat now. Maybe someone else can test it? snapchat.php, line 2587: shell_exec("ffmpeg -i $files[0] -i $files[1] -filter_complex '[1:v]scale=$videoSize[0]:$videoSize[1][wat];[0:v][wat]overlay=0:main_h-overlay_h-10[outv]' -map '[outv]' -map 0:a $files[1]");
— Reply to this email directly or view it on GitHub.
Yes, I had files as described by you.
On 2/12/2015, at 19:35, StoryStar notifications@github.com wrote:
@mgp25 I'll look into it and see what I can do, at least check what command you're using right now and if a different one will work better.
In the meantime, can anyone confirm? I'm seeing broken/partial files (usually <1sec, frequently its a static image with sound but not always), stretched text/image overlays, files without file extensions...
— Reply to this email directly or view it on GitHub.
@LanchaBasualdo I've tested that command previously, when the api downloaded pngs and mp4s separately - it worked for me. I'd like to test it in snaptchat.php itself, but I'm still unable to login. Thanks for confirming the bad files
I was able to log in and test my command, it doesn't seem to be working :(
I'm downloading stories though, and after reviewing snapchat.php it looks like there is a different function for downloading snaps with png overlays - around line 1777. The command that performs the overlay looks like it has a different output - could it be as simple as that the overlay command in the story function overwrites the existing file output (one of the inputs), while the one in the story function doesn't overwrite? I believe ffmpeg is not able to overwrite one of it's inputs...
Here are the two commands:
shell_exec("ffmpeg -loglevel panic -y -i $files[0] -i $files[1] -strict -2 -filter_complex overlay -c:a copy -flags global_header $out");
shell_exec("ffmpeg -y -i $files[0] -i $files[1] -strict -2 -filter_complex overlay -c:a copy -flags global_header $files[0]");
Notice the output.
@mgp25 Was the command for downloading snaps fixed, but the command for downloading stories not fixed?
Alright, I think that was it! I changed some lines in snapchat.php and it seems to be working properly now. So far just tested on a couple videos, I'll confirm more later.
Here are my changes: line 2581
if ($returnvalue === 0)
{
//MYCHANGES
// Ffmpeg can´t export over the same input file path, thus we create an output path, then we rename it
$path_parts = pathinfo($files[0]);
$original= $path_parts['filename'].'.' . $path_parts['extension'];
$original=$path_parts['dirname']."/".$original;
$name=$path_parts['filename'] . "-" . '.' . $path_parts['extension'];
$out= $path_parts['dirname']."/".$name;
//ENDMYCHANGES
$videoSize = shell_exec("ffprobe -v error -select_streams v:0 -show_entries stream=width,height \-of default=nokey=1:noprint_wrappers=1 $files[0]");
$videoSize = array_filter(explode("\n", $videoSize));
shell_exec("ffmpeg -y -i $files[1] -vf scale=$videoSize[0]:$videoSize[1] $files[1]");
//MYCHANGES -- changed $files[0] to $out
shell_exec("ffmpeg -y -i $files[0] -i $files[1] -strict -2 -filter_complex overlay -c:a copy -flags global_header $out");
//ENDMYCHANGES
unlink($files[1]);
//MYCHANGES
rename($out,$original);
//ENDMYCHANGES
}
to line 2605
Changes have fixed the issue with overlaying pngs on mp4s.
However, there's another issue still, I think it's related to the order of the files in the $files array - I believe it assumes the first file ( $file[0] ) is the mp4, but that's not always the case, so sometimes it fails. Here's an example of the error that ffmpeg gives, along with some other output.
ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, png_pipe, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.png':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 640x1136 [SAR 5669:5669 DAR 40:71], 25 tbr, 25 tbn, 25 tbc
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Duration: 00:00:01.15, start: 0.036281, bitrate: 280 kb/s
Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 640x1136, 1615 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 129 kb/s (default)
Metadata:
handler_name : SoundHandler
[swscaler @ 0x7f87ab04ea00] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072-.png':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: png, rgba, 640x1136 [SAR 1:1 DAR 40:71], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:
encoder : Lavc56.60.100 png
Stream mapping:
Stream #0:0 (png) -> overlay:main
Stream #1:0 (h264) -> overlay:overlay
overlay -> Stream #0:0 (png)
Press [q] to stop, [?] for help
[image2 @ 0x7f87aa809800] Could not get frame filename number 2 from pattern '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072-.png' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
frame= 3 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.08 bitrate=N/A dup=0 drop=1
video:246kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
Notice that it's trying to output to a png, which is obviously wrong. There's also another error, though I'm not sure of the cause of that one - potentially partial/corrupt files. Heres the output
ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: mp41mp42isom
creation_time : 2015-12-13 06:33:40
Duration: 00:00:09.94, start: 0.000000, bitrate: 1113 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 65 kb/s (default)
Metadata:
creation_time : 2015-12-13 06:33:40
handler_name : Core Media Audio
Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 320x568, 1040 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)
Metadata:
creation_time : 2015-12-13 06:33:40
handler_name : Core Media Video
[swscaler @ 0x7f9ef1829200] deprecated pixel format used, make sure you did set range correctly
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x7f9ef1000c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7f9ef1000c00] profile High, level 3.1
[libx264 @ 0x7f9ef1000c00] 264 - core 148 r2601 a0cd7d3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=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.40 aq=1:1.00
Output #0, mp4, to '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: mp41mp42isom
encoder : Lavf56.40.101
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 640x1136, q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc (default)
Metadata:
creation_time : 2015-12-13 06:33:40
handler_name : Core Media Video
encoder : Lavc56.60.100 libx264
Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 128 kb/s (default)
Metadata:
creation_time : 2015-12-13 06:33:40
handler_name : Core Media Audio
encoder : Lavc56.60.100 libvo_aacenc
Stream mapping:
Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:0 -> #0:1 (aac (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
[h264 @ 0x7f9ef0855400] AVC: nal size 5869
Last message repeated 1 times
[h264 @ 0x7f9ef0855400] no frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9ef1000000] stream 1, offset 0x8488: partial file
/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4: Invalid data found when processing input
Error while decoding stream #0:0: Invalid argument
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9ef1000000] stream 0, offset 0x2249: partial file
/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4: Invalid data found when processing input
Error while decoding stream #0:1: Invalid data found when processing input
frame= 3 fps=0.0 q=-1.0 Lsize= 39kB time=00:00:01.12 bitrate= 287.1kbits/s
video:20kB audio:18kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.057956%
[libx264 @ 0x7f9ef1000c00] frame I:1 Avg QP:20.14 size: 8146
[libx264 @ 0x7f9ef1000c00] frame P:2 Avg QP:21.62 size: 5689
[libx264 @ 0x7f9ef1000c00] mb I I16..4: 46.7% 52.4% 1.0%
[libx264 @ 0x7f9ef1000c00] mb P I16..4: 18.8% 29.3% 0.2% P16..4: 17.4% 1.4% 0.4% 0.0% 0.0% skip:32.5%
[libx264 @ 0x7f9ef1000c00] 8x8 transform intra:56.5% inter:93.6%
[libx264 @ 0x7f9ef1000c00] coded y,uvDC,uvAC intra: 13.4% 39.0% 7.6% inter: 4.8% 23.1% 1.2%
[libx264 @ 0x7f9ef1000c00] i16 v,h,dc,p: 37% 31% 9% 22%
[libx264 @ 0x7f9ef1000c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45% 17% 24% 2% 4% 3% 2% 2% 1%
[libx264 @ 0x7f9ef1000c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 32% 22% 3% 7% 4% 5% 3% 2%
[libx264 @ 0x7f9ef1000c00] i8c dc,h,v,p: 54% 21% 18% 7%
[libx264 @ 0x7f9ef1000c00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7f9ef1000c00] ref P L0: 89.5% 7.4% 3.0%
[libx264 @ 0x7f9ef1000c00] kb/s:1560.36
If that is the case you must order the array, its simple
On 13/12/2015, at 19:36, StoryStar notifications@github.com wrote:
Changes have fixed the issue with overlaying pngs on mp4s.
However, there's another issue still, I think it's related to the order of the files in the $files array - I believe it assumes the first file ( $file[0] ) is the mp4, but that's not always the case, so sometimes it fails. Here's an example of the error that ffmpeg gives, along with some other output.
ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Input #0, png_pipe, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.png': Duration: N/A, bitrate: N/A Stream #0:0: Video: png, rgba(pc), 640x1136 [SAR 5669:5669 DAR 40:71], 25 tbr, 25 tbn, 25 tbc Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.40.101 Duration: 00:00:01.15, start: 0.036281, bitrate: 280 kb/s Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 640x1136, 1615 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 129 kb/s (default) Metadata: handler_name : SoundHandler [swscaler @ 0x7f87ab04ea00] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072-.png': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: png, rgba, 640x1136 [SAR 1:1 DAR 40:71], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default) Metadata: encoder : Lavc56.60.100 png Stream mapping: Stream #0:0 (png) -> overlay:main Stream #1:0 (h264) -> overlay:overlay overlay -> Stream #0:0 (png) Press [q] to stop, [?] for help [image2 @ 0x7f87aa809800] Could not get frame filename number 2 from pattern '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072-.png' (either set updatefirst or use a pattern like %03d within the filename pattern) av_interleaved_write_frame(): Invalid argument frame= 3 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.08 bitrate=N/A dup=0 drop=1
video:246kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Conversion failed! Notice that it's trying to output to a png, which is obviously wrong. There's also another error, though I'm not sure of the cause of that one - potentially partial/corrupt files. Heres the outputffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4': Metadata: major_brand : mp42 minor_version : 1 compatible_brands: mp41mp42isom creation_time : 2015-12-13 06:33:40 Duration: 00:00:09.94, start: 0.000000, bitrate: 1113 kb/s Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 65 kb/s (default) Metadata: creation_time : 2015-12-13 06:33:40 handler_name : Core Media Audio Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 320x568, 1040 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc (default) Metadata: creation_time : 2015-12-13 06:33:40 handler_name : Core Media Video [swscaler @ 0x7f9ef1829200] deprecated pixel format used, make sure you did set range correctly No pixel format specified, yuvj420p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x7f9ef1000c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x7f9ef1000c00] profile High, level 3.1 [libx264 @ 0x7f9ef1000c00] 264 - core 148 r2601 a0cd7d3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=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.40 aq=1:1.00 Output #0, mp4, to '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4': Metadata: major_brand : mp42 minor_version : 1 compatible_brands: mp41mp42isom encoder : Lavf56.40.101 Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 640x1136, q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc (default) Metadata: creation_time : 2015-12-13 06:33:40 handler_name : Core Media Video encoder : Lavc56.60.100 libx264 Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 128 kb/s (default) Metadata: creation_time : 2015-12-13 06:33:40 handler_name : Core Media Audio encoder : Lavc56.60.100 libvo_aacenc Stream mapping: Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:0 -> #0:1 (aac (native) -> aac (libvo_aacenc)) Press [q] to stop, [?] for help [h264 @ 0x7f9ef0855400] AVC: nal size 5869 Last message repeated 1 times [h264 @ 0x7f9ef0855400] no frame! [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9ef1000000] stream 1, offset 0x8488: partial file /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4: Invalid data found when processing input Error while decoding stream #0:0: Invalid argument [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9ef1000000] stream 0, offset 0x2249: partial file /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/nastygal/2015-12-13-06-33-42-story-5997297463427072.mp4: Invalid data found when processing input Error while decoding stream #0:1: Invalid data found when processing input frame= 3 fps=0.0 q=-1.0 Lsize= 39kB time=00:00:01.12 bitrate= 287.1kbits/s
video:20kB audio:18kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.057956% [libx264 @ 0x7f9ef1000c00] frame I:1 Avg QP:20.14 size: 8146 [libx264 @ 0x7f9ef1000c00] frame P:2 Avg QP:21.62 size: 5689 [libx264 @ 0x7f9ef1000c00] mb I I16..4: 46.7% 52.4% 1.0% [libx264 @ 0x7f9ef1000c00] mb P I16..4: 18.8% 29.3% 0.2% P16..4: 17.4% 1.4% 0.4% 0.0% 0.0% skip:32.5% [libx264 @ 0x7f9ef1000c00] 8x8 transform intra:56.5% inter:93.6% [libx264 @ 0x7f9ef1000c00] coded y,uvDC,uvAC intra: 13.4% 39.0% 7.6% inter: 4.8% 23.1% 1.2% [libx264 @ 0x7f9ef1000c00] i16 v,h,dc,p: 37% 31% 9% 22% [libx264 @ 0x7f9ef1000c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45% 17% 24% 2% 4% 3% 2% 2% 1% [libx264 @ 0x7f9ef1000c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 32% 22% 3% 7% 4% 5% 3% 2% [libx264 @ 0x7f9ef1000c00] i8c dc,h,v,p: 54% 21% 18% 7% [libx264 @ 0x7f9ef1000c00] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x7f9ef1000c00] ref P L0: 89.5% 7.4% 3.0% [libx264 @ 0x7f9ef1000c00] kb/s:1560.36 — Reply to this email directly or view it on GitHub.
@LanchaBasualdo Yup that fixed it :)
Can anyone shed light on the other error above? Additionally have a few other errors:
Unsure about this one, maybe there is no second file?
Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2604
PHP Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2604
Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2604
ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
-vf: No such file or directory
PHP Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2606
Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2606
ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Unrecognized option '2'.
Error splitting the argument list: Option not found
PHP Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2608
Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2608
PHP Warning: unlink(): No such file or directory in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2608
Warning: unlink(): No such file or directory in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2608
PHP Warning: rename(/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/rachelteetyler/2015-12-14-02-59-42-story-4868086223831040-.mp4,/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/rachelteetyler/2015-12-14-02-59-42-story-4868086223831040.mp4): No such file or directory in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2611
Warning: rename(/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/rachelteetyler/2015-12-14-02-59-42-story-4868086223831040-.mp4,/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/rachelteetyler/2015-12-14-02-59-42-story-4868086223831040.mp4): No such file or directory in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2611
This one might be related to this ffmpeg issue ( https://trac.ffmpeg.org/ticket/4822 ) - I'm running on OSX also
ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[png @ 0x7feb44808600] inflate returned error -3
Input #0, png_pipe, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872.png':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1532x2560, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872.png':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: png, rgba, 600x360, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc56.60.100 png
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> png (native))
Press [q] to stop, [?] for help
[png @ 0x7feb44260c00] inflate returned error -3
Error while decoding stream #0:0: Generic error in an external library
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Conversion failed!
ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.25.101
Duration: 00:00:08.58, start: 0.042667, bitrate: 1181 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 600x360, 1049 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
rotate : 90
handler_name : VideoHandler
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 139 kb/s (default)
Metadata:
handler_name : SoundHandler
[png @ 0x7fc553002c00] inflate returned error -3
Input #1, png_pipe, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872.png':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: png, rgba(pc), 1532x2560, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0x7fc552812600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7fc552812600] profile High, level 3.0
[libx264 @ 0x7fc552812600] 264 - core 148 r2601 a0cd7d3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=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.40 aq=1:1.00
Output #0, mp4, to '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872-.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x600, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
encoder : Lavc56.60.100 libx264
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 139 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 (h264) -> overlay:main
Stream #1:0 (png) -> overlay:overlay
overlay -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[png @ 0x7fc553038000] inflate returned error -3
Error while decoding stream #1:0: Generic error in an external library
frame= 90 fps=0.0 q=29.0 size= 179kB time=00:00:03.13 bitrate= 467.4kbits/frame= 151 fps=148 q=29.0 size= 419kB time=00:00:05.18 bitrate= 661.5kbits/frame= 210 fps=138 q=29.0 size= 656kB time=00:00:07.14 bitrate= 752.2kbits/frame= 254 fps=112 q=-1.0 Lsize= 1093kB time=00:00:08.57 bitrate=1044.5kbits/s dup=1 drop=0
video:937kB audio:146kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.958468%
[libx264 @ 0x7fc552812600] frame I:2 Avg QP:22.32 size: 20196
[libx264 @ 0x7fc552812600] frame P:102 Avg QP:24.17 size: 6960
[libx264 @ 0x7fc552812600] frame B:150 Avg QP:28.24 size: 1389
[libx264 @ 0x7fc552812600] consecutive B-frames: 1.2% 40.9% 57.9% 0.0%
[libx264 @ 0x7fc552812600] mb I I16..4: 10.3% 58.6% 31.1%
[libx264 @ 0x7fc552812600] mb P I16..4: 0.9% 3.2% 0.6% P16..4: 33.1% 25.1% 14.9% 0.0% 0.0% skip:22.1%
[libx264 @ 0x7fc552812600] mb B I16..4: 0.0% 0.0% 0.1% B16..8: 34.8% 10.5% 2.6% direct: 1.8% skip:50.2% L0:43.0% L1:52.0% BI: 5.0%
[libx264 @ 0x7fc552812600] 8x8 transform intra:64.2% inter:42.5%
[libx264 @ 0x7fc552812600] coded y,uvDC,uvAC intra: 36.0% 42.1% 6.0% inter: 14.2% 6.7% 0.0%
[libx264 @ 0x7fc552812600] i16 v,h,dc,p: 38% 23% 14% 25%
[libx264 @ 0x7fc552812600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 13% 56% 3% 2% 2% 3% 3% 3%
[libx264 @ 0x7fc552812600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 19% 20% 8% 6% 4% 9% 7% 8%
[libx264 @ 0x7fc552812600] i8c dc,h,v,p: 61% 23% 12% 4%
[libx264 @ 0x7fc552812600] Weighted P-Frames: Y:12.7% UV:0.0%
[libx264 @ 0x7fc552812600] ref P L0: 61.1% 18.3% 15.2% 5.1% 0.4%
[libx264 @ 0x7fc552812600] ref B L0: 86.0% 12.6% 1.4%
[libx264 @ 0x7fc552812600] ref B L1: 93.2% 6.8%
[libx264 @ 0x7fc552812600] kb/s:905.79
I think that it means there is no file in the 2 (offset 1) object on the array that why the unlink can not delete anything as there ir no actual file. Print array to see what is it made of.
On 14/12/2015, at 17:56, StoryStar notifications@github.com wrote:
@LanchaBasualdo Yup that fixed it :)
Can anyone shed light on the other error above? Additionally have a few other errors:
Unsure about this one, maybe there is no second file?
Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2604 PHP Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2604
Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2604 ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 -vf: No such file or directory PHP Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2606
Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2606 ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Unrecognized option '2'. Error splitting the argument list: Option not found PHP Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2608
Notice: Undefined offset: 1 in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2608 PHP Warning: unlink(): No such file or directory in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2608
Warning: unlink(): No such file or directory in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2608 PHP Warning: rename(/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/rachelteetyler/2015-12-14-02-59-42-story-4868086223831040-.mp4,/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/rachelteetyler/2015-12-14-02-59-42-story-4868086223831040.mp4): No such file or directory in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2611
Warning: rename(/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/rachelteetyler/2015-12-14-02-59-42-story-4868086223831040-.mp4,/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/rachelteetyler/2015-12-14-02-59-42-story-4868086223831040.mp4): No such file or directory in /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/snapchat.php on line 2611 This one might be related to this ffmpeg issue ( https://trac.ffmpeg.org/ticket/4822 ) - I'm running on OSX also
ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [png @ 0x7feb44808600] inflate returned error -3 Input #0, png_pipe, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872.png': Duration: N/A, bitrate: N/A Stream #0:0: Video: png, rgba(pc), 1532x2560, 25 tbr, 25 tbn, 25 tbc Output #0, image2, to '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872.png': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: png, rgba, 600x360, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc56.60.100 png Stream mapping: Stream #0:0 -> #0:0 (png (native) -> png (native)) Press [q] to stop, [?] for help [png @ 0x7feb44260c00] inflate returned error -3 Error while decoding stream #0:0: Generic error in an external library frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Conversion failed! ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.25.101 Duration: 00:00:08.58, start: 0.042667, bitrate: 1181 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 600x360, 1049 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) Metadata: rotate : 90 handler_name : VideoHandler Side data: displaymatrix: rotation of -90.00 degrees Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 139 kb/s (default) Metadata: handler_name : SoundHandler [png @ 0x7fc553002c00] inflate returned error -3 Input #1, png_pipe, from '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872.png': Duration: N/A, bitrate: N/A Stream #1:0: Video: png, rgba(pc), 1532x2560, 25 tbr, 25 tbn, 25 tbc [libx264 @ 0x7fc552812600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x7fc552812600] profile High, level 3.0 [libx264 @ 0x7fc552812600] 264 - core 148 r2601 a0cd7d3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=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.40 aq=1:1.00 Output #0, mp4, to '/Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/hongkong1515/2015-12-14-09-22-44-story-6100129922383872-.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.40.101 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x600, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default) Metadata: encoder : Lavc56.60.100 libx264 Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 139 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 (h264) -> overlay:main Stream #1:0 (png) -> overlay:overlay overlay -> Stream #0:0 (libx264) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [png @ 0x7fc553038000] inflate returned error -3 Error while decoding stream #1:0: Generic error in an external library frame= 90 fps=0.0 q=29.0 size= 179kB time=00:00:03.13 bitrate= 467.4kbits/frame= 151 fps=148 q=29.0 size= 419kB time=00:00:05.18 bitrate= 661.5kbits/frame= 210 fps=138 q=29.0 size= 656kB time=00:00:07.14 bitrate= 752.2kbits/frame= 254 fps=112 q=-1.0 Lsize= 1093kB time=00:00:08.57 bitrate=1044.5kbits/s dup=1 drop=0
video:937kB audio:146kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.958468% [libx264 @ 0x7fc552812600] frame I:2 Avg QP:22.32 size: 20196 [libx264 @ 0x7fc552812600] frame P:102 Avg QP:24.17 size: 6960 [libx264 @ 0x7fc552812600] frame B:150 Avg QP:28.24 size: 1389 [libx264 @ 0x7fc552812600] consecutive B-frames: 1.2% 40.9% 57.9% 0.0% [libx264 @ 0x7fc552812600] mb I I16..4: 10.3% 58.6% 31.1% [libx264 @ 0x7fc552812600] mb P I16..4: 0.9% 3.2% 0.6% P16..4: 33.1% 25.1% 14.9% 0.0% 0.0% skip:22.1% [libx264 @ 0x7fc552812600] mb B I16..4: 0.0% 0.0% 0.1% B16..8: 34.8% 10.5% 2.6% direct: 1.8% skip:50.2% L0:43.0% L1:52.0% BI: 5.0% [libx264 @ 0x7fc552812600] 8x8 transform intra:64.2% inter:42.5% [libx264 @ 0x7fc552812600] coded y,uvDC,uvAC intra: 36.0% 42.1% 6.0% inter: 14.2% 6.7% 0.0% [libx264 @ 0x7fc552812600] i16 v,h,dc,p: 38% 23% 14% 25% [libx264 @ 0x7fc552812600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 13% 56% 3% 2% 2% 3% 3% 3% [libx264 @ 0x7fc552812600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 19% 20% 8% 6% 4% 9% 7% 8% [libx264 @ 0x7fc552812600] i8c dc,h,v,p: 61% 23% 12% 4% [libx264 @ 0x7fc552812600] Weighted P-Frames: Y:12.7% UV:0.0% [libx264 @ 0x7fc552812600] ref P L0: 61.1% 18.3% 15.2% 5.1% 0.4% [libx264 @ 0x7fc552812600] ref B L0: 86.0% 12.6% 1.4% [libx264 @ 0x7fc552812600] ref B L1: 93.2% 6.8% [libx264 @ 0x7fc552812600] kb/s:905.79 — Reply to this email directly or view it on GitHub.
@LanchaBasualdo That's exactly what I thought as well. I'm running the api again hopefully I'll be able to reproduce with the print statements in, it's just strange since it checks explicitly if $result is an array (snapchat.php line 2566) before doing any of this.
I guess $result is an array containing only one object, we will see. If that's the case we could just check if there are multiple items in the array - but I'm not sure why snapchat would be sending a single item in a array, maybe someone else more experienced has an idea why.
Confirmed only one item in array
Are you shure that the video has text??
On 14/12/2015, at 20:24, StoryStar notifications@github.com wrote:
Confirmed only one item in array
— Reply to this email directly or view it on GitHub.
@LanchaBasualdo Not at all, though SC-API seems to think there should be. I have no real way of knowing actually -- apart from maybe checking in the official snapchat client, though if it's an issue on snapchat's side then I'm not sure we can find out at all. If someone wants to look into it, it's a snap from rachelteetyler's story today (can't check myself at the moment)
I believe the mp4 is still downloaded normally so it should be in there, just without any overlay that is maybe supposed to be on top.
You do... Send a video snap with text! And previously write the code to check if the array has more than 1 file. If it doesn't overpass the merging process.
On 14/12/2015, at 22:21, StoryStar notifications@github.com wrote:
@LanchaBasualdo Not at all, though SC-API seems to think there should be. I have no real way of knowing actually -- apart from maybe checking in the official snapchat client, though if it's an issue on snapchat's side then I'm not sure we can find out at all. If someone wants to look into it, it's a snap from rachelteetyler's story today (can't check myself at the moment)
I believe the mp4 is still downloaded normally so it should be in there, just without any overlay that is maybe supposed to be on top.
— Reply to this email directly or view it on GitHub.
@LanchaBasualdo haha sure I could send one, but I already know it works for the vast majority of snaps - I'm just not sure what causes there to be only one file in the array, or how to force that to reproduce.
I'll definitely be adding a check to make sure the files array has two items though, and skip the merging if that's not the case
And can it be that that specific video has no layer to merg?
On 14/12/2015, at 23:44, StoryStar notifications@github.com wrote:
@LanchaBasualdo haha sure I could send one, but I already know it works for the vast majority of snaps - I'm just not sure what causes there to be only one file in the array, or how to force that to reproduce.
I'll definitely be adding a check to make sure the files array has two items though, and skip the merging if that's not the case
— Reply to this email directly or view it on GitHub.
@LanchaBasualdo It could be - but usually snaps without a layer to merge don't come in an array like this - usually only those with a png to overlay come in an array like this
I understand, did you say that you have printed the array and that the array contained exactly only 1 file?
On 15/12/2015, at 0:33, StoryStar notifications@github.com wrote:
@LanchaBasualdo It could be - but usually snaps without a layer to merge don't come in an array like this - usually only those with a png to overlay come in an array like this
— Reply to this email directly or view it on GitHub.
Yup, just an mp4
There seems to be an issue with FFMPEG and videos that zoom at some point - they end up producing incomplete files, usually <1 second long.
Here's an example file: https://drive.google.com/file/d/0BzcUsIzmvuTfamJiSnI5VHF4SU0/view?usp=sharing
Here's the complete log https://gist.github.com/StoryStar/c9f8d9f621f2adef753b for this file, and here are the relevent lines
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f922180da00] stream 1, offset 0x875e: partial file /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/jusreign/2015-11-29-23-41-32-story-5078327813701632.mp4: Invalid data found when processing input [h264 @ 0x7f92228b1800] AVC: nal size 2969 Last message repeated 1 times [h264 @ 0x7f92228b1800] no frame! /Users/matt/Documents/JACKTHEAUTORIPPER/api/SC-API/src/stories/storystarcc/jusreign/2015-11-29-23-41-32-story-5078327813701632.mp4: Invalid data found when processing input Last message repeated 1 times Error while decoding stream #0:1: Invalid data found when processing input frame= 2 fps=0.0 q=-1.0 Lsize= 18kB time=00:00:01.06 bitrate= 138.2kbits/s video:12kB audio:5kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.942801%
After reviewing this snap and others it appears to happen in any video that contains zoom
EDIT: not sure this is zoom related actually, or at least not all videos containing zoom have this issue