Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SUpload
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Volkor Barbarian Warrior
SUpload
Commits
96e27604
Unverified
Commit
96e27604
authored
4 years ago
by
Volkor Barbarian Warrior
Browse files
Options
Downloads
Patches
Plain Diff
Fix up the video recording :)
parent
4aae73c2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
supload.conf
+3
-2
3 additions, 2 deletions
supload.conf
supload.sh
+2
-1
2 additions, 1 deletion
supload.sh
with
5 additions
and
3 deletions
supload.conf
+
3
−
2
View file @
96e27604
...
@@ -6,9 +6,10 @@
...
@@ -6,9 +6,10 @@
#photo_format="date +%F-%T.png"
#photo_format="date +%F-%T.png"
#video_format="date +%F-%T.mp4"
#video_format="date +%F-%T.mp4"
## ffmpeg config for screen recording (1st line is
cpu, second is nvidia gpu encoding
)
## ffmpeg config for screen recording (1st line is
CPU Encoding, 2nd is VAAPI
)
#ffmpeg_config="-preset veryfast -vcodec libx264 -tune zerolatency -b:v 3M"
#ffmpeg_config="-preset veryfast -vcodec libx264 -tune zerolatency -b:v 3M"
#ffmpeg_config="-preset llhq -vcodec h264_nvenc -tune zerolatency -b:v 3M" # I can't actually test this, because nvidia drivers broke
#ffmpeg_config="-vaapi_device /dev/dri/renderD128 -vf "format=nv12,hwupload" -c:v h264_vaapi -b:v 3M"
## directory to save screenshots (To disable file saving, put it in /tmp, where it will be deleted on reboot)
## directory to save screenshots (To disable file saving, put it in /tmp, where it will be deleted on reboot)
#file_dir="${HOME}/Pictures/screenshots"
#file_dir="${HOME}/Pictures/screenshots"
...
...
This diff is collapsed.
Click to expand it.
supload.sh
+
2
−
1
View file @
96e27604
...
@@ -196,9 +196,10 @@ fi
...
@@ -196,9 +196,10 @@ fi
if
[
"
$video
"
=
"true"
]
;
then
if
[
"
$video
"
=
"true"
]
;
then
video_path
=
"
$file_dir
/
$(
$video_format
)
"
video_path
=
"
$file_dir
/
$(
$video_format
)
"
$debug
&&
echo
-e
"
${
r
}
DEBUG:
${
nc
}
VIDEO_PATH:
$video_path
"
$debug
&&
echo
-e
"
${
r
}
DEBUG:
${
nc
}
VIDEO_PATH:
$video_path
"
echo
-e
"
${
r
}
WARNING: PRESS
${
nc
}
q
${
r
}
to end screen recording!
${
nc
}
"
echo
-e
"
${
r
}
WARNING: PRESS
${
nc
}
q
${
r
}
to end screen recording!
${
nc
}
"
if
!
ff
cast
-s
ffmpeg
--
"
${
ffmpeg_config
}
$
{
video_path
}
"
;
then
if
!
ff
mpeg
-f
x11grab
-framerate
30
$(
slop
-f
'-video_size %wx%h -i +%x,%y'
)
$
ffmpeg_config
$video_path
;
then
echo
-e
"
${
r
}
ERROR:
${
nc
}
Failed to take screenshot (ffcast crashed/user exited)"
echo
-e
"
${
r
}
ERROR:
${
nc
}
Failed to take screenshot (ffcast crashed/user exited)"
exit
1
exit
1
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment