Subject: Re: VLC params to play mir screencast output

From: Daniel van Vugt <[email-masked]>
Date: Mon, 17 Feb 2014 10:56:48 +0800

Nice.

And this command works too (with BGRA as well):
mplayer -fixed-vo -demuxer rawvideo \
   -rawvideo fps=60:w=1920:h=1200:format=bgra /tmp/*bgra

Although it renders in a jerky way.

To create a lossless video file which plays back more realistically:
mencoder -demuxer rawvideo \
   -rawvideo fps=60:w=1920:h=1200:format=bgra /tmp/*bgra \
   -ovc lavc -lavcopts vcodec=ffv1 -o all.avi

Obviously substitute "fps=60:w=1920:h=1200:format=bgra" as required.

- Daniel

On 15/02/14 00:55, Alberto Aguirre wrote:
> vlc --demux rawvideo --rawvid-fps <fps> --rawvid-width <width>
> --rawvid-height <height> --rawvid-chroma=RGBA <screencast_file>
>
> Note that at least in my vlc version (2.1.2) BGRA format in rawvid is
> not supported so you'll get flipped colors.
>
>
>
>

---

From: Oliver Ries <[email-masked]>
Date: Sun, 16 Feb 2014 21:32:43 -0700

On Sun, Feb 16, 2014 at 7:56 PM, Daniel van Vugt <
[email-masked]> wrote:

> Obviously substitute "fps=60:w=1920:h=1200:format=bgra" as required
>

sweet, I however didn't get the memo how one would actually capture the
screen. Can someone pls explain?

thx
Olli

---

From: Daniel van Vugt <[email-masked]>
Date: Mon, 17 Feb 2014 12:41:21 +0800

I'm just figuring it out myself. It appears you just run client:
    mirscreencast
(might require sudo) and that generates frames: /tmp/*.bgra

mirscreencast should be installed by the "mir-utils" package.

Obviously in future it might be nice for mirscreencast to generate a 
single video file instead of many separate images. There are also 
performance problems:
    https://bugs.launchpad.net/mir/+bug/1280938
But these are all things to work on...

- Danirl

On 17/02/14 12:32, Oliver Ries wrote:
> On Sun, Feb 16, 2014 at 7:56 PM, Daniel van Vugt
> <[email-masked] <mailto:[email-masked]>>
> wrote:
>
>     Nice.
>
>        -rawvideo fps=60:w=1920:h=1200:format=__bgra /tmp/*bgra
>
>        -rawvideo fps=60:w=1920:h=1200:format=__bgra /tmp/*bgra \
>     Obviously substitute "fps=60:w=1920:h=1200:format=__bgra" as required
>
>

---

From: Alberto Aguirre <[email-masked]>
Date: Sun, 16 Feb 2014 22:50:40 -0600

Yes mirscreencast is the utility.

After this branch is merged, it will be a single video file:

https://code.launchpad.net/~albaguirre/mir/screencast-crash-fix/+merge/206337