[FFmpeg-devel] filter vf_findandcover
JULIAN GARDNER
joolzg at btinternet.com
Thu Apr 30 00:43:18 CEST 2015
I converted to 8bit greyscale, i did check the code to see what format it wants.
My question was really about the fact that one of my own filters now fails with any png from gimp so I have to run 2 versions of ffmpeg one which works and the newer one.
this is the problem[png @ 0x260cda0] PNG2
[png @ 0x260cda0] PNG3
[Parsed_foc_1 @ 0x260b640] Failed to decode image from file[png @ 0x25c2a60] PNG2
[png @ 0x25c2a60] PNG3
its not the error from the foc filter, its an error from the png decode
joolz
On Thursday, 30 April 2015, 0:19, Michael Niedermayer <michaelni at gmx.at> wrote:
On Wed, Apr 29, 2015 at 09:58:55PM +0000, JULIAN GARDNER wrote:
> Just thought i would give this a test and took a video i had, cropped a static bit from the picture, using gimp, and tried to run this.
> but I have the same problem as one of my own filters, png decode does not work, well not with a png generated with gimp.
> anybody know how to export a VALID png file.
>
> command line and output
> encoder at encoder:~/ffmpeg$ ./ffmpeg -i /home/encoder/dumps/stream.ts -vf 'scale=640:360,foc=object=ball.png' -y -f mpegts a.ts
> ffmpeg version N-69739-gbc3514b Copyright (c) 2000-2015 the FFmpeg developers
> built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
> configuration: --bindir=/home/encoder/bin --enable-gpl --enable-version3 --enable-nonfree --disable-ffserver --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --disable-libxcb --enable-libmp3lame --enable-postproc --enable-libfaac --enable-libzvbi --enable-libx264 --enable-libx265 --cc='ccache cc'
> libavutil 54. 18.100 / 54. 18.100
> libavcodec 56. 21.102 / 56. 21.102
> libavformat 56. 19.101 / 56. 19.101
> libavdevice 56. 4.100 / 56. 4.100
> libavfilter 5. 10.100 / 5. 10.100
> libswscale 3. 1.101 / 3. 1.101
> libswresample 1. 1.100 / 1. 1.100
> libpostproc 53. 3.100 / 53. 3.100
> [mpegts @ 0x25ce1a0] New SDT(0x0011) Table, version 255 to 0
> [mpegts @ 0x25ce1a0] New PMT(0x0040) Table, version 255 to 0
> Input #0, mpegts, from '/home/encoder/dumps/stream.ts':
> Duration: 00:15:00.04, start: 8526.864000, bitrate: 9900 kb/s
> Program 48
> Metadata:
> service_name : DTV3
> service_provider:
> Stream #0:0[0x41]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
> Stream #0:1[0x42]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s
> [png @ 0x260cda0] PNG2
> [png @ 0x260cda0] PNG3
> [Parsed_foc_1 @ 0x260b640] Failed to decode image from file
> [png @ 0x25c2a60] PNG2
> [png @ 0x25c2a60] PNG3
> [Parsed_foc_1 @ 0x260b640] Error loading image file 'ball.png'
> [AVFilterGraph @ 0x25d31a0] Error initializing filter 'foc' with args 'object=ball.png'
> Error opening filters!
the object file must be gray8 colorspace
i used a .pgm
ill fix the code to produce a better error message and document that
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The educated differ from the uneducated as much as the living from the
dead. -- Aristotle
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list