Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-tools-x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-tools-x393
Commits
51d8f57e
Commit
51d8f57e
authored
Jan 11, 2017
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of errors in processing scripts
parent
b2d9df7c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
extract_images.php
extract_images.php
+5
-2
int_ssd_download.py
int_ssd_download.py
+2
-2
No files found.
extract_images.php
View file @
51d8f57e
...
...
@@ -57,7 +57,8 @@ $files = scandir("$path");
if
(
!
is_dir
(
"
$path
/
$destination
"
))
mkdir
(
"
$path
/
$destination
"
,
0777
);
foreach
(
$files
as
$file
)
{
if
(
get_file_extension
(
$file
)
==
"bin"
)
{
$ext
=
get_file_extension
(
$file
);
if
(
$ext
==
"img"
||
$ext
==
"bin"
||
$ext
==
"mov"
)
{
echo
"Splitting
$path
/
$file
into
{
$extension
}
s
\n
"
;
split_mov
(
"
$path
"
,
$file
,
$destination
,
$extension
,
$startMarkerWithExif
,
$chunksize
);
}
...
...
@@ -121,8 +122,10 @@ function split_mov($path,$mov_file,$dest,$ext,$startMarkerWithExif,$chunksize) {
}
else
if
(
$model
==
1003
)
{
$k
=
$chn
+
6
;
}
$new_file_name
=
$DateTimeOriginal_local
.
"_"
.
$exif_data
[
'SubSecTimeOriginal'
]
.
"_"
.
$k
.
"."
.
$ext
;
}
else
{
$k
=
intval
(
$exif_data
[
'PageNumber'
])
+
1
;
}
$new_file_name
=
$DateTimeOriginal_local
.
"_"
.
$exif_data
[
'SubSecTimeOriginal'
]
.
"_"
.
$k
.
"."
.
$ext
;
rename
(
$old_file_name
,
"
$path
/
$dest
/
$new_file_name
"
);
}
...
...
int_ssd_download.py
View file @
51d8f57e
...
...
@@ -130,8 +130,8 @@ for i in range(len(cams)):
for
d
in
dirs
:
for
p
in
plist
:
if
d
==
p
[
0
]:
pc
.
download
(
args
.
dest
,
"/dev/"
+
p
[
1
],
d
,
args
.
bs
,
args
.
bc
,
args
.
skip
,
args
.
n
)
dirs
.
delet
e
(
d
)
pc
.
download
(
args
.
dest
,
"/dev/"
+
p
[
1
],
args
.
bs
,
args
.
bc
,
args
.
skip
,
args
.
n
)
dirs
.
remov
e
(
d
)
if
len
(
dirs
)
!=
0
:
print
(
"wait for the next ssd"
)
else
:
...
...
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