0

I was trying to record video of all the monitors or a selection, so was wondering what to use for Linux.

The thoughts that came to mind were screenshot the screen a bunch but this probably isnt the right way to go about it.

I looked at the Cairo docs but can't find anyhting. On Windows I found DirectShow and OSX I found AVFoundation.

edit: i just came across something: XvGetVideo would this be an option?

Noitidart
  • 35,443
  • 37
  • 154
  • 323
  • 1
    Are you trying to record a screencast or programmatically record video from the screen? – ptomato Sep 13 '15 at 17:25
  • Thanks @ptomato for the attn :) Im trying to basically do as if i was taking multiple screenshots every 25ms and then combine them togather. But I was thinking there had to be a better more recommended way then doing the so many screenshots every few ms. So record screencast, basically whatever shows in screenshot, so if htere is a video on screen, it should be visible no? – Noitidart Sep 13 '15 at 22:05
  • 1
    I'm asking what is your goal with this. To record a screencast of yourself performing actions on the desktop which you can then publish? Or to write a program which will record video from the screen for other people? – ptomato Sep 15 '15 at 15:22
  • Ah yep screencast which i can then make into gif or other format to upload to youtube or twittter, i do a lot of tutorails and find that screencasts help a lot. – Noitidart Sep 15 '15 at 19:54
  • 1
    No need to program it yourself. Take a look at [this question](http://askubuntu.com/questions/4428/how-to-create-a-screencast) for screencast software recommendations. – ptomato Sep 16 '15 at 05:00
  • Thanks very much @ptomato but i really want to make one myself as there is so much learning that happens through that. I teach people a lot of stuff and these projects help me a ton! I want to hook up some custom things too like upload to youtube/twitter various cloud services. Just something from a firefox addon scope :) Ill try to see if i can get my hands on the sources for those apps but if you or anyone have any hints please share – Noitidart Sep 16 '15 at 07:58
  • 1
    OK, so your goal was actually the second option: to write a program which will record video from the screen. Take a look at the sources for the screencast apps, or look at how gnome-shell does it: https://git.gnome.org/browse/gnome-shell/tree/src/shell-recorder.c, it basically grabs frames and feeds them into a gstreamer encoding pipeline. – ptomato Sep 17 '15 at 05:56
  • Ah excuse that please. Thanks so much I'll look into that and update you with the code i write :) – Noitidart Sep 17 '15 at 10:34

1 Answers1

1

You can check out ffscreencast with the --dry parameter which will show you the commands that would be issued. Looks nice for learning.

Did it under linux and it showed me it was using x11Grab

lockdoc
  • 1,539
  • 1
  • 18
  • 31