Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#4822 closed defect (worksforme)

[png @ 0x15e183e00] inflate returned error -3

Reported by: wangniancai Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: when I try to add watermark with png , I find this error on ios ,but the same libs work fine on android. ffmpeg 2.7
How to reproduce:

command    ffmpeg i input -vf "movie=%@ [wm];[in][wm]overlay=0:0[out]"
ffmpeg version 2.7
built on ... 
I find the fix for Ticket2903 in my source code pngdec.c 

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (1)

aiaiLogo.png (8.4 KB ) - added by wangniancai 9 years ago.

Download all attachments as: .zip

Change History (17)

comment:1 by wangniancai, 9 years ago

the similiar Ticket2903

comment:2 by Carl Eugen Hoyos, 9 years ago

Please test current FFmpeg git head and provide your actual command line together with the complete, uncut console output to make this a valid ticket. A png file that allows to reproduce the issue will also be necessary.

comment:3 by wangniancai, 9 years ago

sorry ,

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///private/var/mobile/Containers/Data/Application/009E0A36-8809-4CCD-873A-C6DCFD9A799A/tmp/VideoFolder/20150902231629merge.mp4':

Metadata:

major_brand : mp42
minor_version : 1
compatible_brands: mp41mp42isom
creation_time : 2015-09-02 15:16:29

Duration: 00:00:02.73, start: 0.000000, bitrate: 807 kb/s

Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 62 kb/s (default)
Metadata:

creation_time : 2015-09-02 15:16:29
handler_name : Core Media Audio

Stream #0:1(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 480x480, 736 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
Metadata:

creation_time : 2015-09-02 15:16:29
handler_name : Core Media Video

[png @ 0x15e182c00] inflate returned error -3
[libx264 @ 0x15d956e00] using cpu capabilities: none!
[libx264 @ 0x15d956e00] profile High, level 3.0
[libx264 @ 0x15d956e00] 264 - core 146 r2538 121396c - 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=3 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 '/private/var/mobile/Containers/Data/Application/009E0A36-8809-4CCD-873A-C6DCFD9A799A/tmp/blendImageVedio.mp4':

Metadata:

major_brand : mp42
minor_version : 1
compatible_brands: mp41mp42isom
encoder : Lavf56.36.100
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 480x480, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:

creation_time : 2015-09-02 15:16:29
handler_name : Core Media Video
encoder : Lavc56.26.100 libx264

Stream #0:1(und): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 128 kb/s (default)
Metadata:

creation_time : 2015-09-02 15:16:29
handler_name : Core Media Audio
encoder : Lavc56.26.100 libfaac

Stream mapping:

Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:0 -> #0:1 (aac (native) -> aac (libfaac))

Press [q] to stop, ? for help
[png @ 0x15e183e00] inflate returned error -3
frame= 12 fps=0.0 q=0.0 size= 0kB time=00:00:02.20 bitrate= 0.2kbits/s
frame= 40 fps= 39 q=0.0 size= 0kB time=00:00:02.67 bitrate= 0.1kbits/s
frame= 47 fps= 22 q=0.0 size= 0kB time=00:00:02.67 bitrate= 0.1kbits/s
frame= 50 fps= 18 q=29.0 size= 12kB time=00:00:02.67 bitrate= 36.8kbits/s
frame= 53 fps= 15 q=29.0 size= 16kB time=00:00:02.67 bitrate= 49.0kbits/s
frame= 55 fps= 14 q=29.0 size= 18kB time=00:00:02.67 bitrate= 54.5kbits/s
frame= 58 fps= 12 q=29.0 size= 23kB time=00:00:02.67 bitrate= 70.5kbits/s
frame= 62 fps=9.9 q=29.0 size= 30kB time=00:00:02.67 bitrate= 91.0kbits/s
frame= 66 fps=9.7 q=29.0 size= 35kB time=00:00:02.67 bitrate= 108.2kbits/s
frame= 68 fps=8.9 q=29.0 size= 41kB time=00:00:02.67 bitrate= 126.5kbits/s
frame= 71 fps=8.6 q=29.0 size= 45kB time=00:00:02.67 bitrate= 137.4kbits/s
frame= 73 fps=8.3 q=29.0 size= 49kB time=00:00:02.67 bitrate= 151.0kbits/s
frame= 76 fps=8.1 q=29.0 size= 55kB time=00:00:02.67 bitrate= 169.6kbits/s
frame= 78 fps=7.9 q=29.0 size= 57kB time=00:00:02.67 bitrate= 175.3kbits/s
frame= 81 fps=7.7 q=29.0 size= 60kB time=00:00:02.67 bitrate= 185.3kbits/s
frame= 82 fps=4.1 q=-1.0 Lsize= 144kB time=00:00:02.76 bitrate= 427.3kbits/s
video:114kB audio:26kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.954390%
[libx264 @ 0x15d956e00] frame I:1 Avg QP:21.88 size: 8319
[libx264 @ 0x15d956e00] frame P:29 Avg QP:22.66 size: 2774
[libx264 @ 0x15d956e00] frame B:52 Avg QP:23.92 size: 527
[libx264 @ 0x15d956e00] consecutive B-frames: 13.4% 4.9% 3.7% 78.0%
[libx264 @ 0x15d956e00] mb I I16..4: 17.3% 55.7% 27.0%
[libx264 @ 0x15d956e00] mb P I16..4: 4.7% 6.8% 0.8% P16..4: 48.3% 7.8% 4.2% 0.0% 0.0% skip:27.4%
[libx264 @ 0x15d956e00] mb B I16..4: 0.4% 0.2% 0.0% B16..8: 36.1% 0.4% 0.0% direct: 1.0% skip:61.9% L0:45.3% L1:53.7% BI: 1.0%
[libx264 @ 0x15d956e00] 8x8 transform intra:54.1% inter:85.3%
[libx264 @ 0x15d956e00] coded y,uvDC,uvAC intra: 41.6% 72.9% 20.4% inter: 7.3% 16.6% 0.1%
[libx264 @ 0x15d956e00] i16 v,h,dc,p: 34% 18% 24% 24%
[libx264 @ 0x15d956e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 10% 30% 3% 11% 13% 5% 6% 3%
[libx264 @ 0x15d956e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 7% 18% 4% 17% 19% 5% 8% 2%
[libx264 @ 0x15d956e00] i8c dc,h,v,p: 57% 15% 23% 5%
[libx264 @ 0x15d956e00] Weighted P-Frames: Y:20.7% UV:0.0%
[libx264 @ 0x15d956e00] ref P L0: 70.7% 10.6% 13.8% 3.9% 0.9%
[libx264 @ 0x15d956e00] ref B L0: 91.6% 7.3% 1.1%
[libx264 @ 0x15d956e00] ref B L1: 95.6% 4.4%
[libx264 @ 0x15d956e00] kb/s:339.97

comment:4 by Carl Eugen Hoyos, 9 years ago

To make this a valid ticket, please provide the command line that you used together with the complete, uncut console output.

by wangniancai, 9 years ago

Attachment: aiaiLogo.png added

comment:5 by wangniancai, 9 years ago

actually ,I use the default package for mac osx from the website ffmpeg.org ,It work fine with command .

comment:6 by Carl Eugen Hoyos, 9 years ago

So there is no issue?

in reply to:  5 ; comment:7 by Carl Eugen Hoyos, 9 years ago

Replying to wangniancai:

actually ,I use the default package for mac osx from the website ffmpeg.org

Note that to the best of my knowledge there is no default package of FFmpeg for OSX and there are no packages at all on ffmpeg.org.

in reply to:  7 comment:9 by wangniancai, 9 years ago

Replying to cehoyos:

Replying to wangniancai:

actually ,I use the default package for mac osx from the website ffmpeg.org

Note that to the best of my knowledge there is no default package of FFmpeg for OSX and there are no packages at all on ffmpeg.org.

sorry , I use the 2.7.2 build on my mac

comment:10 by Carl Eugen Hoyos, 9 years ago

I'm sorry if I missed it but please provide the command line that allows to reproduce the issue you want to report together with the complete, uncut console output to make this a valid ticket. I will then try to reproduce.

comment:11 by wangniancai, 9 years ago

ffmpeg 2.7 ,the similar configuration , work fine on Android, Mac os x ,"png inflate returned error -3" just on IOS when I try to add watermark with png .

comment:12 by Carl Eugen Hoyos, 9 years ago

Resolution: worksforme
Status: newclosed
$ ffmpeg -f lavfi -i testsrc -vf movie=aiaiLogo.png,[in]overlay -qscale 2 -t 10 out.mov
ffmpeg version N-74801-g32f5395 Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
  configuration: --enable-gpl --arch=arm --target-os=darwin --enable-cross-compile --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk --cc='clang -arch armv7 -miphoneos-version-min=8.0' --cpu=cortex-a8
  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
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Please use -q:a or -q:v, -qscale is ambiguous
Output #0, mov, to 'out.mov':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.60.100 mpeg4
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
frame=  250 fps= 27 q=2.0 Lsize=     440kB time=00:00:10.00 bitrate= 360.4kbits/s    
video:438kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.426191%

comment:13 by wangniancai, 9 years ago

could you please tell me the png decoder configure on ios

comment:14 by wangniancai, 9 years ago

it might be arm 64 compile issue

comment:15 by wangniancai, 9 years ago

it might be arm 64 compile issue

comment:16 by wangniancai, 9 years ago

Last edited 9 years ago by wangniancai (previous) (diff)
Note: See TracTickets for help on using tickets.