Git Product home page Git Product logo

deepin-screen-recorder's Introduction

Deepin Screen Recorder

This is default screen recorder application for Deepin.

Dependencies

In debian, use below command to install compile dependencies:

libc6 (>= 2.14), libgcc1 (>= 1:3.0), libgl1-mesa-glx | libgl1, libqt5core5a (>= 5.6.0~beta), libqt5dbus5 (>= 5.0.2), libqt5gui5 (>= 5.2.0), libqt5network5 (>= 5.0.2), libqt5widgets5 (>= 5.0.2), libqt5x11extras5 (>= 5.6.0), libstdc++6 (>= 4.1.1), libx11-6, libxcb-util0 (>= 0.3.8), libxcb1, libxext6, libxtst6

Installation

  • mkdir build
  • cd build
  • qmake ..
  • make
  • ./deepin-screen-recorder

Usage

  1. Select area need to record
  2. Then click "record" button to record
  3. Click tray icon to stop record, and save file on desktop

Below is keymap list for deepin-screen-recorder:

Function Shortcut
Cancel ESC
Adjust position of select area Up, Down, Left, Right
Adjust size of select area Ctrl + Up, Down, Left, Right
Stop record Same keystroke that start deepin-screen-recorder

Config file

Configure file save at: ~/.config/deepin/deepin-screen-recorder/config.conf

You can change default format for save file.

Getting help

Any usage issues can ask for help via

Getting involved

We encourage you to report issues and contribute changes

License

Deepin Screen Recorder is licensed under GPL-3.0-or-later.

deepin-screen-recorder's People

Contributors

add-uos avatar amazingfate avatar ang486 avatar chenchongbiao avatar deepin-bot[bot] avatar deepinzhangshuang avatar electricface1 avatar feeengli avatar felixonmars avatar groveer avatar gs342 avatar heemingyang avatar hualet avatar hundundadi avatar iceyer avatar justforlxz avatar lzwind avatar manateelazycat avatar max-lvs avatar myk1343 avatar myml avatar rb-union avatar reionwong avatar sonald avatar toberyan avatar tourbillons avatar tsic404 avatar uos-hl avatar wineee avatar zhangwenchaoworking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepin-screen-recorder's Issues

[BUG] Program has an un-expected behavior from 5.8.0.39 to any version above 39

What have I done

Update deepin-screen-recorder from 5.8.0.39 to 5.8.0.40/5.8.0.41/..../5.8.0.46

What happend

After update to any version above 5.8.0.40 (include 5.8.0.40). When taking screen shot, screen becomes darker but the cursor not change to "cross" shape, and there is a warnning:

2020-12-16, 15:03:53.407 [Debug  ] [                                                         0] screen size QRect(0,0 3840x1080) QRect(0,0 -1x-1)
2020-12-16, 15:03:53.510 [Warning] [                                                         0] QWidget::setMinimumSize: (/MainWindow) Negative sizes (-1,-1) are not possible
2020-12-16, 15:03:53.556 [Warning] [                                                         0] QWidget::setMinimumSize: (/MainWindow) Negative sizes (-1,-1) are not possible
2020-12-16, 15:03:53.594 [Debug  ] [                                                         0] screen rect: QRect(0,0 3840x1080)

This bug only happened when I connect my extend monitor.It will NOT happen if I only have one monitor.

What expected

I can take screen shot.

Additional information

  1. 5.8.0.39 do not have this bug

  2. I think it is probably something related to my Xorg's monitor configuration:

Section "ServerLayout"
	Identifier "layout"
	Screen 0 "Intel-GPU"
	Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
	Identifier "Intel-GPU"
	Driver "modesetting"
	BusID "PCI:0:2:0"
	Option "Primary" "true"
	Option "Monitor-eDP-1" "LaptopMonitor"
	Option "Monitor-DP-2-1" "ExtendMonitor-1"
	Option "Monitor-DP-2-2" "ExtendMonitor-2"
EndSection

Section "Screen"
	Identifier "Intel-GPU"
	Device "Intel-GPU"
	Monitor "LaptopMonitor"
EndSection

Section "Device"
	Identifier "NVIDIA-GPU"
	Driver "nvidia"
	BusID "PCI:2:0:0"
	Option "AllowEmptyInitialConfiguration" "true"
EndSection

Section "Monitor"
	Identifier "LaptopMonitor"
	#DisplaySize 406 229
	Option "PreferredMode"  "1920x1080"
	Option		 "DPMS"
EndSection
Section "Monitor"
	Identifier "ExtendMonitor-1"
	#DisplaySize 406 229
	#Option "PreferredMode"  "1920x1080"
	#Option		 "DPMS"
	Option		 "LeftOf" "LaptopMonitor"
EndSection
Section "Monitor"
	Identifier "ExtendMonitor-2"
	#DisplaySize 406 229
	Option "PreferredMode"  "1366x768"
	#Option		 "DPMS"
	Option		 "Below" "ExtendMonitor-1"
EndSection

And here is my xrander output:

>> xrandr 
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 309mm x 173mm
   1920x1080     60.03*+  60.01    59.97    59.96    59.93    48.03  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080     60.00*+  50.00    59.94  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   800x600       72.19    75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
DP-2-2 disconnected (normal left inverted right x axis y axis)
DP-2-3 disconnected (normal left inverted right x axis y axis)

KDE task bar locks up for 50 seconds while processing a screenshot

Hello,

First of all, thanks for creating this tool.
I've got a problem, when I take a screenshot my KDE Task bar locks up.Screen Capture_plasmashell_20201127153709 I cant use my top bar, I can however use alt-tab.

It also takes a long time to capture the screenshot. which you can see in the logs below.

 fhfs@FHFS-Dell  ~  deepin-screen-recorder -v
deepin-screen-recorder 1127
 fhfs@FHFS-Dell  ~  deepin-screen-recorder   
2020-11-27, 14:36:05.577 [Warning] [dapplication.cpp     Dtk::Widget::DApplicationPrivate::loadTranslator 317] "dtkwidget" can not find qm files ("dtkwidget_C.qm", "dtkwidget_C.qm")
2020-11-27, 14:36:05.577 [Warning] [dapplication.cpp     Dtk::Widget::DApplicationPrivate::loadTranslator 317] "deepin-screen-recorder" can not find qm files ("deepin-screen-recorder_C.qm", "deepin-screen-recorder_C.qm")
2020-11-27, 14:36:05.593 [Debug  ] [                                                         0] ConfigSettings: "effect" "is_blur" QVariant(bool, false)
2020-11-27, 14:36:05.608 [Debug  ] [                                                         0] ConfigSettings: "effect" "is_mosaic" QVariant(bool, false)
2020-11-27, 14:36:05.608 [Debug  ] [                                                         0] Setting file: "/home/fhfs/.config/deepin/deepin-screen-recorder.conf"
2020-11-27, 14:36:05.623 [Debug  ] [                                                         0] config changed
2020-11-27, 14:36:05.623 [Debug  ] [                                                         0] ConfigSettings: "common" "themeType" QVariant(int, 2)
2020-11-27, 14:36:05.672 [Debug  ] [                                                         0] is zhao xin: ""
2020-11-27, 14:36:05.802 [Debug  ] [                                                         0] screen rect: QRect(0,0 1920x1080)
No appenders assotiated with category qt.qpa.xcb
[Warning] <> QXcbConnection: XCB error: 5 (BadAtom), sequence: 446, resource id: 0, major code: 20 (GetProperty), minor code: 0
2020-11-27, 14:36:08.663 [Debug  ] [                                                         0] mic status false
2020-11-27, 14:36:10.452 [Debug  ] [                                                         0] release event !!!
2020-11-27, 14:36:10.513 [Debug  ] [                                                         0] shotCurrentImg shotFullScreen
2020-11-27, 14:36:10.513 [Debug  ] [                                                         0] m_backgroundRect QRect(0,0 1920x1080)
2020-11-27, 14:36:10.531 [Debug  ] [                                                         0] m_resultPixmap QRect(0,0 1920x1080)
2020-11-27, 14:36:10.531 [Debug  ] [                                                         0] 0 , 36 , 1920 , 1044 QRect(0,0 1920x1080) 1
2020-11-27, 14:36:10.541 [Debug  ] [                                                         0] release event !!!
2020-11-27, 14:36:10.560 [Debug  ] [                                                         0] ConfigSettings: "common" "default_savepath" QVariant(QString, "/home/fhfs")
2020-11-27, **14:36:10.561** [Debug  ] [                                                         0] "/home/fhfs/Screen Capture_tilix_20201127143610.png"
2020-11-27, **14:36:35.535** [Debug  ] [                                                         0] saveFilePath: "/home/fhfs/Screen Capture_tilix_20201127143610.png"
2020-11-27, **14:37:00.554** [Debug  ] [                                                         0] release event !!!

Got any solutions for me?

Cannot use on Arch Linux

Since the last update, I cannot tell what version was running before, but the current one that is giving me issues:

deepin-screen-recorder 1230 (from command line)

or: deepin-screen-recorder-5.8.0.61-1 (from pacman)

I get this by executing it through command line:

2021-01-18, 14:16:46.722 [Debug  ] [                                                         0] ConfigSettings: "effect" "is_blur" QVariant(bool, false)
2021-01-18, 14:16:46.729 [Debug  ] [                                                         0] ConfigSettings: "effect" "is_mosaic" QVariant(bool, false)
2021-01-18, 14:16:46.729 [Debug  ] [                                                         0] Setting file: "/home/denis/.config/deepin/deepin-screen-recorder.conf"
2021-01-18, 14:16:46.733 [Debug  ] [                                                         0] config changed
2021-01-18, 14:16:46.733 [Debug  ] [                                                         0] ConfigSettings: "common" "themeType" QVariant(int, 1)
2021-01-18, 14:16:46.760 [Debug  ] [                                                         0] is zhao xin: ""
2021-01-18, 14:16:46.823 [Debug  ] [                                                         0] screen rect: QRect(0,0 3840x2160)
No appenders assotiated with category qt.qpa.xcb
[Warning] <> QXcbConnection: XCB error: 5 (BadAtom), sequence: 409, resource id: 0, major code: 20 (GetProperty), minor code: 0

It doesn't show anything from deepin-screen-recoder and it won't let you use any app until you click ESCAPE so deepin-screen-recorder is finalized.

I don't know what to do for debugging this further. Please let me know if I can provide you with more data

Permission error when deleting screenshot

Issue: Popup occurs when deleting (right click delete) a screenshot from the desktop but the file is actually deleted. This does not happen when the screenshot has been saved to the picture directory.

image

Default photo, videos and gif folder

SalahAdDin commented on May 15
Hi, thanks for this great work.

GIF works very good with the screen recorder software.

But i think that all gif, videos and photos have to be in his respective user folders and not in the desktop.
Also put settings for customization will be great.

Thank you.

DDE crashes...

If I try to record the screen with Deepin screen recorder, then DDE crashes..... please fix this issue

Compiling Error

从源码编译遇到错误,这怎么解决?

../src/main_window.cpp: In member function ‘void MainWindow::initAttributes()’:
../src/main_window.cpp:133:55: error: ‘class Dtk::Widget::DWindowManagerHelper’ has no member named ‘currentWorkspaceWindowIdList’; did you mean ‘currentWorkspaceWindows’?
for (auto wid : DWindowManagerHelper::instance()->currentWorkspaceWindowIdList()) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
currentWorkspaceWindows
Makefile:581: recipe for target 'main_window.o' failed
make: *** [main_window.o] Error 1

mp4格式录制文件位0b

"[x11grab @ 0xe2f1a05ec0] Stream #0: not enough frames to estimate rate; consider increasing probesize"
"Input #0, x11grab, from ':0.0+348,183':"
" Duration: N/A, start: 1510219454.473007, bitrate: N/A"
" Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1224x659, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc"
"Stream mapping:"
" Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))"
"Press [q] to stop, [?] for help"
"[libx264 @ 0xe2f1a0f220] height not divisible by 2 (1224x659)"
"Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height"
"Conversion failed!"

MP4 doesn't save the file

I'm running DDE over Ubuntu. I can save a .gif but not .mp4. I tried to change the .config file, but the modifications do not prevail.

Change frame rate

Hello,
Is there a way to change the frame rate in Deepin Screen Recorder?

[Feature Request] Allow to record while in-game

Right now when you get into the game, Deepin automatically turns off window effects altogether with an ability to record your screen. I wonder if it's possible to keep recording available. It find this tool very powerful and making this possible would let people conveniently share their game experience with friends.

Do not save mp4

If I make a screen record in gif it works perfectly, but if I make it in mp4 it does not create any file.

The log error is: "Invalid MIT-MAGIC-COOKIE-1 key[x11grab @ 0x560fd57b0a60] Cannot open display :0.0+837,201, error 1."
":0.0+837,201: Input/output error"

if I make a  echo $DISPLAY I get :1

I think it would be a good solution to be able to indicate the display by configuration (config.conf file)

[Feature Request] support screenshot save choice as: saveToClipboard **or** saveAsFile

简而言之:希望截图 保存到剪切板保存为文件 这两个选项可以独立可以独立;
即支持以下选项组合 a) 只保存到剪切板 b) 保存到剪切板同时不保存为文件 c) 不保存到剪切板但保存为文件,但不支持 d) 都不保存

虽然这里的代码和deepin v20 (1001)公测的不一样,但目前看到 subToolWidget::initShotLabel 中OptionMenu的配置 saveToDesktopAction/saveToPictureAction/... 通过if-else来实现互斥操作。 (ok,需要两个"save_op"并且t_saveGroup使用 QActionGroup::ExclusionPolicy::None,不能简单的用setExclusive来实现,如果可以的话我可以来提pull request)
我认为可以按照上面提到的逻辑来重新实现,这样用起来更方便 。

如果可以的话,我可以提出pull request吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.