The Artima Developer Community
Sponsored Link

Web Buzz Forum
Ubuntu phone screencasting, a minor tip

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Stuart Langridge

Posts: 2006
Nickname: aquarius
Registered: Sep, 2003

Stuart Langridge is a web, JavaScript, and Python hacker, and sometimes all three at once.
Ubuntu phone screencasting, a minor tip Posted: Jan 10, 2015 10:45 PM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Stuart Langridge.
Original Post: Ubuntu phone screencasting, a minor tip
Feed Title: as days pass by
Feed URL: http://feeds.feedburner.com/kryogenix
Feed Description: scratched tallies on the prison wall
Latest Web Buzz Posts
Latest Web Buzz Posts by Stuart Langridge
Latest Posts From as days pass by

Advertisement

An Ubuntu phone has a command-line utility called mirscreencast which dumps screen frames to a file, meaning that in theory it’s possible to record a video of your phone’s screen. In practice, though, it doesn’t work for video; the phone is that busy (a) grabbing frames and (b) writing them to the phone’s storage that you can’t actually use it for jerkiness, and the resultant video includes about one frame in ten. I can’t fix this, but I did come up with a way to make it at least a bit better — instead of saving the video onto the phone’s storage, send it over the network to a real machine.

On your computer: nc -l -p 1234 > out, which uses netcat to listen to port 1234 and send everything that comes in there to a file named out.

On the phone: mirscreencast -n 600 -m /var/run/mir_socket -s 360 640 --stdout | nc mycomputer 1234, which uses mirscreencast to record frames (at a particular smaller size) and then send them with netcat to port 1234 on the computer. (You may need to put your computer’s IP address instead of mycomputer, especially since Ubuntu phone won’t resolve computername.local names.)

Then, once recording finishes, mencoder -demuxer rawvideo -rawvideo fps=6:w=360:h=640:format=bgra -ovc x264 -o out.mp4 out makes a proper mp4. (Cheers Bill for the mirscreencast info.)

It still isn’t great. But it’s a bit better.

Read: Ubuntu phone screencasting, a minor tip

Topic: Desperately Seeking Open Source Governance Previous Topic   Next Topic Topic: Nifty Things for Week 9 January 2015

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use