<div dir="ltr">Hi <br><br>I am trying to fetch continuous android phone`s screenshot and compress it using ffmpeg tool.<br>The command that I use works pretty well with all Android versions except Android lollypop devices(Android 5.0 or higher). <br>For Android 5.0 devices it gives a random green screen in between.<div><br></div><div>The following is the command being used : </div><div><br></div><div>"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 -"</div><div><br></div><div>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.</div><div><br></div><div>Has any one faced a similar issue, and could help</div><div><br></div><div>Thanks in advance. </div><div><br></div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Regards<div>.............</div><div><br><div><div dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font face="georgia, serif"><font color="#000099">TULIKA BARANWAL</font></font></div><div dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><br></div></div></div></div>
</div></div>