[FFmpeg-devel] [PATCH] Allow use of PNGs with image2pipe

Michael Niedermayer michaelni at gmx.at
Fri May 4 17:11:58 CEST 2012


On Fri, May 04, 2012 at 05:03:52PM +1000, Eugene Ware wrote:
> Problem this patch fixes:
> --------------------------------------
> 
> When I run the following command
> 
> $ cat file1.png file2.png | ffmpeg -y -f image2pipe -r 1 -vcodec png -i -
> out.mp4
> 
> I get the following error.
> 
> ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers
> built on Apr 25 2012 19:55:19 with clang 3.0 (tags/Apple/clang-211.10.1)
> configuration: --prefix=/opt/local --enable-gpl --enable-postproc
> --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis
> --enable-libtheora --enable-libdirac --enable-libschroedinger
> --enable-libopenjpeg --enable-libxvid --enable-libx264 --enable-libvpx
> --enable-libspeex --mandir=/opt/local/share/man --enable-shared
> --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
> --enable-nonfree --enable-libfaac
> libavutil 50. 43. 0 / 50. 43. 0
> libavcodec 52.123. 0 / 52.123. 0
> libavformat 52.111. 0 / 52.111. 0
> libavdevice 52. 5. 0 / 52. 5. 0
> libavfilter 1. 80. 0 / 1. 80. 0
> libswscale 0. 14. 1 / 0. 14. 1
> libpostproc 51. 2. 0 / 51. 2. 0
> [image2pipe @ 0x7f9dd104ac00] max_analyze_duration 5000000 reached at
> 5000000
> [image2pipe @ 0x7f9dd104ac00] Estimating duration from bitrate, this may be
> inaccurate
> Input #0, image2pipe, from 'pipe:':
> Duration: N/A, bitrate: N/A
> Stream #0.0: Video: png, 1 fps, 1 tbr, 1 tbn, 1 tbc
> [buffer @ 0x7f9dd0c32780] Invalid pixel format string '-1'
> Error opening filters!
> 
> 
> You can use the following as example png files to replicate the issue:
>  http://dl.dropbox.com/u/4763380/ffmpeg/file1.png
>  http://dl.dropbox.com/u/4763380/ffmpeg/file2.png
> 
> 
> This is a long standing issue. I found an old patch and updated it to work
> with the latest version of ffmpeg in the git repository.
> 
> Here's the fix:
> -----------------------
> 
> http://pastebin.com/5mTfGsdg

patch applied thanks for updating peters patch and pinging me
It seems i forgot about this patch totally
IIRC it was just a issue about simplifying why itz wasnt applied
in the past and that would be unreasonable not to apply it because
of that

and big thanks to peter for writing the png parser

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120504/878e6417/attachment.asc>


More information about the ffmpeg-devel mailing list