Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
T
tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
osak
tools
Commits
13fa4019
Commit
13fa4019
authored
Feb 03, 2015
by
Moritz Holtz
Committed by
Christopher Spinrath
Jan 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added lossless option to the screencap Skript.
Lossless may save computing power.
parent
ef2fd4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
screencap/screencap-ffmpeg.sh
screencap/screencap-ffmpeg.sh
+10
-1
No files found.
screencap/screencap-ffmpeg.sh
View file @
13fa4019
...
...
@@ -6,10 +6,12 @@
# Erster und einziger, optionaler, Parameter ist ein Präfix für die Datei, in die aufgenommen wird.
# Der Dateiname lautet: $prefix-YYYY-MM-DD-HH-MM-SS-nummer.mp4
# Teilweise gibt es Probleme mit der Syncronität Bild<->Ton, daher dringen auf den Präsentationslaptops ausprobieren.
# Bei langsamen Geräten kann auch LOSSLESS=1 helfen, dann wird zwar die Ausgabedatei größer, aber der Rechenaufwand sollte am geringsten sein.
DEVICE
=
"VGA"
AUDIO
=
1
FPS
=
15
LOSSLESS
=
0
info
=
$(
xrandr |
grep
$DEVICE
)
if
[
-z
"
$info
"
]
||
(
echo
$info
|
grep
disconnected
)
...
...
@@ -53,4 +55,11 @@ else
audiocmd
=
"-an"
fi
$prog
-f
x11grab
-s
$res
-r
$FPS
-i
:0.0
$pos
$audiocmd
-c
:v libx264
-r
$FPS
-preset
:v ultrafast
$file
if
[
$LOSSLESS
-eq
1
]
then
losslesscmd
=
"-qp 0 -crf 0 -tune stillimage"
fi
cmd
=
"
$prog
-f x11grab -s
$res
-r
$FPS
-i :0.0
$pos
$audiocmd
-c:v libx264
$losslesscmd
-r
$FPS
-preset:v ultrafast
$file
"
echo
"Command:
$cmd
"
$cmd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment