Mir

[krillin] mirscreencast only creates a still picture, not a playable movie

Bug #1439549 reported by Matthias Apitz
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mir
Fix Released
High
Alberto Aguirre
mir (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This is on the Ubuntu phone BQ Aquaris E4.5 Ubuntu Edition, OS Ubuntu 14.10 (r20).

The command

# mirscreencast -m /var/run/mir_socket --cap-interval 10 -s 270 480 600

produces a file

# ls -l /tmp/mir*
-rw-rw-r-- 1 phablet phablet 62726400 Apr 2 09:00 /tmp/mir_screencast_270x480_6.657Hz.rgba

and moving the file with SCP to another host and playing it with

$ mplayer -demuxer rawvideo -rawvideo fps=6:w=270:h=480:format=rgba mir_screencast_270x480_6.657Hz.rgba

gives only a still picture while mplayer is counting the frames correctly. I checkd it with putting the clock app on the phone, the picture is from the start of the grabbing.

Related branches

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [enhancement] mirscreencast only creates a still picture, not a movie

Correct. I think it's only designed to capture frames as separate image files right now. To play them as a video is possible, but awkward. See:

https://lists.ubuntu.com/archives/mir-devel/2014-February/000650.html

summary: - mirscreencast only creates a still picture, not a movie
+ [enhancement] mirscreencast only creates a still picture, not a movie
tags: added: enhancement
Changed in mir:
importance: Undecided → Wishlist
status: New → Triaged
tags: added: screencast
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also "6.657Hz" sounds like a bug.

Revision history for this message
Matthias Apitz (gubu) wrote :

the above command in my report does only produce _one_ file /tmp/*.bra; do we talk about the same command/version?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sorry, just retested on a BQ phone.

You're right; mirscreencast does record a single video file now. So my previous instructions definitely don't work with mplayer or vlc any more. They just show the first frame if you try to play the file (or mirscreencast only records the first frame??).

Bug confirmed and verified.

summary: - [enhancement] mirscreencast only creates a still picture, not a movie
+ mirscreencast only creates a still picture, not a movie
Changed in mir:
importance: Wishlist → Medium
summary: - mirscreencast only creates a still picture, not a movie
+ mirscreencast only creates a still picture, not a playable movie
tags: removed: enhancement
Revision history for this message
Matthias Apitz (gubu) wrote : Re: mirscreencast only creates a still picture, not a playable movie

mplayer shows all frames in the file correctly; the issue must be that either mirscreencast always put the same frame again into the file or always get the same (first) frame again from the MIR-server from its socket. Is there any other client whcih could read something usefull from /var/run/mir_socket?

Revision history for this message
Matthias Apitz (gubu) wrote :

a workaround is easy:

while true; do
  mirscreencast -m /run/mir_socket --stdout --cap-interval 1 -s 270 480 -n 60 >> /tmp/video
  printf "."
done

i.a. capture always 60 frames and restart mirscreencast in a loop;

the resulting file /tmp/video plays fine with

$ mplayer -demuxer rawvideo -rawvideo fps=60:w=270:h=480:format=rgba video

Changed in mir:
importance: Medium → High
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

@6.657HZ being a bug - it is not....The BQ refresh rate is indeed around 67Hz.

We need to look into why the continuous capture is broken though...

Changed in mir:
status: Triaged → In Progress
assignee: nobody → Alberto Aguirre (albaguirre)
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

Confirmed. It's still broken in the latest vivid-proposed image (#172) and mir 0.12.1

Changed in mir:
milestone: none → 0.13.0
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

Works fine in nexus 4 however. Seems specific to BQ.

summary: - mirscreencast only creates a still picture, not a playable movie
+ [krillin] mirscreencast only creates a still picture, not a playable
+ movie
tags: added: krillin
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.13.0

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mir - 0.13.1+15.10.20150520-0ubuntu1

---------------
mir (0.13.1+15.10.20150520-0ubuntu1) wily; urgency=medium

  [ Cemil Azizoglu ]
  * New upstream release 0.13.1 (https://launchpad.net/mir/+milestone/0.13.1)
    - ABI summary: No ABI break. Servers and clients do not need rebuilding.
      . Mirclient ABI unchanged at 8
      . Mircommon ABI unchanged at 4
      . Mirplatform ABI unchanged at 7
      . Mirserver ABI unchanged at 31
    - Bug fixes:
      . Can't load app purchase UI without a U1 account (LP: #1450377)
      . Crash because uncaught exception in mir::events::add_touch (LP: #1437357)

 -- CI Train Bot <email address hidden> Wed, 20 May 2015 21:20:15 +0000

Changed in mir (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.