Changes for page Video Capture of Computer Screens
Last modified by Drunk Monkey on 2024-10-09 05:32
From version
36.1

edited by Drunk Monkey
on 2024-10-09 05:32
on 2024-10-09 05:32
Change comment:
There is no comment for this version
To version
30.1


edited by Drunk Monkey
on 2022-01-27 18:11
on 2022-01-27 18:11
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -86,7 +86,7 @@ 86 86 ((( 87 87 (% class="col-xs-12 col-xs-6" style="border-right:black solid 1px;" %) 88 88 ((( 89 -=== Windows === 89 +=== Windows Video Capture === 90 90 91 91 Open a command window, and run the following commands: 92 92 ... ... @@ -116,18 +116,17 @@ 116 116 117 117 (% class="col-xs-12 col-xs-6" %) 118 118 ((( 119 -=== Mac OSX===119 +=== Mac Video Capture === 120 120 121 121 Open a terminal window and run the following commands: 122 122 123 ->(% style="font-size:14px" %)cd ~~/Desktop 124 ->(% style="font-size:14px" %)ffmpeg -f avfoundation -t 6 -pixel_format 0rgb -capture_cursor 1 -capture_mouse_clicks 1 -framerate 60 -i "1:" -filter:v "format=yuv444p" -c:v libx265 -crf 0 -preset ultrafast screenCapture.mkv 123 +>(% style="font-size:14px" %)cd ~~/Desktopffmpeg -f avfoundation -t 6 -pixel_format 0rgb -capture_cursor 1 -capture_mouse_clicks 1 -framerate 60 -i "1:" -filter:v "format=yuv444p" -c:v libx265 -crf 0 -preset ultrafast screenCapture.mkv 125 125 126 126 (% style="font-size:14px" %)This will create a video file called "screenCapture.mkv" on your Desktop that you can replay using VLC Media Player. 127 127 128 128 (% style="font-size:14px" %)The parameters to the ffmpeg command have the following meanings 129 129 130 -(% class=" linedmin" %)129 +(% class="min lined" %) 131 131 |-f avfoundation|gdigrab is the windows framebuffer, where the screen is stored 132 132 |-t 6|capture 6 seconds of video and exit. 3600 = 1 hour, 14400 = 4 hours. If you omit this parameter, the capture will continue until you press [Control C] to gracefully tell ffmpeg to stop 133 133 |(% style="font-size:14px" %)-framerate 60|if you want to see the candles paint second by second, you should have a framerate of at least 60. Technically speaking, you actually need 120, but let's not get too crazy. ... ... @@ -134,11 +134,7 @@ 134 134 |-pixel_format 0rgb|get the data as RGB colors instead of some bizzzare color model 135 135 |-capture_cursor 1|capture the mouse pointer 136 136 |-capture_mouse_clicks 1|and capture the clicks with an onscreen visual notification 137 -|-i "1:" 138 -\\\\-i title="window title"|((( 139 -capture the first screen. Not really important unless you have multiple screens and you are not capturing the primary screen. Use '##ffmpeg -f avfoundation -list_devices true -i ""##' to list the capturable devices on your computer 140 -\\to capture a particular window 141 -))) 136 +|-i "1:"|capture the first screen. Not really important unless you have multiple screens and you are not capturing the primary screen 142 142 |-filter:v "format=yuv444p"|transform the input colors into this color format, which is fairly quick when converting from RGB and without too much color shifting 143 143 (I'm still looking to improve upon this - the windows encoding has an exact RGB color modelling which means no color shift) 144 144 |-c:v libx265|encode the video using H.265 compression. It makes for smaller videos without consuming too much processing time ... ... @@ -148,43 +148,3 @@ 148 148 There is no point in trying to compress this video any further with these parameters. Further compression will require a lot of time and cpu power to see any further gain. 149 149 ))) 150 150 ))) 151 - 152 -== Audio Capture == 153 - 154 -=== Windows === 155 - 156 -=== Mac OSX === 157 - 158 - 159 -== References == 160 - 161 -FFmpeg documentation: 162 - 163 -* [[https:~~/~~/ffmpeg.org/documentation.html>>https://ffmpeg.org/documentation.html]] 164 - 165 -Lossless capture: 166 - 167 -* [[https:~~/~~/video.stackexchange.com/questions/25034/lossless-capture-with-ffmpeg>>https://video.stackexchange.com/questions/25034/lossless-capture-with-ffmpeg]] 168 -* [[https:~~/~~/video.stackexchange.com/questions/8305/lossless-screen-recording-software>>https://video.stackexchange.com/questions/8305/lossless-screen-recording-software]] 169 -* [[https:~~/~~/trac.ffmpeg.org/wiki/Capture/Desktop>>https://trac.ffmpeg.org/wiki/Capture/Desktop]] 170 - 171 -Video editing programs 172 - 173 -* black magic davinci resolve 174 -* kdenlive 175 -* shotcut 176 - 177 -== Tips == 178 - 179 -Screen capture portion of a screen 180 - 181 ->(% style="font-size:14px" %)ffmpeg -y -f avfoundation -t 6 -pixel_format 0rgb -capture_cursor 1 -capture_mouse_clicks 1 -framerate 60 -i "1:" -filter:v "format=yuv444p" -filter:v "crop=1920:1080:320:180" -c:v libx265 -crf 0 -preset ultrafast screenCapture.mkv 182 - 183 -(% style="font-size:14px" %)extract audio 184 - 185 -(% style="font-size:14px" %)ffprobe <videofile> to determine the audio format 186 - 187 -(% style="font-size:14px" %)ffmpeg -i <filename> -y -ss 01:50:47.0 -t 0:02:03 -vn -c:a copy <outputaudio>.aac (assuming audio is aac as determined by ffprobe above) 188 - 189 - 190 -