[Libav-user] Green screen issue for Android 5.0 image compression

Tulika Baranwal me.tulika at gmail.com
Tue Apr 28 12:49:11 CEST 2015


I am trying to fetch continuous android phone`s screenshot and compress it
using ffmpeg tool.
The command that I use works pretty well with all Android versions except
Android lollypop devices(Android 5.0 or higher).
For Android 5.0 devices it gives a random green screen in between.

The following is the command being used :

"shell:screencap | /data/local/tmp/ffmpeg -loglevel panic -f rawvideo -s %s
-pix_fmt rgba -r 5 -i - -vf scale=%s -b 5 -f image2pipe -vcodec png
-vframes 1 -"

I have been stuck in this issue for a while, have tried changing the
pix_fmt from rgb to rgba but that doesnt help much.

Has any one faced a similar issue, and could help

Thanks in advance.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150428/f6d32b32/attachment.html>

More information about the Libav-user mailing list