Skip to content
⌘ NSIS Forum Archive

How to Record Your Desktop to a File

9 posts

r2du-soft#

How to Record Your Desktop to a File

Nsis have possible record desktop move and save move to a file?
stass#
r2du-soft
Why do it with the help of the NSIS ?
For these purposes, there are lots of different programs ...

Or use the command in a script:


example of how ffmpeg.exe can use GDIgrab : http://ffmpeg.org/ffmpeg-devices.html#gdigrab

ffmpeg.exe ‐f gdigrab ‐i desktop ‐framerate 15 ‐video_size 1100x800 ‐vcodec libx264 ‐pix_fmt yuv420p ‐preset ultrafast new‐output‐video‐file.mkv

N.B. "-video_size" doesn't seem to work for me (when using "desktop" as input). The result is that the entire Desktop display output is captured and recorded, anyways.
r2du-soft#
Originally Posted by stass View Post
r2du-soft
Why do it with the help of the NSIS ?
For these purposes, there are lots of different programs ...

Or use the command in a script:
http://trac.ffmpeg.org/wiki/Capture/Desktop
Thanks
i use from this code for recording with nsis:

nsExec::Exec '$exedir\ffmpeg.exe -f gdigrab -framerate 6 -i desktop $exedir\Desktop.MP4'
but i have one problem:
when i open my record desktop with nsis with Up code and when application is run (recording desktop move) when i turn off pc and after turn on pc and run Desktop.MP4 say to me file is broken!!

i want silent record desktop move for Monitor my pc
Anders#
First of all, this sounds super evil. I'm sure there is spy software out there that does this already and you should go look for those if you really want to do this.

Anyway, this has nothing to do with NSIS. If you believe there is a problem with ffmpeg not handling shutdown correctly then you need to file a bug report with them, there is nothing we can do about it.
stass#
r2du-soft

ffmpeg.exe -f gdigrab -framerate 6 -i desktop Desktop.MP4
I have this command works well

created Desktop.MP4 - normally open

OS - Windows7 Pro Rus x32

ffmpeg used this:

r2du-soft#
Originally Posted by stass View Post
r2du-soft



I have this command works well

created Desktop.MP4 - normally open

OS - Windows7 Pro Rus x32

ffmpeg used this:

http://ffmpeg.zeranoe.com/builds/win...in32-static.7z
Thanks mr stass
I say problem to ffmpeg forum in up link and thats say to me must change outfile format and is change that anf after that work good!!!




My windows is 7 x64 and i have problem broken file when i use outfile format mp4 and mkv when application is run and i close cmd.exe with task manager !
Coby#
Download and Convert Youtube video

Download Youtube Video MP4 and convert to Audio MP3
Required download and push in output directory youtube-dl.exe,ffmpeg.exe,ffprobe.exe.

Compiled with NSIS Ansi 2.51
Anders#
Originally Posted by Coby View Post
Download Youtube Video MP4 and convert to Audio MP3
Required download and push in output directory youtube-dl.exe,ffmpeg.exe,ffprobe.exe.

Compiled with NSIS Ansi 2.51
And how is downloading from YouTube related to this topic?
Coby#
Screen Capture

Example Sreen Capture

nsExec::ExecToStack '"$SYSDIR\cmd.exe" /c $PLUGINSDIR\MiniCap.exe -captureredregselect -capsound -save "$DESKTOP\Capture\$uniquenum0$.png" -closeapp -exit' $0