Notes

Screen recording on Armbian

Setting up my Orange Pi Plus 2 for some screen recording so i could make mini tutorials

Edit on GitHub


Armbian
4 minutes

tl;dr

The options for sreen recording tools are:

  • Kazam Config doesn’t get saved, recording issues, last updated 2014
  • OBS Studio Make error, something about target 'all' failing
  • Simple Screen Recorder Package not found, compile from source??
  • RecordMyDesktop Recording is pink
  • Istanbul Unable to locate package, dead project, last update 2013

OBS Studio

  • OBS Studio is not officially available for Armbian. Adding the repo still ends up in an error saying the package could not be found. You have to build it from source.
  • Building OBS from source also ended in vain.
 1Installing with make install...
 2
 3========================= Installation results ===========================
 4[  1%] Built target glad
 5[  2%] Building C object deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o
 6cc: error: unrecognized command line option ‘-mmmx’
 7cc: error: unrecognized command line option ‘-msse’
 8cc: error: unrecognized command line option ‘-msse2’
 9deps/media-playback/CMakeFiles/media-playback.dir/build.make:62: recipe for target 'deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o' failed
10make[2]: *** [deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o] Error 1
11CMakeFiles/Makefile2:212: recipe for target 'deps/media-playback/CMakeFiles/media-playback.dir/all' failed
12make[1]: *** [deps/media-playback/CMakeFiles/media-playback.dir/all] Error 2
13Makefile:149: recipe for target 'all' failed
14make: *** [all] Error 2
15
16****  Installation failed. Aborting package creation.
17
18Cleaning up...OK
19
20Bye.

Kazam

1sudo apt install kazam
  • for some reason my configuration for Kazam was not being saved when being edited from File > Preferences. So i ended up editing the config file at ~/.config/kazam/kazam.conf
1[DEFAULT]
2autosave_video_file = kazam_
3autosave_picture_file = kazam_
4capture_microphone = True
5autosave_video_dir = /home/aamnah/Screencasts
6autosave_picture_dir = /home/aamnah/Screenshots
7framerate = 20

Editing the conf file directly was also in vain. Kazam resets the settings every time it runs, the conf file gets overwritten.

  • According to the author, framerates above 20fps are unlikely to work well because of software and hardware limitations.
  • Kazam seems to have been abandoned, the last release was in 2014
  • Errors when running kazam. Errors when compiling from source. Errors with python3

Simple Screen Recorder

1sudo add-apt-repository -y ppa:maarten-baert/simplescreenrecorder
2sudo apt update
3sudo apt install simplescreenrecorder
E: Unable to locate package simplescreenrecorder

RecordMyDesktop

1# install tool
2sudo apt install recordmydesktop 
3
4# install GUI
5sudo apt install gtk-recordmydesktop
aamnah@orangepiplus:~$ recordmydesktop
Initial recording window is set to:
X:0   Y:0    Width:1920    Height:1080
Adjusted recording window is set to:
X:0   Y:4    Width:1920    Height:1072
Your window manager appears to be Xfwm4

Initializing...
Buffer size adjusted to 4096 from 4096 frames.
Opened PCM device default
Recording on device default is set to:
1 channels at 22050Hz
Capturing!
^C
  • recordmydesktop encodes the videos after you’re done recording and it takes it’s sweet time, about a minute for 2%. No idea why.
  • the output files are in ogg (theora/vorbis) format. These are open formats, theora for video and vorbis for audio, using the ogg container.
*********************************************

Cached 150 MB, from 9814 MB that were received.
Average cache compression ratio: 98.5 %

*********************************************
Saved 1250 frames in a total of 1245 requests
Shutting down.....
STATE:ENCODING
Encoding started!
This may take several minutes.
Pressing Ctrl-C will cancel the procedure (resuming will not be possible, but
any portion of the video, which is already encoded won't be deleted).
Please wait...
Output file: out.ogv
[101%]
Encoding finished!
Wait a moment please...
   
Done.
Written 11998043 bytes
(11071029 of which were video data and 927014 audio data)

Cleanning up cache...
Done!!!
Goodbye!
  • a 1 minute recording took 12MB of space
  • the resulting video had a pink hue and had no audio even though i had set my source/sink to my microphone in ALSA

Notes

  • Search for tools that run on Raspberry Pi instead of Linux/Debian tools. Since Raspberry Pi is AMR-based, chances are the tools will run on OrangePi too.
  • If you’re just recording, Kazam is enough. If you also plan on editing your recorded footage than OBS Studio is the way to go.
  • OBS Studio is multi-platform, available for Linux, macOS, and Windows
  • OBS also supports streaming to different platforms including Twitch and YouTube
  • If you’re into making GIFs then Gefine is a great tool