[vlc] record open windows

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

[vlc] record open windows

#1 Post by fabrice_035 »

Hey,

I use version 2.1.6 of vlc and I discovered that it was possible to save a window, so a program in progress. Not a region, real window.

You can move the window and the recording still works

I use this command, first list open window

Code: Select all

wmctrl -l
next record the chosen window, without sound :

Code: Select all

vlc -I dummy window://0x4d8bd3 --screen-fps=20 --sout=#transcode{vcodec=h264,vb072}:standard{access=file,mux=mp4,dst=capture.mp4}
next exemple, with sound (i use pulseaudio)

Code: Select all

vlc -I dummy window://0x3a00001 --screen-fps=30 --input-slave pulse://alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor --sout='#transcode{vcodec=h264,vb072,acodec=mp3,ab=128}:standard{access=file,mux=mp4,dst=capture.mp4'
Be carefull with video codec, vlc send error code:

Code: Select all

[0xb19141b0] x264 encoder error: cannot open x264 encoder
[libx264 @ 0xb1937b60] height not divisible by 2 (780x641)
You need resize window and find good size.

The result, i record a Firefox session:
http://gongzone.chez.com/vlc_record_firefox.mp4

And wine session (with "rebirth" program) and sound
http://gongzone.chez.com/rebirth_capture_vlc.mp4

There is a defect, the mouse is never visible.

Did you know about this trick? :shock:

Regard.
Bionicpup64-8.0 _ Kernel 5.4.27-64oz _ Asus Rog GL752

Post Reply