Hiring Women In Technology

As a leader in technology, I am committed to empowering my organization and teams through the adoption of far reaching goals in diversity and inclusion. Included within that objective is a commitment…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Mirroring your Android display to macOS or Linux

For a presentation I needed to show the audience what was going on on my Android phone. I expected this to be easy, but I ended up spending more than enough time figuring it out.

It’s working!

This solved my problem in a simple and developer friendly way. It also did not force me to install any additional software, as I had installed both Android Debug Bridge and ffmpeg previously. Awesome!

If you adb is not installed, it can be done with brew cask install android-platform-tools on Mac or with your package manager of choice on Linux.

So what does this command do? Let’s break it down a bit:

adb shell screenrecord starts the screenrecord application on the phone. Screenrecord has been available on Android since 4.4, and does, as the name implies, record whatever is on the screen. --output-format=h264 spcecifies the output format, and the final hyphen sets the output of screenrecord to stdout.

| ffplay pipes the output from screenrecord to ffplay on the computer. ffplay is a simple media player that comes with ffmpeg. -framerate 60 -probesize 32 specifies the frame rate and probesize. 32 is the lowest setting for probe size, and minimizes the delay in the playback.-sync video drops frames instead of fast-forwarding them, and the last hyphen sets the video input to stdin.

Add a comment

Related posts:

Parallelizing A Feature Across The Team

Recently Peloton introduced a new feature called Programs and Collections. Peloton Programs are curated training plans that take the guesswork out of your training by creating a week-by-week schedule…

A Puff Of Smoke

An excerpt from Sarah Lippett’s new Jonathan Cape published graphic memoir. Out on the 7th November 2019.. “A Puff Of Smoke” is published by Sarah Lippett in A Puff Of Smoke.

State of Being

Does my assurance of my love Make me her possession, Make me possessed, or Am I free to venture Beyond my state of being? Chalkboard prompt Possession by Kim Smyth for 10–30–2019…