Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
e0d61860
Commit
e0d61860
authored
May 01, 2016
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added script to record video.
parent
2fbe1590
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
bin/record_video.sh
bin/record_video.sh
+22
-0
No files found.
bin/record_video.sh
0 → 100755
View file @
e0d61860
#!/bin/bash
set
-e
if
[
$#
-lt
2
]
;
then
echo
"usage:
$0
log_file.rcg video_name.mp4"
exit
fi
LOG
=
$1
OUT
=
$2
START_FRAME
=
0
SOCCERWINDOW
=
"./bin/soccerwindow2"
DIR
=
`
mktemp
-d
`
$SOCCERWINDOW
-l
$LOG
--auto-image-save
--canvas-size
=
1920x1200
--image-save-dir
=
$DIR
{
ffmpeg
-r
10
-start_number
$START_FRAME
-i
$DIR
/image-%05d.png
-f
mp4
-c
:v libx264
-s
1024x768
-vf
"crop=iw/2.5:8.38*ih/10:iw/2:ih/10,transpose=1"
-pix_fmt
yuv420p
$OUT
}
||
{
avconv
-r
10
-i
$DIR
/image-%05d.png
-f
mp4
-c
:v libx264
-s
1024x768
-vf
"crop=iw/2.5:8.38*ih/10:iw/2:ih/10,transpose=1"
-pix_fmt
yuv420p
$OUT
}
rm
-fr
$DIR
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